naftiko: 1.0.0-alpha2 info: label: Atlassian Bitbucket API — Users description: 'Atlassian Bitbucket API — Users. 4 operations. Lead operation: Atlassian Get Current User. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Users created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-users baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bitbucket API — Users business capability. Self-contained, no shared references. resources: - name: user path: /user operations: - name: atlassiangetcurrentuser method: GET description: Atlassian Get Current User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: user-emails path: /user/emails operations: - name: atlassianlistemailaddressesforcurrentuser method: GET description: Atlassian List Email Addresses For Current User outputRawFormat: json outputParameters: - name: result type: object value: $. - name: user-emails-email path: /user/emails/{email} operations: - name: atlassiangetanemailaddressforcurrentuser method: GET description: Atlassian 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: atlassiangetauser method: GET description: Atlassian Get A User outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-users-rest port: 8080 description: REST adapter for Atlassian 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: atlassiangetcurrentuser description: Atlassian Get Current User call: bitbucket-users.atlassiangetcurrentuser outputParameters: - type: object mapping: $. - path: /v1/user/emails name: user-emails description: REST surface for user-emails. operations: - method: GET name: atlassianlistemailaddressesforcurrentuser description: Atlassian List Email Addresses For Current User call: bitbucket-users.atlassianlistemailaddressesforcurrentuser outputParameters: - type: object mapping: $. - path: /v1/user/emails/{email} name: user-emails-email description: REST surface for user-emails-email. operations: - method: GET name: atlassiangetanemailaddressforcurrentuser description: Atlassian Get An Email Address For Current User call: bitbucket-users.atlassiangetanemailaddressforcurrentuser outputParameters: - type: object mapping: $. - path: /v1/users/{selected-user} name: users-selected-user description: REST surface for users-selected_user. operations: - method: GET name: atlassiangetauser description: Atlassian Get A User call: bitbucket-users.atlassiangetauser outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-users-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bitbucket API — Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-current-user description: Atlassian Get Current User hints: readOnly: true destructive: false idempotent: true call: bitbucket-users.atlassiangetcurrentuser outputParameters: - type: object mapping: $. - name: atlassian-list-email-addresses-current description: Atlassian List Email Addresses For Current User hints: readOnly: true destructive: false idempotent: true call: bitbucket-users.atlassianlistemailaddressesforcurrentuser outputParameters: - type: object mapping: $. - name: atlassian-get-email-address-current description: Atlassian Get An Email Address For Current User hints: readOnly: true destructive: false idempotent: true call: bitbucket-users.atlassiangetanemailaddressforcurrentuser outputParameters: - type: object mapping: $. - name: atlassian-get-user description: Atlassian Get A User hints: readOnly: true destructive: false idempotent: true call: bitbucket-users.atlassiangetauser outputParameters: - type: object mapping: $.