Atlassian · Capability

Atlassian Bit Bucket Repositories API — Forks

Atlassian Bit Bucket Repositories API — Forks. 2 operations. Lead operation: Atlassian List Repository Forks. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianForks

What You Can Do

GET
Listrepositoryforks — Atlassian List Repository Forks
/v1/repositories/{workspace}/{repo-slug}/forks
POST
Forkrepository — Atlassian Fork Repository
/v1/repositories/{workspace}/{repo-slug}/forks

MCP Tools

atlassian-list-repository-forks

Atlassian List Repository Forks

read-only idempotent
atlassian-fork-repository

Atlassian Fork Repository

Capability Spec

bitbucket-repositories-forks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Forks
  description: 'Atlassian Bit Bucket Repositories API — Forks. 2 operations. Lead operation: Atlassian List Repository Forks.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Forks
  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-forks
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Forks business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-forks
      path: /repositories/{workspace}/{repo_slug}/forks
      operations:
      - name: listrepositoryforks
        method: GET
        description: Atlassian List Repository Forks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters the result based on the authenticated user's role on each repository.
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
      - name: forkrepository
        method: POST
        description: Atlassian Fork Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-forks-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Forks. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/forks
      name: repositories-workspace-repo-slug-forks
      description: REST surface for repositories-workspace-repo_slug-forks.
      operations:
      - method: GET
        name: listrepositoryforks
        description: Atlassian List Repository Forks
        call: bitbucket-repositories-forks.listrepositoryforks
        with:
          role: rest.role
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: forkrepository
        description: Atlassian Fork Repository
        call: bitbucket-repositories-forks.forkrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-forks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Forks. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-list-repository-forks
      description: Atlassian List Repository Forks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-forks.listrepositoryforks
      with:
        role: tools.role
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-fork-repository
      description: Atlassian Fork Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-forks.forkrepository
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.