naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Known description: 'Atlassian Bit Bucket Repositories API — Known. 5 operations. Lead operation: Atlassian List Known Hosts. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Known 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-known baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Known business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts operations: - name: listknownhosts method: GET description: Atlassian List Known Hosts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace in: path type: string description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. required: true - name: repo_slug in: path type: string description: The repository. required: true - name: createknownhost method: POST description: Atlassian Create Known Host outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace in: path type: string description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. required: true - name: repo_slug in: path type: string description: The repository. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} operations: - name: getknownhost method: GET description: Atlassian Get Known Host outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace in: path type: string description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. required: true - name: repo_slug in: path type: string description: The repository. required: true - name: known_host_uuid in: path type: string description: The UUID of the known host to retrieve. required: true - name: updateknownhost method: PUT description: Atlassian Update Known Host outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace in: path type: string description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. required: true - name: repo_slug in: path type: string description: The repository. required: true - name: known_host_uuid in: path type: string description: The UUID of the known host to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteknownhost method: DELETE description: Atlassian Delete Known Host outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace in: path type: string description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. required: true - name: repo_slug in: path type: string description: The repository. required: true - name: known_host_uuid in: path type: string description: The UUID of the known host to delete. required: true authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-known-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Known. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts name: repositories-workspace-repo-slug-pipelines-config-ssh-known-hosts description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts. operations: - method: GET name: listknownhosts description: Atlassian List Known Hosts call: bitbucket-repositories-known.listknownhosts with: workspace: rest.workspace repo_slug: rest.repo_slug outputParameters: - type: object mapping: $. - method: POST name: createknownhost description: Atlassian Create Known Host call: bitbucket-repositories-known.createknownhost with: workspace: rest.workspace repo_slug: rest.repo_slug body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid} name: repositories-workspace-repo-slug-pipelines-config-ssh-known-hosts-known-host-uui description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui. operations: - method: GET name: getknownhost description: Atlassian Get Known Host call: bitbucket-repositories-known.getknownhost with: workspace: rest.workspace repo_slug: rest.repo_slug known_host_uuid: rest.known_host_uuid outputParameters: - type: object mapping: $. - method: PUT name: updateknownhost description: Atlassian Update Known Host call: bitbucket-repositories-known.updateknownhost with: workspace: rest.workspace repo_slug: rest.repo_slug known_host_uuid: rest.known_host_uuid body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteknownhost description: Atlassian Delete Known Host call: bitbucket-repositories-known.deleteknownhost with: workspace: rest.workspace repo_slug: rest.repo_slug known_host_uuid: rest.known_host_uuid outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-known-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Known. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-known-hosts description: Atlassian List Known Hosts hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-known.listknownhosts with: workspace: tools.workspace repo_slug: tools.repo_slug outputParameters: - type: object mapping: $. - name: atlassian-create-known-host description: Atlassian Create Known Host hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-known.createknownhost with: workspace: tools.workspace repo_slug: tools.repo_slug body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-get-known-host description: Atlassian Get Known Host hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-known.getknownhost with: workspace: tools.workspace repo_slug: tools.repo_slug known_host_uuid: tools.known_host_uuid outputParameters: - type: object mapping: $. - name: atlassian-update-known-host description: Atlassian Update Known Host hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-known.updateknownhost with: workspace: tools.workspace repo_slug: tools.repo_slug known_host_uuid: tools.known_host_uuid body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-known-host description: Atlassian Delete Known Host hints: readOnly: false destructive: true idempotent: true call: bitbucket-repositories-known.deleteknownhost with: workspace: tools.workspace repo_slug: tools.repo_slug known_host_uuid: tools.known_host_uuid outputParameters: - type: object mapping: $.