Atlassian · Capability

Atlassian Bit Bucket User API — Keys

Atlassian Bit Bucket User API — Keys. 5 operations. Lead operation: Atlassian List Ssh Keys. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianKeys

What You Can Do

GET
Listsshkeys — Atlassian List Ssh Keys
/v1/users/{selected-user}/ssh-keys
POST
Addnewsshkey — Atlassian Add New Ssh Key
/v1/users/{selected-user}/ssh-keys
DELETE
Deletesshkey — Atlassian Delete Ssh Key
/v1/users/{selected-user}/ssh-keys/{key-id}
GET
Getsshkey — Atlassian Get Ssh Key
/v1/users/{selected-user}/ssh-keys/{key-id}
PUT
Updatesshkey — Atlassian Update Ssh Key
/v1/users/{selected-user}/ssh-keys/{key-id}

MCP Tools

atlassian-list-ssh-keys

Atlassian List Ssh Keys

read-only idempotent
atlassian-add-new-ssh-key

Atlassian Add New Ssh Key

atlassian-delete-ssh-key

Atlassian Delete Ssh Key

idempotent
atlassian-get-ssh-key

Atlassian Get Ssh Key

read-only idempotent
atlassian-update-ssh-key

Atlassian Update Ssh Key

idempotent

Capability Spec

bitbucket-user-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket User API — Keys
  description: 'Atlassian Bit Bucket User API — Keys. 5 operations. Lead operation: Atlassian List Ssh 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-user-keys
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket User API — Keys business capability. Self-contained, no shared references.
    resources:
    - name: users-selected_user-ssh-keys
      path: /users/{selected_user}/ssh-keys
      operations:
      - name: listsshkeys
        method: GET
        description: Atlassian List Ssh Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addnewsshkey
        method: POST
        description: Atlassian Add New Ssh Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: users-selected_user-ssh-keys-key_id
      path: /users/{selected_user}/ssh-keys/{key_id}
      operations:
      - name: deletesshkey
        method: DELETE
        description: Atlassian Delete Ssh Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getsshkey
        method: GET
        description: Atlassian Get Ssh Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesshkey
        method: PUT
        description: Atlassian Update Ssh Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-user-keys-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket User API — Keys. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/users/{selected-user}/ssh-keys
      name: users-selected-user-ssh-keys
      description: REST surface for users-selected_user-ssh-keys.
      operations:
      - method: GET
        name: listsshkeys
        description: Atlassian List Ssh Keys
        call: bitbucket-user-keys.listsshkeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addnewsshkey
        description: Atlassian Add New Ssh Key
        call: bitbucket-user-keys.addnewsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{selected-user}/ssh-keys/{key-id}
      name: users-selected-user-ssh-keys-key-id
      description: REST surface for users-selected_user-ssh-keys-key_id.
      operations:
      - method: DELETE
        name: deletesshkey
        description: Atlassian Delete Ssh Key
        call: bitbucket-user-keys.deletesshkey
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getsshkey
        description: Atlassian Get Ssh Key
        call: bitbucket-user-keys.getsshkey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesshkey
        description: Atlassian Update Ssh Key
        call: bitbucket-user-keys.updatesshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-user-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket User API — Keys. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-list-ssh-keys
      description: Atlassian List Ssh Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-keys.listsshkeys
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-new-ssh-key
      description: Atlassian Add New Ssh Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-user-keys.addnewsshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-ssh-key
      description: Atlassian Delete Ssh Key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-user-keys.deletesshkey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-ssh-key
      description: Atlassian Get Ssh Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-keys.getsshkey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-ssh-key
      description: Atlassian Update Ssh Key
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-user-keys.updatesshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.