naftiko: 1.0.0-alpha2 info: label: Bitbucket API — GPG description: 'Bitbucket API — GPG. 4 operations. Lead operation: List GPG keys. Self-contained Naftiko capability covering one Bitbucket Pipelines business surface.' tags: - Bitbucket Pipelines - GPG 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-gpg baseUri: https://api.bitbucket.org/2.0 description: Bitbucket API — GPG business capability. Self-contained, no shared references. resources: - name: users-selected_user-gpg-keys path: /users/{selected_user}/gpg-keys operations: - name: get method: GET description: List GPG keys outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Add a new GPG key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: _body in: body type: string description: The new GPG key object. - name: users-selected_user-gpg-keys-fingerprint path: /users/{selected_user}/gpg-keys/{fingerprint} operations: - name: delete method: DELETE description: Delete a GPG key outputRawFormat: json outputParameters: - name: result type: object value: $. - name: get method: GET description: Get a GPG key outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: bitbucket-pipelines-gpg-rest port: 8080 description: REST adapter for Bitbucket API — GPG. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/users/{selected-user}/gpg-keys name: users-selected-user-gpg-keys description: REST surface for users-selected_user-gpg-keys. operations: - method: GET name: get description: List GPG keys call: bitbucket-pipelines-gpg.get outputParameters: - type: object mapping: $. - method: POST name: post description: Add a new GPG key call: bitbucket-pipelines-gpg.post with: _body: rest._body outputParameters: - type: object mapping: $. - path: /v1/users/{selected-user}/gpg-keys/{fingerprint} name: users-selected-user-gpg-keys-fingerprint description: REST surface for users-selected_user-gpg-keys-fingerprint. operations: - method: DELETE name: delete description: Delete a GPG key call: bitbucket-pipelines-gpg.delete outputParameters: - type: object mapping: $. - method: GET name: get description: Get a GPG key call: bitbucket-pipelines-gpg.get outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-pipelines-gpg-mcp port: 9090 transport: http description: MCP adapter for Bitbucket API — GPG. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-gpg-keys description: List GPG keys hints: readOnly: true destructive: false idempotent: true call: bitbucket-pipelines-gpg.get outputParameters: - type: object mapping: $. - name: add-new-gpg-key description: Add a new GPG key hints: readOnly: false destructive: false idempotent: false call: bitbucket-pipelines-gpg.post with: _body: tools._body outputParameters: - type: object mapping: $. - name: delete-gpg-key description: Delete a GPG key hints: readOnly: false destructive: true idempotent: true call: bitbucket-pipelines-gpg.delete outputParameters: - type: object mapping: $. - name: get-gpg-key description: Get a GPG key hints: readOnly: true destructive: false idempotent: true call: bitbucket-pipelines-gpg.get outputParameters: - type: object mapping: $.