Atlassian · Capability

Atlassian repositories/ — Branch Restrictions

Atlassian repositories/ — Branch Restrictions. 5 operations. Lead operation: Atlassian List Branch Restrictions. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianBranch Restrictions

What You Can Do

GET
Atlassianlistbranchrestrictions — Atlassian List Branch Restrictions
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions
POST
Atlassiancreateabranchrestrictionrule — Atlassian Create A Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions
DELETE
Atlassiandeleteabranchrestrictionrule — Atlassian Delete A Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
GET
Atlassiangetabranchrestrictionrule — Atlassian Get A Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
PUT
Atlassianupdateabranchrestrictionrule — Atlassian Update A Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}

MCP Tools

atlassian-list-branch-restrictions

Atlassian List Branch Restrictions

read-only idempotent
atlassian-create-branch-restriction-rule

Atlassian Create A Branch Restriction Rule

atlassian-delete-branch-restriction-rule

Atlassian Delete A Branch Restriction Rule

idempotent
atlassian-get-branch-restriction-rule

Atlassian Get A Branch Restriction Rule

read-only idempotent
atlassian-update-branch-restriction-rule

Atlassian Update A Branch Restriction Rule

idempotent

Capability Spec

repositories--branch-restrictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian repositories/ — Branch Restrictions
  description: 'Atlassian repositories/ — 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: repositories--branch-restrictions
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian repositories/ — 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
  exposes:
  - type: rest
    namespace: repositories--branch-restrictions-rest
    port: 8080
    description: REST adapter for Atlassian repositories/ — 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: repositories--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: repositories--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: repositories--branch-restrictions.atlassiandeleteabranchrestrictionrule
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetabranchrestrictionrule
        description: Atlassian Get A Branch Restriction Rule
        call: repositories--branch-restrictions.atlassiangetabranchrestrictionrule
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: atlassianupdateabranchrestrictionrule
        description: Atlassian Update A Branch Restriction Rule
        call: repositories--branch-restrictions.atlassianupdateabranchrestrictionrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repositories--branch-restrictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian repositories/ — 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: repositories--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: repositories--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: repositories--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: repositories--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: repositories--branch-restrictions.atlassianupdateabranchrestrictionrule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.