naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Pipelines description: 'Atlassian Bit Bucket Repositories API — Pipelines. 9 operations. Lead operation: Atlassian List Pipelines. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Pipelines 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-pipelines baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Pipelines business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-pipelines path: /repositories/{workspace}/{repo_slug}/pipelines operations: - name: listpipelines method: GET description: Atlassian List Pipelines 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: repositories-workspace-repo_slug-pipelines-pipeline_uuid path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid} operations: - name: getpipeline method: GET description: Atlassian Get 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 pipeline UUID. required: true - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps operations: - name: liststepsforpipeline method: GET description: Atlassian List Steps for 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: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid} operations: - name: getstepofpipeline method: GET description: Atlassian Get 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-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 - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-stopPipeline path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline operations: - name: stoppipeline method: POST description: Atlassian Stop 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 authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-pipelines-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Pipelines. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/pipelines name: repositories-workspace-repo-slug-pipelines description: REST surface for repositories-workspace-repo_slug-pipelines. operations: - method: GET name: listpipelines description: Atlassian List Pipelines call: bitbucket-repositories-pipelines.listpipelines with: workspace: rest.workspace repo_slug: rest.repo_slug outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid} name: repositories-workspace-repo-slug-pipelines-pipeline-uuid description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid. operations: - method: GET name: getpipeline description: Atlassian Get Pipeline call: bitbucket-repositories-pipelines.getpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps. operations: - method: GET name: liststepsforpipeline description: Atlassian List Steps for Pipeline call: bitbucket-repositories-pipelines.liststepsforpipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid} name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid. operations: - method: GET name: getstepofpipeline description: Atlassian Get Step of Pipeline call: bitbucket-repositories-pipelines.getstepofpipeline 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}/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-pipelines.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-pipelines.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-pipelines.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-pipelines.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: $. - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/stoppipeline name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-stoppipeline description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-stopPipeline. operations: - method: POST name: stoppipeline description: Atlassian Stop Pipeline call: bitbucket-repositories-pipelines.stoppipeline with: workspace: rest.workspace repo_slug: rest.repo_slug pipeline_uuid: rest.pipeline_uuid outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-pipelines-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Pipelines. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-pipelines description: Atlassian List Pipelines hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-pipelines.listpipelines with: workspace: tools.workspace repo_slug: tools.repo_slug outputParameters: - type: object mapping: $. - name: atlassian-get-pipeline description: Atlassian Get Pipeline hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-pipelines.getpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid outputParameters: - type: object mapping: $. - name: atlassian-list-steps-pipeline description: Atlassian List Steps for Pipeline hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-pipelines.liststepsforpipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid outputParameters: - type: object mapping: $. - name: atlassian-get-step-pipeline description: Atlassian Get Step of Pipeline hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-pipelines.getstepofpipeline 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-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-pipelines.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-pipelines.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-pipelines.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-pipelines.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: $. - name: atlassian-stop-pipeline description: Atlassian Stop Pipeline hints: readOnly: false destructive: false idempotent: false call: bitbucket-repositories-pipelines.stoppipeline with: workspace: tools.workspace repo_slug: tools.repo_slug pipeline_uuid: tools.pipeline_uuid outputParameters: - type: object mapping: $.