naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Users description: 'Atlassian Bit Bucket Repositories API — Users. 7 operations. Lead operation: Atlassian Add User to the Default Reviewers. 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-repositories-users baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Users business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-default-reviewers-target_username path: /repositories/{workspace}/{repo_slug}/default-reviewers/{target_username} operations: - name: addusertothedefaultreviewers method: PUT description: Atlassian Add User to the Default Reviewers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-issues-issue_id-vote path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/vote operations: - name: checkifcurrentuservotedforanissue method: GET description: Atlassian Check if Current User Voted for an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-issues-issue_id-watch path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/watch operations: - name: checkifcurrentuseriswatchingissue method: GET description: Atlassian Check if Current User Is Watching Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-permissions-config-users path: /repositories/{workspace}/{repo_slug}/permissions-config/users operations: - name: listexplicituserpermissionsforrepository method: GET description: Atlassian List Explicit User Permissions for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-permissions-config-users-selected_user_id path: /repositories/{workspace}/{repo_slug}/permissions-config/users/{selected_user_id} operations: - name: deleteanexplicituserpermissionforrepository method: DELETE description: Atlassian Delete an Explicit User Permission for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getanexplicituserpermissionforrepository method: GET description: Atlassian Get an Explicit User Permission for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateanexplicituserpermissionforrepository method: PUT description: Atlassian Update an Explicit User Permission for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-users-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Users. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/default-reviewers/{target-username} name: repositories-workspace-repo-slug-default-reviewers-target-username description: REST surface for repositories-workspace-repo_slug-default-reviewers-target_username. operations: - method: PUT name: addusertothedefaultreviewers description: Atlassian Add User to the Default Reviewers call: bitbucket-repositories-users.addusertothedefaultreviewers outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/vote name: repositories-workspace-repo-slug-issues-issue-id-vote description: REST surface for repositories-workspace-repo_slug-issues-issue_id-vote. operations: - method: GET name: checkifcurrentuservotedforanissue description: Atlassian Check if Current User Voted for an Issue call: bitbucket-repositories-users.checkifcurrentuservotedforanissue outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/watch name: repositories-workspace-repo-slug-issues-issue-id-watch description: REST surface for repositories-workspace-repo_slug-issues-issue_id-watch. operations: - method: GET name: checkifcurrentuseriswatchingissue description: Atlassian Check if Current User Is Watching Issue call: bitbucket-repositories-users.checkifcurrentuseriswatchingissue outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/permissions-config/users name: repositories-workspace-repo-slug-permissions-config-users description: REST surface for repositories-workspace-repo_slug-permissions-config-users. operations: - method: GET name: listexplicituserpermissionsforrepository description: Atlassian List Explicit User Permissions for Repository call: bitbucket-repositories-users.listexplicituserpermissionsforrepository outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id} name: repositories-workspace-repo-slug-permissions-config-users-selected-user-id description: REST surface for repositories-workspace-repo_slug-permissions-config-users-selected_user_id. operations: - method: DELETE name: deleteanexplicituserpermissionforrepository description: Atlassian Delete an Explicit User Permission for Repository call: bitbucket-repositories-users.deleteanexplicituserpermissionforrepository outputParameters: - type: object mapping: $. - method: GET name: getanexplicituserpermissionforrepository description: Atlassian Get an Explicit User Permission for Repository call: bitbucket-repositories-users.getanexplicituserpermissionforrepository outputParameters: - type: object mapping: $. - method: PUT name: updateanexplicituserpermissionforrepository description: Atlassian Update an Explicit User Permission for Repository call: bitbucket-repositories-users.updateanexplicituserpermissionforrepository with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-users-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-add-user-default-reviewers description: Atlassian Add User to the Default Reviewers hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-users.addusertothedefaultreviewers outputParameters: - type: object mapping: $. - name: atlassian-check-if-current-user description: Atlassian Check if Current User Voted for an Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-users.checkifcurrentuservotedforanissue outputParameters: - type: object mapping: $. - name: atlassian-check-if-current-user-2 description: Atlassian Check if Current User Is Watching Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-users.checkifcurrentuseriswatchingissue outputParameters: - type: object mapping: $. - name: atlassian-list-explicit-user-permissions description: Atlassian List Explicit User Permissions for Repository hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-users.listexplicituserpermissionsforrepository outputParameters: - type: object mapping: $. - name: atlassian-delete-explicit-user-permission description: Atlassian Delete an Explicit User Permission for Repository hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-users.deleteanexplicituserpermissionforrepository outputParameters: - type: object mapping: $. - name: atlassian-get-explicit-user-permission description: Atlassian Get an Explicit User Permission for Repository hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-users.getanexplicituserpermissionforrepository outputParameters: - type: object mapping: $. - name: atlassian-update-explicit-user-permission description: Atlassian Update an Explicit User Permission for Repository hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-users.updateanexplicituserpermissionforrepository with: body: tools.body outputParameters: - type: object mapping: $.