naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Repositories API — Branching description: 'Atlassian Bit Bucket Repositories API — Branching. 4 operations. Lead operation: Atlassian Get the Branching Model for Repository. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Branching 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-branching baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Repositories API — Branching business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-branching-model path: /repositories/{workspace}/{repo_slug}/branching-model operations: - name: getthebranchingmodelforrepository method: GET description: Atlassian Get the Branching Model for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-branching-model-settings path: /repositories/{workspace}/{repo_slug}/branching-model/settings operations: - name: getthebranchingmodelconfigforrepository method: GET description: Atlassian Get the Branching Model Config for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatethebranchingmodelconfigforrepository method: PUT description: Atlassian Update the Branching Model Config for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repositories-workspace-repo_slug-effective-branching-model path: /repositories/{workspace}/{repo_slug}/effective-branching-model operations: - name: gettheeffectiveorcurrentlyappliedbranchingmodelforrepository method: GET description: Atlassian Get the Effective, or Currently Applied, Branching Model for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-repositories-branching-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Repositories API — Branching. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/branching-model name: repositories-workspace-repo-slug-branching-model description: REST surface for repositories-workspace-repo_slug-branching-model. operations: - method: GET name: getthebranchingmodelforrepository description: Atlassian Get the Branching Model for Repository call: bitbucket-repositories-branching.getthebranchingmodelforrepository outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/branching-model/settings name: repositories-workspace-repo-slug-branching-model-settings description: REST surface for repositories-workspace-repo_slug-branching-model-settings. operations: - method: GET name: getthebranchingmodelconfigforrepository description: Atlassian Get the Branching Model Config for Repository call: bitbucket-repositories-branching.getthebranchingmodelconfigforrepository outputParameters: - type: object mapping: $. - method: PUT name: updatethebranchingmodelconfigforrepository description: Atlassian Update the Branching Model Config for Repository call: bitbucket-repositories-branching.updatethebranchingmodelconfigforrepository outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/effective-branching-model name: repositories-workspace-repo-slug-effective-branching-model description: REST surface for repositories-workspace-repo_slug-effective-branching-model. operations: - method: GET name: gettheeffectiveorcurrentlyappliedbranchingmodelforrepository description: Atlassian Get the Effective, or Currently Applied, Branching Model for Repository call: bitbucket-repositories-branching.gettheeffectiveorcurrentlyappliedbranchingmodelforrepository outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-repositories-branching-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Repositories API — Branching. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-branching-model-repository description: Atlassian Get the Branching Model for Repository hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-branching.getthebranchingmodelforrepository outputParameters: - type: object mapping: $. - name: atlassian-get-branching-model-config description: Atlassian Get the Branching Model Config for Repository hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-branching.getthebranchingmodelconfigforrepository outputParameters: - type: object mapping: $. - name: atlassian-update-branching-model-config description: Atlassian Update the Branching Model Config for Repository hints: readOnly: false destructive: false idempotent: true call: bitbucket-repositories-branching.updatethebranchingmodelconfigforrepository outputParameters: - type: object mapping: $. - name: atlassian-get-effective-currently-applied description: Atlassian Get the Effective, or Currently Applied, Branching Model for Repository hints: readOnly: true destructive: false idempotent: true call: bitbucket-repositories-branching.gettheeffectiveorcurrentlyappliedbranchingmodelforrepository outputParameters: - type: object mapping: $.