naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Given description: 'Atlassian Bit Bucket Repositories API — Given. 4 operations. Lead operation: Atlassian Get the Logs for the Build Container or Service Container for Given Step of Pipeline.. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Given 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-given baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Given business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-logs-lo path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/logs/{log_uuid} operations: - name: getthelogsforthebuildcontainerorservicecontainerforgivenstepofpipeline method: GET description: Atlassian Get the Logs for the Build Container or Service Container for Given Step of Pipeline. 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: pipeline_uuid in: path type: string description: The UUID of the pipeline. required: true - name: step_uuid in: path type: string description: The UUID of the step. required: true - name: log_uuid in: path type: string description: For the main build container specify the step UUID; for a service container specify the service container UUID required: true - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports operations: - name: getsummaryoftestreportsforgivenstepofpipeline method: GET description: Atlassian Get Summary of Test Reports for Given Step of Pipeline. 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: pipeline_uuid in: path type: string description: The UUID of the pipeline. required: true - name: step_uuid in: path type: string description: The UUID of the step. required: true - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases operations: - name: gettestcasesforgivenstepofpipeline method: GET description: Atlassian Get Test Cases for Given Step of Pipeline. 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: pipeline_uuid in: path type: string description: The UUID of the pipeline. required: true - name: step_uuid in: path type: string description: The UUID of the step. required: true - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases/{test_case_uuid}/test_case_reasons operations: - name: gettestcasereasonsoutputforgiventestcaseinstepofpipeline method: GET description: Atlassian Get Test Case Reasons (output) for Given Test Case in Step of Pipeline. 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: pipeline_uuid in: path type: string description: The UUID of the pipeline. required: true - name: step_uuid in: path type: string description: The UUID of the step. required: true - name: test_case_uuid in: path type: string description: The UUID of the test case. required: true authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-given-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Given. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid}/logs/{log-uuid} name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid-logs-lo description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-logs-lo. operations: - method: GET name: getthelogsforthebuildcontainerorservicecontainerforgivenstepofpipeline description: Atlassian Get the Logs for the Build Container or Service Container for Given Step of Pipeline. call: bitbucket-repositories-given.getthelogsforthebuildcontainerorservicecontainerforgivenstepofpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid step_uuid: rest.step_uuid log_uuid: rest.log_uuid outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid}/test-reports name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid-test-re description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re. operations: - method: GET name: getsummaryoftestreportsforgivenstepofpipeline description: Atlassian Get Summary of Test Reports for Given Step of Pipeline. call: bitbucket-repositories-given.getsummaryoftestreportsforgivenstepofpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid step_uuid: rest.step_uuid outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid}/test-reports/test-cases name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid-test-re description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re. operations: - method: GET name: gettestcasesforgivenstepofpipeline description: Atlassian Get Test Cases for Given Step of Pipeline. call: bitbucket-repositories-given.gettestcasesforgivenstepofpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid step_uuid: rest.step_uuid outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid}/test-reports/test-cases/{test-case-uuid}/test-case-reasons name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid-test-re description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-test_re. operations: - method: GET name: gettestcasereasonsoutputforgiventestcaseinstepofpipeline description: Atlassian Get Test Case Reasons (output) for Given Test Case in Step of Pipeline. call: bitbucket-repositories-given.gettestcasereasonsoutputforgiventestcaseinstepofpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid step_uuid: rest.step_uuid test_case_uuid: rest.test_case_uuid outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-given-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Given. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-logs-build-container description: Atlassian Get the Logs for the Build Container or Service Container for Given Step of Pipeline. hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-given.getthelogsforthebuildcontainerorservicecontainerforgivenstepofpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid step_uuid: tools.step_uuid log_uuid: tools.log_uuid outputParameters: - type: object mapping: $. - name: atlassian-get-summary-test-reports description: Atlassian Get Summary of Test Reports for Given Step of Pipeline. hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-given.getsummaryoftestreportsforgivenstepofpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid step_uuid: tools.step_uuid outputParameters: - type: object mapping: $. - name: atlassian-get-test-cases-given description: Atlassian Get Test Cases for Given Step of Pipeline. hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-given.gettestcasesforgivenstepofpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid step_uuid: tools.step_uuid outputParameters: - type: object mapping: $. - name: atlassian-get-test-case-reasons description: Atlassian Get Test Case Reasons (output) for Given Test Case in Step of Pipeline. hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-given.gettestcasereasonsoutputforgiventestcaseinstepofpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid step_uuid: tools.step_uuid test_case_uuid: tools.test_case_uuid outputParameters: - type: object mapping: $.