Atlassian · Capability

Atlassian Bit Bucket Pull Requests API — Commits

Atlassian Bit Bucket Pull Requests API — Commits. 2 operations. Lead operation: Atlassian List Commits on Pull Request. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCommits

What You Can Do

GET
Listcommitsonpullrequest — Atlassian List Commits on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/commits
GET
Listcommitstatusesforpullrequest — Atlassian List Commit Statuses for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses

MCP Tools

atlassian-list-commits-pull-request

Atlassian List Commits on Pull Request

read-only idempotent
atlassian-list-commit-statuses-pull

Atlassian List Commit Statuses for Pull Request

read-only idempotent

Capability Spec

bitbucket-pull-requests-commits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Pull Requests API — Commits
  description: 'Atlassian Bit Bucket Pull Requests API — Commits. 2 operations. Lead operation: Atlassian List Commits on
    Pull Request. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Commits
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-pull-requests-commits
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Pull Requests API — Commits business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-commits
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits
      operations:
      - name: listcommitsonpullrequest
        method: GET
        description: Atlassian List Commits on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/statuses
      operations:
      - name: listcommitstatusesforpullrequest
        method: GET
        description: Atlassian List Commit Statuses for Pull Request
        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
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-pull-requests-commits-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Pull Requests API — Commits. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/commits
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-commits
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-commits.
      operations:
      - method: GET
        name: listcommitsonpullrequest
        description: Atlassian List Commits on Pull Request
        call: bitbucket-pull-requests-commits.listcommitsonpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-statuses
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses.
      operations:
      - method: GET
        name: listcommitstatusesforpullrequest
        description: Atlassian List Commit Statuses for Pull Request
        call: bitbucket-pull-requests-commits.listcommitstatusesforpullrequest
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-pull-requests-commits-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Pull Requests API — Commits. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-list-commits-pull-request
      description: Atlassian List Commits on Pull Request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pull-requests-commits.listcommitsonpullrequest
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commit-statuses-pull
      description: Atlassian List Commit Statuses for Pull Request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pull-requests-commits.listcommitstatusesforpullrequest
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.