naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Comments description: 'Atlassian Bit Bucket Repositories API — Comments. 17 operations. Lead operation: Atlassian List Commits Comments. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Comments 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-comments baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Comments business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-commit-commit-comments path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments operations: - name: listcommitscomments method: GET description: Atlassian List Commits Comments 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: createcommentforcommit method: POST description: Atlassian Create Comment for Commit outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-commit-commit-comments-comment_id path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments/{comment_id} operations: - name: deletecommitcomment method: DELETE description: Atlassian Delete Commit Comment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getcommitcomment method: GET description: Atlassian Get Commit Comment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecommitcomment method: PUT description: Atlassian Update Commit Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-issues-issue_id-comments path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/comments operations: - name: listcommentsonanissue method: GET description: Atlassian List Comments on an Issue 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: createcommentonanissue method: POST description: Atlassian Create Comment on an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-issues-issue_id-comments-comment_id path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/comments/{comment_id} operations: - name: deletecommentonanissue method: DELETE description: Atlassian Delete Comment on an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getcommentonanissue method: GET description: Atlassian Get Comment on an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecommentonanissue method: PUT description: Atlassian Update Comment on an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - 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: createcommentonpullrequest method: POST description: Atlassian Create Comment on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} operations: - name: deletecommentonpullrequest method: DELETE description: Atlassian Delete Comment on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getcommentonpullrequest method: GET description: Atlassian Get Comment on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecommentonpullrequest method: PUT description: Atlassian Update Comment on Pull Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}/resolve operations: - name: reopencommentthread method: DELETE description: Atlassian Reopen Comment Thread outputRawFormat: json outputParameters: - name: result type: object value: $. - name: resolvecommentthread method: POST description: Atlassian Resolve Comment Thread outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-comments-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Comments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments name: repositories-workspace-repo-slug-commit-commit-comments description: REST surface for repositories-workspace-repo_slug-commit-commit-comments. operations: - method: GET name: listcommitscomments description: Atlassian List Commits Comments call: bitbucket-repositories-comments.listcommitscomments with: q: rest.q sort: rest.sort outputParameters: - type: object mapping: $. - method: POST name: createcommentforcommit description: Atlassian Create Comment for Commit call: bitbucket-repositories-comments.createcommentforcommit with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id} name: repositories-workspace-repo-slug-commit-commit-comments-comment-id description: REST surface for repositories-workspace-repo_slug-commit-commit-comments-comment_id. operations: - method: DELETE name: deletecommitcomment description: Atlassian Delete Commit Comment call: bitbucket-repositories-comments.deletecommitcomment outputParameters: - type: object mapping: $. - method: GET name: getcommitcomment description: Atlassian Get Commit Comment call: bitbucket-repositories-comments.getcommitcomment outputParameters: - type: object mapping: $. - method: PUT name: updatecommitcomment description: Atlassian Update Commit Comment call: bitbucket-repositories-comments.updatecommitcomment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments name: repositories-workspace-repo-slug-issues-issue-id-comments description: REST surface for repositories-workspace-repo_slug-issues-issue_id-comments. operations: - method: GET name: listcommentsonanissue description: Atlassian List Comments on an Issue call: bitbucket-repositories-comments.listcommentsonanissue with: q: rest.q outputParameters: - type: object mapping: $. - method: POST name: createcommentonanissue description: Atlassian Create Comment on an Issue call: bitbucket-repositories-comments.createcommentonanissue with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments/{comment-id} name: repositories-workspace-repo-slug-issues-issue-id-comments-comment-id description: REST surface for repositories-workspace-repo_slug-issues-issue_id-comments-comment_id. operations: - method: DELETE name: deletecommentonanissue description: Atlassian Delete Comment on an Issue call: bitbucket-repositories-comments.deletecommentonanissue outputParameters: - type: object mapping: $. - method: GET name: getcommentonanissue description: Atlassian Get Comment on an Issue call: bitbucket-repositories-comments.getcommentonanissue outputParameters: - type: object mapping: $. - method: PUT name: updatecommentonanissue description: Atlassian Update Comment on an Issue call: bitbucket-repositories-comments.updatecommentonanissue with: body: rest.body 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-repositories-comments.listcommentsonpullrequest outputParameters: - type: object mapping: $. - method: POST name: createcommentonpullrequest description: Atlassian Create Comment on Pull Request call: bitbucket-repositories-comments.createcommentonpullrequest with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id} name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-comment-i description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i. operations: - method: DELETE name: deletecommentonpullrequest description: Atlassian Delete Comment on Pull Request call: bitbucket-repositories-comments.deletecommentonpullrequest outputParameters: - type: object mapping: $. - method: GET name: getcommentonpullrequest description: Atlassian Get Comment on Pull Request call: bitbucket-repositories-comments.getcommentonpullrequest outputParameters: - type: object mapping: $. - method: PUT name: updatecommentonpullrequest description: Atlassian Update Comment on Pull Request call: bitbucket-repositories-comments.updatecommentonpullrequest with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}/resolve name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-comment-i description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i. operations: - method: DELETE name: reopencommentthread description: Atlassian Reopen Comment Thread call: bitbucket-repositories-comments.reopencommentthread outputParameters: - type: object mapping: $. - method: POST name: resolvecommentthread description: Atlassian Resolve Comment Thread call: bitbucket-repositories-comments.resolvecommentthread outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-comments-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Comments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-commits-comments description: Atlassian List Commits Comments hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-comments.listcommitscomments with: q: tools.q sort: tools.sort outputParameters: - type: object mapping: $. - name: atlassian-create-comment-commit description: Atlassian Create Comment for Commit hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-comments.createcommentforcommit with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-commit-comment description: Atlassian Delete Commit Comment hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-comments.deletecommitcomment outputParameters: - type: object mapping: $. - name: atlassian-get-commit-comment description: Atlassian Get Commit Comment hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-comments.getcommitcomment outputParameters: - type: object mapping: $. - name: atlassian-update-commit-comment description: Atlassian Update Commit Comment hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-comments.updatecommitcomment with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-list-comments-issue description: Atlassian List Comments on an Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-comments.listcommentsonanissue with: q: tools.q outputParameters: - type: object mapping: $. - name: atlassian-create-comment-issue description: Atlassian Create Comment on an Issue hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-comments.createcommentonanissue with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-comment-issue description: Atlassian Delete Comment on an Issue hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-comments.deletecommentonanissue outputParameters: - type: object mapping: $. - name: atlassian-get-comment-issue description: Atlassian Get Comment on an Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-comments.getcommentonanissue outputParameters: - type: object mapping: $. - name: atlassian-update-comment-issue description: Atlassian Update Comment on an Issue hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-comments.updatecommentonanissue with: body: tools.body 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-repositories-comments.listcommentsonpullrequest outputParameters: - type: object mapping: $. - name: atlassian-create-comment-pull-request description: Atlassian Create Comment on Pull Request hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-comments.createcommentonpullrequest with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-comment-pull-request description: Atlassian Delete Comment on Pull Request hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-comments.deletecommentonpullrequest outputParameters: - type: object mapping: $. - name: atlassian-get-comment-pull-request description: Atlassian Get Comment on Pull Request hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-comments.getcommentonpullrequest outputParameters: - type: object mapping: $. - name: atlassian-update-comment-pull-request description: Atlassian Update Comment on Pull Request hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-comments.updatecommentonpullrequest with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-reopen-comment-thread description: Atlassian Reopen Comment Thread hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-comments.reopencommentthread outputParameters: - type: object mapping: $. - name: atlassian-resolve-comment-thread description: Atlassian Resolve Comment Thread hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-comments.resolvecommentthread outputParameters: - type: object mapping: $.