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 business surface.' tags: - Bitbucket - SSH created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BITBUCKET_API_KEY: BITBUCKET_API_KEY capability: consumes: - type: http namespace: cloud-rest-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: cloud-rest-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: cloud-rest-ssh.get outputParameters: - type: object mapping: $. - method: POST name: post description: Add a new SSH key call: cloud-rest-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: cloud-rest-ssh.delete outputParameters: - type: object mapping: $. - method: GET name: get description: Get a SSH key call: cloud-rest-ssh.get outputParameters: - type: object mapping: $. - method: PUT name: put description: Update a SSH key call: cloud-rest-ssh.put with: _body: rest._body outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-rest-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: cloud-rest-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: cloud-rest-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: cloud-rest-ssh.delete outputParameters: - type: object mapping: $. - name: get-ssh-key description: Get a SSH key hints: readOnly: true destructive: false idempotent: true call: cloud-rest-ssh.get outputParameters: - type: object mapping: $. - name: update-ssh-key description: Update a SSH key hints: readOnly: false destructive: false idempotent: true call: cloud-rest-ssh.put with: _body: tools._body outputParameters: - type: object mapping: $.