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