naftiko: 1.0.0-alpha2 info: label: Atlassian Bitbucket API — Downloads description: 'Atlassian Bitbucket API — Downloads. 4 operations. Lead operation: Atlassian List Download Artifacts. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Downloads created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-downloads baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bitbucket API — Downloads business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-downloads path: /repositories/{workspace}/{repo_slug}/downloads operations: - name: atlassianlistdownloadartifacts method: GET description: Atlassian List Download Artifacts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: atlassianuploadadownloadartifact method: POST description: Atlassian Upload A Download Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-downloads-filename path: /repositories/{workspace}/{repo_slug}/downloads/{filename} operations: - name: atlassiandeleteadownloadartifact method: DELETE description: Atlassian Delete A Download Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. - name: atlassiangetadownloadartifactlink method: GET description: Atlassian Get A Download Artifact Link outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-downloads-rest port: 8080 description: REST adapter for Atlassian Bitbucket API — Downloads. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/downloads name: repositories-workspace-repo-slug-downloads description: REST surface for repositories-workspace-repo_slug-downloads. operations: - method: GET name: atlassianlistdownloadartifacts description: Atlassian List Download Artifacts call: bitbucket-downloads.atlassianlistdownloadartifacts outputParameters: - type: object mapping: $. - method: POST name: atlassianuploadadownloadartifact description: Atlassian Upload A Download Artifact call: bitbucket-downloads.atlassianuploadadownloadartifact outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/downloads/{filename} name: repositories-workspace-repo-slug-downloads-filename description: REST surface for repositories-workspace-repo_slug-downloads-filename. operations: - method: DELETE name: atlassiandeleteadownloadartifact description: Atlassian Delete A Download Artifact call: bitbucket-downloads.atlassiandeleteadownloadartifact outputParameters: - type: object mapping: $. - method: GET name: atlassiangetadownloadartifactlink description: Atlassian Get A Download Artifact Link call: bitbucket-downloads.atlassiangetadownloadartifactlink outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-downloads-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bitbucket API — Downloads. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-download-artifacts description: Atlassian List Download Artifacts hints: readOnly: true destructive: false idempotent: true call: bitbucket-downloads.atlassianlistdownloadartifacts outputParameters: - type: object mapping: $. - name: atlassian-upload-download-artifact description: Atlassian Upload A Download Artifact hints: readOnly: false destructive: false idempotent: false call: bitbucket-downloads.atlassianuploadadownloadartifact outputParameters: - type: object mapping: $. - name: atlassian-delete-download-artifact description: Atlassian Delete A Download Artifact hints: readOnly: false destructive: true idempotent: true call: bitbucket-downloads.atlassiandeleteadownloadartifact outputParameters: - type: object mapping: $. - name: atlassian-get-download-artifact-link description: Atlassian Get A Download Artifact Link hints: readOnly: true destructive: false idempotent: true call: bitbucket-downloads.atlassiangetadownloadartifactlink outputParameters: - type: object mapping: $.