naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Snippets API — Lists description: 'Atlassian Bit Bucket Snippets API — Lists. 4 operations. Lead operation: Atlassian List Snippets in Workspace. 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-snippets-lists baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Snippets API — Lists 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: 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: 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-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: $. exposes: - type: rest namespace: bitbucket-snippets-lists-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Snippets API — Lists. 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-lists.listsnippetsinworkspace with: role: rest.role 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-lists.listcommentsonsnippet 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-lists.listsnippetchanges 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-lists.listuserswatchingsnippet outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-snippets-lists-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Snippets API — Lists. 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-lists.listsnippetsinworkspace with: role: tools.role 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-lists.listcommentsonsnippet outputParameters: - type: object mapping: $. - name: atlassian-list-snippet-changes description: Atlassian List Snippet Changes hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-lists.listsnippetchanges 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-lists.listuserswatchingsnippet outputParameters: - type: object mapping: $.