Atlassian · Capability

Atlassian Bit Bucket Repositories API — Keys

Atlassian Bit Bucket Repositories API — Keys. 8 operations. Lead operation: Atlassian List Repository Deploy Keys. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianKeys

What You Can Do

GET
Listrepositorydeploykeys — Atlassian List Repository Deploy Keys
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
POST
Addrepositorydeploykey — Atlassian Add Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
DELETE
Deleterepositorydeploykey — Atlassian Delete Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
GET
Getrepositorydeploykey — Atlassian Get Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
PUT
Updaterepositorydeploykey — Atlassian Update Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
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-list-repository-deploy-keys

Atlassian List Repository Deploy Keys

read-only idempotent
atlassian-add-repository-deploy-key

Atlassian Add Repository Deploy Key

atlassian-delete-repository-deploy-key

Atlassian Delete Repository Deploy Key

idempotent
atlassian-get-repository-deploy-key

Atlassian Get Repository Deploy Key

read-only idempotent
atlassian-update-repository-deploy-key

Atlassian Update Repository Deploy Key

idempotent
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-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Keys
  description: 'Atlassian Bit Bucket Repositories API — Keys. 8 operations. Lead operation: Atlassian List Repository Deploy
    Keys. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Keys
  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-keys
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Keys business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-deploy-keys
      path: /repositories/{workspace}/{repo_slug}/deploy-keys
      operations:
      - name: listrepositorydeploykeys
        method: GET
        description: Atlassian List Repository Deploy Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addrepositorydeploykey
        method: POST
        description: Atlassian Add Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deploy-keys-key_id
      path: /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
      operations:
      - name: deleterepositorydeploykey
        method: DELETE
        description: Atlassian Delete Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getrepositorydeploykey
        method: GET
        description: Atlassian Get Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updaterepositorydeploykey
        method: PUT
        description: Atlassian Update Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - 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-keys-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Keys. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys
      name: repositories-workspace-repo-slug-deploy-keys
      description: REST surface for repositories-workspace-repo_slug-deploy-keys.
      operations:
      - method: GET
        name: listrepositorydeploykeys
        description: Atlassian List Repository Deploy Keys
        call: bitbucket-repositories-keys.listrepositorydeploykeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addrepositorydeploykey
        description: Atlassian Add Repository Deploy Key
        call: bitbucket-repositories-keys.addrepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
      name: repositories-workspace-repo-slug-deploy-keys-key-id
      description: REST surface for repositories-workspace-repo_slug-deploy-keys-key_id.
      operations:
      - method: DELETE
        name: deleterepositorydeploykey
        description: Atlassian Delete Repository Deploy Key
        call: bitbucket-repositories-keys.deleterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getrepositorydeploykey
        description: Atlassian Get Repository Deploy Key
        call: bitbucket-repositories-keys.getrepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updaterepositorydeploykey
        description: Atlassian Update Repository Deploy Key
        call: bitbucket-repositories-keys.updaterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - 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-keys.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-keys.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-keys.deletesshkeypair
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Keys. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-list-repository-deploy-keys
      description: Atlassian List Repository Deploy Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-keys.listrepositorydeploykeys
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-repository-deploy-key
      description: Atlassian Add Repository Deploy Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-keys.addrepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-repository-deploy-key
      description: Atlassian Delete Repository Deploy Key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-keys.deleterepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-repository-deploy-key
      description: Atlassian Get Repository Deploy Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-keys.getrepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-repository-deploy-key
      description: Atlassian Update Repository Deploy Key
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-keys.updaterepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-ssh-key-pair
      description: Atlassian Get Ssh Key Pair
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-keys.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-keys.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-keys.deletesshkeypair
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.