Atlassian · Capability

Atlassian repositories/ — Refs

Atlassian repositories/ — Refs. 9 operations. Lead operation: Atlassian List Branches And Tags. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianRefs

What You Can Do

GET
Atlassianlistbranchesandtags — Atlassian List Branches And Tags
/v1/repositories/{workspace}/{repo-slug}/refs
GET
Atlassianlistopenbranches — Atlassian List Open Branches
/v1/repositories/{workspace}/{repo-slug}/refs/branches
POST
Atlassiancreateabranch — Atlassian Create A Branch
/v1/repositories/{workspace}/{repo-slug}/refs/branches
DELETE
Atlassiandeleteabranch — Atlassian Delete A Branch
/v1/repositories/{workspace}/{repo-slug}/refs/branches/{name}
GET
Atlassiangetabranch — Atlassian Get A Branch
/v1/repositories/{workspace}/{repo-slug}/refs/branches/{name}
GET
Atlassianlisttags — Atlassian List Tags
/v1/repositories/{workspace}/{repo-slug}/refs/tags
POST
Atlassiancreateatag — Atlassian Create A Tag
/v1/repositories/{workspace}/{repo-slug}/refs/tags
DELETE
Atlassiandeleteatag — Atlassian Delete A Tag
/v1/repositories/{workspace}/{repo-slug}/refs/tags/{name}
GET
Atlassiangetatag — Atlassian Get A Tag
/v1/repositories/{workspace}/{repo-slug}/refs/tags/{name}

MCP Tools

atlassian-list-branches-and-tags

Atlassian List Branches And Tags

read-only idempotent
atlassian-list-open-branches

Atlassian List Open Branches

read-only idempotent
atlassian-create-branch

Atlassian Create A Branch

atlassian-delete-branch

Atlassian Delete A Branch

idempotent
atlassian-get-branch

Atlassian Get A Branch

read-only idempotent
atlassian-list-tags

Atlassian List Tags

read-only idempotent
atlassian-create-tag

Atlassian Create A Tag

atlassian-delete-tag

Atlassian Delete A Tag

idempotent
atlassian-get-tag

Atlassian Get A Tag

read-only idempotent

Capability Spec

repositories--refs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian repositories/ — Refs
  description: 'Atlassian repositories/ — Refs. 9 operations. Lead operation: Atlassian List Branches And Tags. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Refs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: repositories--refs
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian repositories/ — Refs business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-refs
      path: /repositories/{workspace}/{repo_slug}/refs
      operations:
      - name: atlassianlistbranchesandtags
        method: GET
        description: Atlassian List Branches And Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per
    - name: repositories-workspace-repo_slug-refs-branches
      path: /repositories/{workspace}/{repo_slug}/refs/branches
      operations:
      - name: atlassianlistopenbranches
        method: GET
        description: Atlassian List Open Branches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per
      - name: atlassiancreateabranch
        method: POST
        description: Atlassian Create A Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-refs-branches-name
      path: /repositories/{workspace}/{repo_slug}/refs/branches/{name}
      operations:
      - name: atlassiandeleteabranch
        method: DELETE
        description: Atlassian Delete A Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetabranch
        method: GET
        description: Atlassian Get A Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-refs-tags
      path: /repositories/{workspace}/{repo_slug}/refs/tags
      operations:
      - name: atlassianlisttags
        method: GET
        description: Atlassian List Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per
      - name: atlassiancreateatag
        method: POST
        description: Atlassian Create A Tag
        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-refs-tags-name
      path: /repositories/{workspace}/{repo_slug}/refs/tags/{name}
      operations:
      - name: atlassiandeleteatag
        method: DELETE
        description: Atlassian Delete A Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetatag
        method: GET
        description: Atlassian Get A Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: repositories--refs-rest
    port: 8080
    description: REST adapter for Atlassian repositories/ — Refs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/refs
      name: repositories-workspace-repo-slug-refs
      description: REST surface for repositories-workspace-repo_slug-refs.
      operations:
      - method: GET
        name: atlassianlistbranchesandtags
        description: Atlassian List Branches And Tags
        call: repositories--refs.atlassianlistbranchesandtags
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/branches
      name: repositories-workspace-repo-slug-refs-branches
      description: REST surface for repositories-workspace-repo_slug-refs-branches.
      operations:
      - method: GET
        name: atlassianlistopenbranches
        description: Atlassian List Open Branches
        call: repositories--refs.atlassianlistopenbranches
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreateabranch
        description: Atlassian Create A Branch
        call: repositories--refs.atlassiancreateabranch
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/branches/{name}
      name: repositories-workspace-repo-slug-refs-branches-name
      description: REST surface for repositories-workspace-repo_slug-refs-branches-name.
      operations:
      - method: DELETE
        name: atlassiandeleteabranch
        description: Atlassian Delete A Branch
        call: repositories--refs.atlassiandeleteabranch
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetabranch
        description: Atlassian Get A Branch
        call: repositories--refs.atlassiangetabranch
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/tags
      name: repositories-workspace-repo-slug-refs-tags
      description: REST surface for repositories-workspace-repo_slug-refs-tags.
      operations:
      - method: GET
        name: atlassianlisttags
        description: Atlassian List Tags
        call: repositories--refs.atlassianlisttags
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreateatag
        description: Atlassian Create A Tag
        call: repositories--refs.atlassiancreateatag
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/tags/{name}
      name: repositories-workspace-repo-slug-refs-tags-name
      description: REST surface for repositories-workspace-repo_slug-refs-tags-name.
      operations:
      - method: DELETE
        name: atlassiandeleteatag
        description: Atlassian Delete A Tag
        call: repositories--refs.atlassiandeleteatag
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetatag
        description: Atlassian Get A Tag
        call: repositories--refs.atlassiangetatag
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repositories--refs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian repositories/ — Refs. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: atlassian-list-branches-and-tags
      description: Atlassian List Branches And Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--refs.atlassianlistbranchesandtags
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-open-branches
      description: Atlassian List Open Branches
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--refs.atlassianlistopenbranches
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-branch
      description: Atlassian Create A Branch
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repositories--refs.atlassiancreateabranch
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-branch
      description: Atlassian Delete A Branch
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repositories--refs.atlassiandeleteabranch
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-branch
      description: Atlassian Get A Branch
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--refs.atlassiangetabranch
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-tags
      description: Atlassian List Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--refs.atlassianlisttags
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-tag
      description: Atlassian Create A Tag
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repositories--refs.atlassiancreateatag
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-tag
      description: Atlassian Delete A Tag
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repositories--refs.atlassiandeleteatag
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-tag
      description: Atlassian Get A Tag
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--refs.atlassiangetatag
      outputParameters:
      - type: object
        mapping: $.