naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Attachments description: 'Atlassian Bit Bucket Repositories API — Attachments. 4 operations. Lead operation: Atlassian List Attachments for an Issue. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Attachments 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-attachments baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Attachments business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-issues-issue_id-attachments path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/attachments operations: - name: listattachmentsforanissue method: GET description: Atlassian List Attachments for an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: uploadanattachmenttoanissue method: POST description: Atlassian Upload an Attachment to an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-issues-issue_id-attachments-path path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/attachments/{path} operations: - name: deleteanattachmentforanissue method: DELETE description: Atlassian Delete an Attachment for an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getattachmentforanissue method: GET description: Atlassian Get Attachment for an Issue outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-attachments-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Attachments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/attachments name: repositories-workspace-repo-slug-issues-issue-id-attachments description: REST surface for repositories-workspace-repo_slug-issues-issue_id-attachments. operations: - method: GET name: listattachmentsforanissue description: Atlassian List Attachments for an Issue call: bitbucket-repositories-attachments.listattachmentsforanissue outputParameters: - type: object mapping: $. - method: POST name: uploadanattachmenttoanissue description: Atlassian Upload an Attachment to an Issue call: bitbucket-repositories-attachments.uploadanattachmenttoanissue outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/attachments/{path} name: repositories-workspace-repo-slug-issues-issue-id-attachments-path description: REST surface for repositories-workspace-repo_slug-issues-issue_id-attachments-path. operations: - method: DELETE name: deleteanattachmentforanissue description: Atlassian Delete an Attachment for an Issue call: bitbucket-repositories-attachments.deleteanattachmentforanissue outputParameters: - type: object mapping: $. - method: GET name: getattachmentforanissue description: Atlassian Get Attachment for an Issue call: bitbucket-repositories-attachments.getattachmentforanissue outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-attachments-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Attachments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-attachments-issue description: Atlassian List Attachments for an Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-attachments.listattachmentsforanissue outputParameters: - type: object mapping: $. - name: atlassian-upload-attachment-issue description: Atlassian Upload an Attachment to an Issue hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-attachments.uploadanattachmenttoanissue outputParameters: - type: object mapping: $. - name: atlassian-delete-attachment-issue description: Atlassian Delete an Attachment for an Issue hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-attachments.deleteanattachmentforanissue outputParameters: - type: object mapping: $. - name: atlassian-get-attachment-issue description: Atlassian Get Attachment for an Issue hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-attachments.getattachmentforanissue outputParameters: - type: object mapping: $.