naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Snippets API — Snippets description: 'Atlassian Bit Bucket Snippets API — Snippets. 22 operations. Lead operation: Atlassian List Snippets in Workspace. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Snippets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-snippets-snippets baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Snippets API — Snippets business capability. Self-contained, no shared references. resources: - name: snippets-workspace path: /snippets/{workspace} operations: - name: listsnippetsinworkspace method: GET description: Atlassian List Snippets in Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: role in: query type: string description: Filter down the result based on the authenticated user's role (`owner`, `contributor`, or `member`). - name: createsnippetforworkspace method: POST description: Atlassian Create Snippet for Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: snippets-workspace-encoded_id path: /snippets/{workspace}/{encoded_id} operations: - name: getsnippet method: GET description: Atlassian Get Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatesnippet method: PUT description: Atlassian Update Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-comments path: /snippets/{workspace}/{encoded_id}/comments operations: - name: listcommentsonsnippet method: GET description: Atlassian List Comments on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcommentonsnippet method: POST description: Atlassian Create Comment on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: snippets-workspace-encoded_id-comments-comment_id path: /snippets/{workspace}/{encoded_id}/comments/{comment_id} operations: - name: deletecommentonsnippet method: DELETE description: Atlassian Delete Comment on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getcommentonsnippet method: GET description: Atlassian Get Comment on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecommentonsnippet method: PUT description: Atlassian Update Comment on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: snippets-workspace-encoded_id-commits path: /snippets/{workspace}/{encoded_id}/commits operations: - name: listsnippetchanges method: GET description: Atlassian List Snippet Changes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-commits-revision path: /snippets/{workspace}/{encoded_id}/commits/{revision} operations: - name: getprevioussnippetchange method: GET description: Atlassian Get Previous Snippet Change outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-files-path path: /snippets/{workspace}/{encoded_id}/files/{path} operations: - name: getsnippetsrawfileathead method: GET description: Atlassian Get Snippets Raw File at Head outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-watch path: /snippets/{workspace}/{encoded_id}/watch operations: - name: stopwatchingsnippet method: DELETE description: Atlassian Stop Watching Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: checkifthecurrentuseriswatchingsnippet method: GET description: Atlassian Check if the Current User Is Watching Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: watchsnippet method: PUT description: Atlassian Watch Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-watchers path: /snippets/{workspace}/{encoded_id}/watchers operations: - name: listuserswatchingsnippet method: GET description: Atlassian List Users Watching Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-node_id path: /snippets/{workspace}/{encoded_id}/{node_id} operations: - name: deletepreviousrevisionofsnippet method: DELETE description: Atlassian Delete Previous Revision of Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getpreviousrevisionofsnippet method: GET description: Atlassian Get Previous Revision of Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatepreviousrevisionofsnippet method: PUT description: Atlassian Update Previous Revision of Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-node_id-files-path path: /snippets/{workspace}/{encoded_id}/{node_id}/files/{path} operations: - name: getsnippetsrawfile method: GET description: Atlassian Get Snippets Raw File outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-revision-diff path: /snippets/{workspace}/{encoded_id}/{revision}/diff operations: - name: getsnippetchangesbetweenversions method: GET description: Atlassian Get Snippet Changes Between Versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: path in: query type: string description: When used, only one the diff of the specified file will be returned. - name: snippets-workspace-encoded_id-revision-patch path: /snippets/{workspace}/{encoded_id}/{revision}/patch operations: - name: getsnippetpatchbetweenversions method: GET description: Atlassian Get Snippet Patch Between Versions outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: bitbucket-snippets-snippets-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Snippets API — Snippets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/snippets/{workspace} name: snippets-workspace description: REST surface for snippets-workspace. operations: - method: GET name: listsnippetsinworkspace description: Atlassian List Snippets in Workspace call: bitbucket-snippets-snippets.listsnippetsinworkspace with: role: rest.role outputParameters: - type: object mapping: $. - method: POST name: createsnippetforworkspace description: Atlassian Create Snippet for Workspace call: bitbucket-snippets-snippets.createsnippetforworkspace with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id} name: snippets-workspace-encoded-id description: REST surface for snippets-workspace-encoded_id. operations: - method: GET name: getsnippet description: Atlassian Get Snippet call: bitbucket-snippets-snippets.getsnippet outputParameters: - type: object mapping: $. - method: PUT name: updatesnippet description: Atlassian Update Snippet call: bitbucket-snippets-snippets.updatesnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/comments name: snippets-workspace-encoded-id-comments description: REST surface for snippets-workspace-encoded_id-comments. operations: - method: GET name: listcommentsonsnippet description: Atlassian List Comments on Snippet call: bitbucket-snippets-snippets.listcommentsonsnippet outputParameters: - type: object mapping: $. - method: POST name: createcommentonsnippet description: Atlassian Create Comment on Snippet call: bitbucket-snippets-snippets.createcommentonsnippet with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/comments/{comment-id} name: snippets-workspace-encoded-id-comments-comment-id description: REST surface for snippets-workspace-encoded_id-comments-comment_id. operations: - method: DELETE name: deletecommentonsnippet description: Atlassian Delete Comment on Snippet call: bitbucket-snippets-snippets.deletecommentonsnippet outputParameters: - type: object mapping: $. - method: GET name: getcommentonsnippet description: Atlassian Get Comment on Snippet call: bitbucket-snippets-snippets.getcommentonsnippet outputParameters: - type: object mapping: $. - method: PUT name: updatecommentonsnippet description: Atlassian Update Comment on Snippet call: bitbucket-snippets-snippets.updatecommentonsnippet with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/commits name: snippets-workspace-encoded-id-commits description: REST surface for snippets-workspace-encoded_id-commits. operations: - method: GET name: listsnippetchanges description: Atlassian List Snippet Changes call: bitbucket-snippets-snippets.listsnippetchanges outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/commits/{revision} name: snippets-workspace-encoded-id-commits-revision description: REST surface for snippets-workspace-encoded_id-commits-revision. operations: - method: GET name: getprevioussnippetchange description: Atlassian Get Previous Snippet Change call: bitbucket-snippets-snippets.getprevioussnippetchange outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/files/{path} name: snippets-workspace-encoded-id-files-path description: REST surface for snippets-workspace-encoded_id-files-path. operations: - method: GET name: getsnippetsrawfileathead description: Atlassian Get Snippets Raw File at Head call: bitbucket-snippets-snippets.getsnippetsrawfileathead outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/watch name: snippets-workspace-encoded-id-watch description: REST surface for snippets-workspace-encoded_id-watch. operations: - method: DELETE name: stopwatchingsnippet description: Atlassian Stop Watching Snippet call: bitbucket-snippets-snippets.stopwatchingsnippet outputParameters: - type: object mapping: $. - method: GET name: checkifthecurrentuseriswatchingsnippet description: Atlassian Check if the Current User Is Watching Snippet call: bitbucket-snippets-snippets.checkifthecurrentuseriswatchingsnippet outputParameters: - type: object mapping: $. - method: PUT name: watchsnippet description: Atlassian Watch Snippet call: bitbucket-snippets-snippets.watchsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/watchers name: snippets-workspace-encoded-id-watchers description: REST surface for snippets-workspace-encoded_id-watchers. operations: - method: GET name: listuserswatchingsnippet description: Atlassian List Users Watching Snippet call: bitbucket-snippets-snippets.listuserswatchingsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{node-id} name: snippets-workspace-encoded-id-node-id description: REST surface for snippets-workspace-encoded_id-node_id. operations: - method: DELETE name: deletepreviousrevisionofsnippet description: Atlassian Delete Previous Revision of Snippet call: bitbucket-snippets-snippets.deletepreviousrevisionofsnippet outputParameters: - type: object mapping: $. - method: GET name: getpreviousrevisionofsnippet description: Atlassian Get Previous Revision of Snippet call: bitbucket-snippets-snippets.getpreviousrevisionofsnippet outputParameters: - type: object mapping: $. - method: PUT name: updatepreviousrevisionofsnippet description: Atlassian Update Previous Revision of Snippet call: bitbucket-snippets-snippets.updatepreviousrevisionofsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{node-id}/files/{path} name: snippets-workspace-encoded-id-node-id-files-path description: REST surface for snippets-workspace-encoded_id-node_id-files-path. operations: - method: GET name: getsnippetsrawfile description: Atlassian Get Snippets Raw File call: bitbucket-snippets-snippets.getsnippetsrawfile outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{revision}/diff name: snippets-workspace-encoded-id-revision-diff description: REST surface for snippets-workspace-encoded_id-revision-diff. operations: - method: GET name: getsnippetchangesbetweenversions description: Atlassian Get Snippet Changes Between Versions call: bitbucket-snippets-snippets.getsnippetchangesbetweenversions with: path: rest.path outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{revision}/patch name: snippets-workspace-encoded-id-revision-patch description: REST surface for snippets-workspace-encoded_id-revision-patch. operations: - method: GET name: getsnippetpatchbetweenversions description: Atlassian Get Snippet Patch Between Versions call: bitbucket-snippets-snippets.getsnippetpatchbetweenversions outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-snippets-snippets-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Snippets API — Snippets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-snippets-workspace description: Atlassian List Snippets in Workspace hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.listsnippetsinworkspace with: role: tools.role outputParameters: - type: object mapping: $. - name: atlassian-create-snippet-workspace description: Atlassian Create Snippet for Workspace hints: readOnly: false destructive: false idempotent: false call: bitbucket-snippets-snippets.createsnippetforworkspace with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-get-snippet description: Atlassian Get Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getsnippet outputParameters: - type: object mapping: $. - name: atlassian-update-snippet description: Atlassian Update Snippet hints: readOnly: false destructive: false idempotent: true call: bitbucket-snippets-snippets.updatesnippet outputParameters: - type: object mapping: $. - name: atlassian-list-comments-snippet description: Atlassian List Comments on Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.listcommentsonsnippet outputParameters: - type: object mapping: $. - name: atlassian-create-comment-snippet description: Atlassian Create Comment on Snippet hints: readOnly: false destructive: false idempotent: false call: bitbucket-snippets-snippets.createcommentonsnippet with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-comment-snippet description: Atlassian Delete Comment on Snippet hints: readOnly: false destructive: true idempotent: true call: bitbucket-snippets-snippets.deletecommentonsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-comment-snippet description: Atlassian Get Comment on Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getcommentonsnippet outputParameters: - type: object mapping: $. - name: atlassian-update-comment-snippet description: Atlassian Update Comment on Snippet hints: readOnly: false destructive: false idempotent: true call: bitbucket-snippets-snippets.updatecommentonsnippet with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-list-snippet-changes description: Atlassian List Snippet Changes hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.listsnippetchanges outputParameters: - type: object mapping: $. - name: atlassian-get-previous-snippet-change description: Atlassian Get Previous Snippet Change hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getprevioussnippetchange outputParameters: - type: object mapping: $. - name: atlassian-get-snippets-raw-file description: Atlassian Get Snippets Raw File at Head hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getsnippetsrawfileathead outputParameters: - type: object mapping: $. - name: atlassian-stop-watching-snippet description: Atlassian Stop Watching Snippet hints: readOnly: false destructive: true idempotent: true call: bitbucket-snippets-snippets.stopwatchingsnippet outputParameters: - type: object mapping: $. - name: atlassian-check-if-current-user description: Atlassian Check if the Current User Is Watching Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.checkifthecurrentuseriswatchingsnippet outputParameters: - type: object mapping: $. - name: atlassian-watch-snippet description: Atlassian Watch Snippet hints: readOnly: false destructive: false idempotent: true call: bitbucket-snippets-snippets.watchsnippet outputParameters: - type: object mapping: $. - name: atlassian-list-users-watching-snippet description: Atlassian List Users Watching Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.listuserswatchingsnippet outputParameters: - type: object mapping: $. - name: atlassian-delete-previous-revision-snippet description: Atlassian Delete Previous Revision of Snippet hints: readOnly: false destructive: true idempotent: true call: bitbucket-snippets-snippets.deletepreviousrevisionofsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-previous-revision-snippet description: Atlassian Get Previous Revision of Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getpreviousrevisionofsnippet outputParameters: - type: object mapping: $. - name: atlassian-update-previous-revision-snippet description: Atlassian Update Previous Revision of Snippet hints: readOnly: false destructive: false idempotent: true call: bitbucket-snippets-snippets.updatepreviousrevisionofsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-snippets-raw-file-2 description: Atlassian Get Snippets Raw File hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getsnippetsrawfile outputParameters: - type: object mapping: $. - name: atlassian-get-snippet-changes-between description: Atlassian Get Snippet Changes Between Versions hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getsnippetchangesbetweenversions with: path: tools.path outputParameters: - type: object mapping: $. - name: atlassian-get-snippet-patch-between description: Atlassian Get Snippet Patch Between Versions hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-snippets.getsnippetpatchbetweenversions outputParameters: - type: object mapping: $.