naftiko: 1.0.0-alpha2 info: label: Atlassian Bitbucket API — Branch Restrictions description: 'Atlassian Bitbucket API — Branch Restrictions. 5 operations. Lead operation: Atlassian List Branch Restrictions. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Branch Restrictions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-branch-restrictions baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bitbucket API — Branch Restrictions business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-branch-restrictions path: /repositories/{workspace}/{repo_slug}/branch-restrictions operations: - name: atlassianlistbranchrestrictions method: GET description: Atlassian List Branch Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: kind in: query type: string description: Branch restrictions of this type - name: pattern in: query type: string description: Branch restrictions applied to branches of this pattern - name: atlassiancreateabranchrestrictionrule method: POST description: Atlassian Create A Branch Restriction Rule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: repositories-workspace-repo_slug-branch-restrictions-id path: /repositories/{workspace}/{repo_slug}/branch-restrictions/{id} operations: - name: atlassiandeleteabranchrestrictionrule method: DELETE description: Atlassian Delete A Branch Restriction Rule outputRawFormat: json outputParameters: - name: result type: object value: $. - name: atlassiangetabranchrestrictionrule method: GET description: Atlassian Get A Branch Restriction Rule outputRawFormat: json outputParameters: - name: result type: object value: $. - name: atlassianupdateabranchrestrictionrule method: PUT description: Atlassian Update A Branch Restriction Rule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-branch-restrictions-rest port: 8080 description: REST adapter for Atlassian Bitbucket API — Branch Restrictions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/branch-restrictions name: repositories-workspace-repo-slug-branch-restrictions description: REST surface for repositories-workspace-repo_slug-branch-restrictions. operations: - method: GET name: atlassianlistbranchrestrictions description: Atlassian List Branch Restrictions call: bitbucket-branch-restrictions.atlassianlistbranchrestrictions with: kind: rest.kind pattern: rest.pattern outputParameters: - type: object mapping: $. - method: POST name: atlassiancreateabranchrestrictionrule description: Atlassian Create A Branch Restriction Rule call: bitbucket-branch-restrictions.atlassiancreateabranchrestrictionrule with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id} name: repositories-workspace-repo-slug-branch-restrictions-id description: REST surface for repositories-workspace-repo_slug-branch-restrictions-id. operations: - method: DELETE name: atlassiandeleteabranchrestrictionrule description: Atlassian Delete A Branch Restriction Rule call: bitbucket-branch-restrictions.atlassiandeleteabranchrestrictionrule outputParameters: - type: object mapping: $. - method: GET name: atlassiangetabranchrestrictionrule description: Atlassian Get A Branch Restriction Rule call: bitbucket-branch-restrictions.atlassiangetabranchrestrictionrule outputParameters: - type: object mapping: $. - method: PUT name: atlassianupdateabranchrestrictionrule description: Atlassian Update A Branch Restriction Rule call: bitbucket-branch-restrictions.atlassianupdateabranchrestrictionrule with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-branch-restrictions-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bitbucket API — Branch Restrictions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-branch-restrictions description: Atlassian List Branch Restrictions hints: readOnly: true destructive: false idempotent: true call: bitbucket-branch-restrictions.atlassianlistbranchrestrictions with: kind: tools.kind pattern: tools.pattern outputParameters: - type: object mapping: $. - name: atlassian-create-branch-restriction-rule description: Atlassian Create A Branch Restriction Rule hints: readOnly: false destructive: false idempotent: false call: bitbucket-branch-restrictions.atlassiancreateabranchrestrictionrule with: body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-delete-branch-restriction-rule description: Atlassian Delete A Branch Restriction Rule hints: readOnly: false destructive: true idempotent: true call: bitbucket-branch-restrictions.atlassiandeleteabranchrestrictionrule outputParameters: - type: object mapping: $. - name: atlassian-get-branch-restriction-rule description: Atlassian Get A Branch Restriction Rule hints: readOnly: true destructive: false idempotent: true call: bitbucket-branch-restrictions.atlassiangetabranchrestrictionrule outputParameters: - type: object mapping: $. - name: atlassian-update-branch-restriction-rule description: Atlassian Update A Branch Restriction Rule hints: readOnly: false destructive: false idempotent: true call: bitbucket-branch-restrictions.atlassianupdateabranchrestrictionrule with: body: tools.body outputParameters: - type: object mapping: $.