Bitbucket Pipelines · Capability

Bitbucket API — Commit statuses

Bitbucket API — Commit statuses. 5 operations. Lead operation: List commit statuses for a commit. Self-contained Naftiko capability covering one Bitbucket Pipelines business surface.

Run with Naftiko Bitbucket PipelinesCommit statuses

What You Can Do

GET
Get — List commit statuses for a commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses
POST
Post — Create a build status for a commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build
GET
Get — Get a build status for a commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
PUT
Put — Update a build status for a commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
GET
Get — List commit statuses for a pull request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses

MCP Tools

list-commit-statuses-commit

List commit statuses for a commit

read-only idempotent
create-build-status-commit

Create a build status for a commit

get-build-status-commit

Get a build status for a commit

read-only idempotent
update-build-status-commit

Update a build status for a commit

idempotent
list-commit-statuses-pull-request

List commit statuses for a pull request

read-only idempotent

Capability Spec

bitbucket-pipelines-commit-statuses.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bitbucket API — Commit statuses
  description: 'Bitbucket API — Commit statuses. 5 operations. Lead operation: List commit statuses for a commit. Self-contained
    Naftiko capability covering one Bitbucket Pipelines business surface.'
  tags:
  - Bitbucket Pipelines
  - Commit statuses
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BITBUCKET_PIPELINES_API_KEY: BITBUCKET_PIPELINES_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-pipelines-commit-statuses
    baseUri: https://api.bitbucket.org/2.0
    description: Bitbucket API — Commit statuses business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-commit-commit-statuses
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses
      operations:
      - name: get
        method: GET
        description: List commit statuses for a commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: refname
          in: query
          type: string
          description: If specified, only return commit status objects that were either
        - 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-commit-commit-statuses-build
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build
      operations:
      - name: post
        method: POST
        description: Create a build status for a commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _body
          in: body
          type: string
          description: The new commit status object.
    - name: repositories-workspace-repo_slug-commit-commit-statuses-build-key
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build/{key}
      operations:
      - name: get
        method: GET
        description: Get a build status for a commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: put
        method: PUT
        description: Update a build status for a commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _body
          in: body
          type: string
          description: The updated build status object
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/statuses
      operations:
      - name: get
        method: GET
        description: List commit statuses for a 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
  exposes:
  - type: rest
    namespace: bitbucket-pipelines-commit-statuses-rest
    port: 8080
    description: REST adapter for Bitbucket API — Commit statuses. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses
      name: repositories-workspace-repo-slug-commit-commit-statuses
      description: REST surface for repositories-workspace-repo_slug-commit-commit-statuses.
      operations:
      - method: GET
        name: get
        description: List commit statuses for a commit
        call: bitbucket-pipelines-commit-statuses.get
        with:
          refname: rest.refname
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build
      name: repositories-workspace-repo-slug-commit-commit-statuses-build
      description: REST surface for repositories-workspace-repo_slug-commit-commit-statuses-build.
      operations:
      - method: POST
        name: post
        description: Create a build status for a commit
        call: bitbucket-pipelines-commit-statuses.post
        with:
          _body: rest._body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
      name: repositories-workspace-repo-slug-commit-commit-statuses-build-key
      description: REST surface for repositories-workspace-repo_slug-commit-commit-statuses-build-key.
      operations:
      - method: GET
        name: get
        description: Get a build status for a commit
        call: bitbucket-pipelines-commit-statuses.get
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a build status for a commit
        call: bitbucket-pipelines-commit-statuses.put
        with:
          _body: rest._body
        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: get
        description: List commit statuses for a pull request
        call: bitbucket-pipelines-commit-statuses.get
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-pipelines-commit-statuses-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bitbucket API — Commit statuses. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-commit-statuses-commit
      description: List commit statuses for a commit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-commit-statuses.get
      with:
        refname: tools.refname
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: create-build-status-commit
      description: Create a build status for a commit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-pipelines-commit-statuses.post
      with:
        _body: tools._body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-build-status-commit
      description: Get a build status for a commit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-commit-statuses.get
      outputParameters:
      - type: object
        mapping: $.
    - name: update-build-status-commit
      description: Update a build status for a commit
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-commit-statuses.put
      with:
        _body: tools._body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-commit-statuses-pull-request
      description: List commit statuses for a pull request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-commit-statuses.get
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.