naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Logs description: 'Atlassian Bit Bucket Repositories API — Logs. 4 operations. Lead operation: Atlassian Get Log File for Step. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Logs 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-logs baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Logs business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-log path: /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log operations: - name: getlogfileforstep method: GET description: Atlassian Get Log File for Step 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-pullrequests-activity path: /repositories/{workspace}/{repo_slug}/pullrequests/activity operations: - name: listpullrequestactivitylog method: GET description: Atlassian List Pull Request Activity Log outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-activity path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity operations: - name: listpullrequestactivitylog method: GET description: Atlassian List Pull Request Activity Log outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-logs-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Logs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/pipelines/{pipeline-uuid}/steps/{step-uuid}/log name: repositories-workspace-repo-slug-pipelines-pipeline-uuid-steps-step-uuid-log description: REST surface for repositories-workspace-repo_slug-pipelines-pipeline_uuid-steps-step_uuid-log. operations: - method: GET name: getlogfileforstep description: Atlassian Get Log File for Step call: bitbucket-repositories-logs.getlogfileforstep 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-logs.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}/pullrequests/activity name: repositories-workspace-repo-slug-pullrequests-activity description: REST surface for repositories-workspace-repo_slug-pullrequests-activity. operations: - method: GET name: listpullrequestactivitylog description: Atlassian List Pull Request Activity Log call: bitbucket-repositories-logs.listpullrequestactivitylog outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/activity name: repositories-workspace-repo-slug-pullrequests-pull-request-id-activity description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-activity. operations: - method: GET name: listpullrequestactivitylog description: Atlassian List Pull Request Activity Log call: bitbucket-repositories-logs.listpullrequestactivitylog outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-logs-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Logs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-log-file-step description: Atlassian Get Log File for Step hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-logs.getlogfileforstep 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-logs.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-list-pull-request-activity description: Atlassian List Pull Request Activity Log hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-logs.listpullrequestactivitylog outputParameters: - type: object mapping: $. - name: atlassian-list-pull-request-activity-2 description: Atlassian List Pull Request Activity Log hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-logs.listpullrequestactivitylog outputParameters: - type: object mapping: $.