Atlassian · Capability

Atlassian Bit Bucket Repositories API — Pairs

Atlassian Bit Bucket Repositories API — Pairs. 3 operations. Lead operation: Atlassian Get Ssh Key Pair. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianPairs

What You Can Do

GET
Getsshkeypair — Atlassian Get Ssh Key Pair
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
PUT
Updatesshkeypair — Atlassian Update Ssh Key Pair
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
DELETE
Deletesshkeypair — Atlassian Delete Ssh Key Pair
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair

MCP Tools

atlassian-get-ssh-key-pair

Atlassian Get Ssh Key Pair

read-only idempotent
atlassian-update-ssh-key-pair

Atlassian Update Ssh Key Pair

idempotent
atlassian-delete-ssh-key-pair

Atlassian Delete Ssh Key Pair

idempotent

Capability Spec

bitbucket-repositories-pairs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Pairs
  description: 'Atlassian Bit Bucket Repositories API — Pairs. 3 operations. Lead operation: Atlassian Get Ssh Key Pair. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Pairs
  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-pairs
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Pairs business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-key_pair
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair
      operations:
      - name: getsshkeypair
        method: GET
        description: Atlassian Get Ssh Key Pair
        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: updatesshkeypair
        method: PUT
        description: Atlassian Update Ssh Key Pair
        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: deletesshkeypair
        method: DELETE
        description: Atlassian Delete Ssh Key Pair
        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
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-pairs-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Pairs. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
      name: repositories-workspace-repo-slug-pipelines-config-ssh-key-pair
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-key_pair.
      operations:
      - method: GET
        name: getsshkeypair
        description: Atlassian Get Ssh Key Pair
        call: bitbucket-repositories-pairs.getsshkeypair
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesshkeypair
        description: Atlassian Update Ssh Key Pair
        call: bitbucket-repositories-pairs.updatesshkeypair
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesshkeypair
        description: Atlassian Delete Ssh Key Pair
        call: bitbucket-repositories-pairs.deletesshkeypair
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-pairs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Pairs. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-get-ssh-key-pair
      description: Atlassian Get Ssh Key Pair
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-pairs.getsshkeypair
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-ssh-key-pair
      description: Atlassian Update Ssh Key Pair
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-pairs.updatesshkeypair
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-ssh-key-pair
      description: Atlassian Delete Ssh Key Pair
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-pairs.deletesshkeypair
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.