Bitbucket Pipelines · Capability

Bitbucket API — SSH

Bitbucket API — SSH. 5 operations. Lead operation: List SSH keys. Self-contained Naftiko capability covering one Bitbucket Pipelines business surface.

Run with Naftiko Bitbucket PipelinesSSH

What You Can Do

GET
Get — List SSH keys
/v1/users/{selected-user}/ssh-keys
POST
Post — Add a new SSH key
/v1/users/{selected-user}/ssh-keys
DELETE
Delete — Delete a SSH key
/v1/users/{selected-user}/ssh-keys/{key-id}
GET
Get — Get a SSH key
/v1/users/{selected-user}/ssh-keys/{key-id}
PUT
Put — Update a SSH key
/v1/users/{selected-user}/ssh-keys/{key-id}

MCP Tools

list-ssh-keys

List SSH keys

read-only idempotent
add-new-ssh-key

Add a new SSH key

delete-ssh-key

Delete a SSH key

idempotent
get-ssh-key

Get a SSH key

read-only idempotent
update-ssh-key

Update a SSH key

idempotent

Capability Spec

bitbucket-pipelines-ssh.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bitbucket API — SSH
  description: 'Bitbucket API — SSH. 5 operations. Lead operation: List SSH keys. Self-contained Naftiko capability covering
    one Bitbucket Pipelines business surface.'
  tags:
  - Bitbucket Pipelines
  - SSH
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BITBUCKET_PIPELINES_API_KEY: BITBUCKET_PIPELINES_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-pipelines-ssh
    baseUri: https://api.bitbucket.org/2.0
    description: Bitbucket API — SSH business capability. Self-contained, no shared references.
    resources:
    - name: users-selected_user-ssh-keys
      path: /users/{selected_user}/ssh-keys
      operations:
      - name: get
        method: GET
        description: List SSH keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Add a new SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _body
          in: body
          type: string
          description: The new SSH key object. Note that the username property has been deprecated due to [privacy changes](https://developer.atlassian.com/cloud/bitbucket/bitbucket-a
        - name: expires_on
          in: query
          type: string
          description: The date or date-time of when the key will expire,
    - name: users-selected_user-ssh-keys-key_id
      path: /users/{selected_user}/ssh-keys/{key_id}
      operations:
      - name: delete
        method: DELETE
        description: Delete a SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: get
        method: GET
        description: Get a SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: put
        method: PUT
        description: Update a SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _body
          in: body
          type: string
          description: The updated SSH key object
  exposes:
  - type: rest
    namespace: bitbucket-pipelines-ssh-rest
    port: 8080
    description: REST adapter for Bitbucket API — SSH. 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: get
        description: List SSH keys
        call: bitbucket-pipelines-ssh.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Add a new SSH key
        call: bitbucket-pipelines-ssh.post
        with:
          _body: rest._body
          expires_on: rest.expires_on
        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: delete
        description: Delete a SSH key
        call: bitbucket-pipelines-ssh.delete
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: Get a SSH key
        call: bitbucket-pipelines-ssh.get
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a SSH key
        call: bitbucket-pipelines-ssh.put
        with:
          _body: rest._body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-pipelines-ssh-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bitbucket API — SSH. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-ssh-keys
      description: List SSH keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-ssh.get
      outputParameters:
      - type: object
        mapping: $.
    - name: add-new-ssh-key
      description: Add a new SSH key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-pipelines-ssh.post
      with:
        _body: tools._body
        expires_on: tools.expires_on
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-ssh-key
      description: Delete a SSH key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-pipelines-ssh.delete
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ssh-key
      description: Get a SSH key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-ssh.get
      outputParameters:
      - type: object
        mapping: $.
    - name: update-ssh-key
      description: Update a SSH key
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-ssh.put
      with:
        _body: tools._body
      outputParameters:
      - type: object
        mapping: $.