naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Pull Requests API — Lists description: 'Atlassian Bit Bucket Pull Requests API — Lists. 9 operations. Lead operation: Atlassian List Pull Requests for User. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Lists created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-pull-requests-lists baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Pull Requests API — Lists business capability. Self-contained, no shared references. resources: - name: pullrequests-selected_user path: /pullrequests/{selected_user} operations: - name: listpullrequestsforuser method: GET description: Atlassian List Pull Requests for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: state in: query type: string description: Only return pull requests that are in this state. This parameter can be repeated. - name: repositories-workspace-repo_slug-pullrequests path: /repositories/{workspace}/{repo_slug}/pullrequests operations: - name: listpullrequests method: GET description: Atlassian List Pull Requests outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: state in: query type: string description: Only return pull requests that are in this state. This parameter can be repeated. - name: repositories-workspace-repo_slug-pullrequests-activity path: /repositories/{workspace}/{repo_slug}/pullrequests/activity operations: - name: listpullrequestactivitylog method: GET description: Atlassian List Pull Request Activity Log outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-activity path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity operations: - name: listpullrequestactivitylog method: GET description: Atlassian List Pull Request Activity Log outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments operations: - name: listcommentsonpullrequest method: GET description: Atlassian List Comments on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-commits path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits operations: - name: listcommitsonpullrequest method: GET description: Atlassian List Commits on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-diff path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diff operations: - name: listchangesinpullrequest method: GET description: Atlassian List Changes in Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/statuses operations: - name: listcommitstatusesforpullrequest method: GET description: Atlassian List Commit Statuses for Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Query string to narrow down the response as per - name: sort in: query type: string description: Field by which the results should be sorted as per - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks operations: - name: listtasksonpullrequest method: GET description: Atlassian List Tasks on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Query string to narrow down the response. See - name: sort in: query type: string description: Field by which the results should be sorted as per - name: pagelen in: query type: integer description: Current number of objects on the existing page. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-pull-requests-lists-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Pull Requests API — Lists. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/pullrequests/{selected-user} name: pullrequests-selected-user description: REST surface for pullrequests-selected_user. operations: - method: GET name: listpullrequestsforuser description: Atlassian List Pull Requests for User call: bitbucket-pull-requests-lists.listpullrequestsforuser with: state: rest.state outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests name: repositories-workspace-repo-slug-pullrequests description: REST surface for repositories-workspace-repo_slug-pullrequests. operations: - method: GET name: listpullrequests description: Atlassian List Pull Requests call: bitbucket-pull-requests-lists.listpullrequests with: state: rest.state outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/activity name: repositories-workspace-repo-slug-pullrequests-activity description: REST surface for repositories-workspace-repo_slug-pullrequests-activity. operations: - method: GET name: listpullrequestactivitylog description: Atlassian List Pull Request Activity Log call: bitbucket-pull-requests-lists.listpullrequestactivitylog outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/activity name: repositories-workspace-repo-slug-pullrequests-pull-request-id-activity description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-activity. operations: - method: GET name: listpullrequestactivitylog description: Atlassian List Pull Request Activity Log call: bitbucket-pull-requests-lists.listpullrequestactivitylog outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments. operations: - method: GET name: listcommentsonpullrequest description: Atlassian List Comments on Pull Request call: bitbucket-pull-requests-lists.listcommentsonpullrequest outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/commits name: repositories-workspace-repo-slug-pullrequests-pull-request-id-commits description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-commits. operations: - method: GET name: listcommitsonpullrequest description: Atlassian List Commits on Pull Request call: bitbucket-pull-requests-lists.listcommitsonpullrequest outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/diff name: repositories-workspace-repo-slug-pullrequests-pull-request-id-diff description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-diff. operations: - method: GET name: listchangesinpullrequest description: Atlassian List Changes in Pull Request call: bitbucket-pull-requests-lists.listchangesinpullrequest outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses name: repositories-workspace-repo-slug-pullrequests-pull-request-id-statuses description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses. operations: - method: GET name: listcommitstatusesforpullrequest description: Atlassian List Commit Statuses for Pull Request call: bitbucket-pull-requests-lists.listcommitstatusesforpullrequest with: q: rest.q sort: rest.sort outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks name: repositories-workspace-repo-slug-pullrequests-pull-request-id-tasks description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks. operations: - method: GET name: listtasksonpullrequest description: Atlassian List Tasks on Pull Request call: bitbucket-pull-requests-lists.listtasksonpullrequest with: q: rest.q sort: rest.sort pagelen: rest.pagelen outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-pull-requests-lists-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Pull Requests API — Lists. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-pull-requests-user description: Atlassian List Pull Requests for User hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listpullrequestsforuser with: state: tools.state outputParameters: - type: object mapping: $. - name: atlassian-list-pull-requests description: Atlassian List Pull Requests hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listpullrequests with: state: tools.state outputParameters: - type: object mapping: $. - name: atlassian-list-pull-request-activity description: Atlassian List Pull Request Activity Log hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listpullrequestactivitylog outputParameters: - type: object mapping: $. - name: atlassian-list-pull-request-activity-2 description: Atlassian List Pull Request Activity Log hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listpullrequestactivitylog outputParameters: - type: object mapping: $. - name: atlassian-list-comments-pull-request description: Atlassian List Comments on Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listcommentsonpullrequest outputParameters: - type: object mapping: $. - name: atlassian-list-commits-pull-request description: Atlassian List Commits on Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listcommitsonpullrequest outputParameters: - type: object mapping: $. - name: atlassian-list-changes-pull-request description: Atlassian List Changes in Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listchangesinpullrequest outputParameters: - type: object mapping: $. - name: atlassian-list-commit-statuses-pull description: Atlassian List Commit Statuses for Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listcommitstatusesforpullrequest with: q: tools.q sort: tools.sort outputParameters: - type: object mapping: $. - name: atlassian-list-tasks-pull-request description: Atlassian List Tasks on Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-pull-requests-lists.listtasksonpullrequest with: q: tools.q sort: tools.sort pagelen: tools.pagelen outputParameters: - type: object mapping: $.