Atlassian · Capability

Atlassian Bit Bucket Repositories API — Hosts

Atlassian Bit Bucket Repositories API — Hosts. 5 operations. Lead operation: Atlassian List Known Hosts. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianHosts

What You Can Do

GET
Listknownhosts — Atlassian List Known Hosts
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts
POST
Createknownhost — Atlassian Create Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts
GET
Getknownhost — Atlassian Get Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}
PUT
Updateknownhost — Atlassian Update Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}
DELETE
Deleteknownhost — Atlassian Delete Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}

MCP Tools

atlassian-list-known-hosts

Atlassian List Known Hosts

read-only idempotent
atlassian-create-known-host

Atlassian Create Known Host

atlassian-get-known-host

Atlassian Get Known Host

read-only idempotent
atlassian-update-known-host

Atlassian Update Known Host

idempotent
atlassian-delete-known-host

Atlassian Delete Known Host

idempotent

Capability Spec

bitbucket-repositories-hosts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Hosts
  description: 'Atlassian Bit Bucket Repositories API — Hosts. 5 operations. Lead operation: Atlassian List Known Hosts. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Hosts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-repositories-hosts
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Hosts business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts
      operations:
      - name: listknownhosts
        method: GET
        description: Atlassian List Known Hosts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
      - name: createknownhost
        method: POST
        description: Atlassian Create Known Host
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
      operations:
      - name: getknownhost
        method: GET
        description: Atlassian Get Known Host
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: known_host_uuid
          in: path
          type: string
          description: The UUID of the known host to retrieve.
          required: true
      - name: updateknownhost
        method: PUT
        description: Atlassian Update Known Host
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: known_host_uuid
          in: path
          type: string
          description: The UUID of the known host to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteknownhost
        method: DELETE
        description: Atlassian Delete Known Host
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: known_host_uuid
          in: path
          type: string
          description: The UUID of the known host to delete.
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-hosts-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Hosts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts
      name: repositories-workspace-repo-slug-pipelines-config-ssh-known-hosts
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts.
      operations:
      - method: GET
        name: listknownhosts
        description: Atlassian List Known Hosts
        call: bitbucket-repositories-hosts.listknownhosts
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createknownhost
        description: Atlassian Create Known Host
        call: bitbucket-repositories-hosts.createknownhost
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}
      name: repositories-workspace-repo-slug-pipelines-config-ssh-known-hosts-known-host-uui
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui.
      operations:
      - method: GET
        name: getknownhost
        description: Atlassian Get Known Host
        call: bitbucket-repositories-hosts.getknownhost
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          known_host_uuid: rest.known_host_uuid
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateknownhost
        description: Atlassian Update Known Host
        call: bitbucket-repositories-hosts.updateknownhost
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          known_host_uuid: rest.known_host_uuid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteknownhost
        description: Atlassian Delete Known Host
        call: bitbucket-repositories-hosts.deleteknownhost
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          known_host_uuid: rest.known_host_uuid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-hosts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Hosts. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-list-known-hosts
      description: Atlassian List Known Hosts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-hosts.listknownhosts
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-known-host
      description: Atlassian Create Known Host
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-hosts.createknownhost
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-known-host
      description: Atlassian Get Known Host
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-hosts.getknownhost
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        known_host_uuid: tools.known_host_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-known-host
      description: Atlassian Update Known Host
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-hosts.updateknownhost
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        known_host_uuid: tools.known_host_uuid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-known-host
      description: Atlassian Delete Known Host
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-hosts.deleteknownhost
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        known_host_uuid: tools.known_host_uuid
      outputParameters:
      - type: object
        mapping: $.