Atlassian · Capability

Atlassian Bit Bucket Repositories API — Commits

Atlassian Bit Bucket Repositories API — Commits. 28 operations. Lead operation: Atlassian Get Commit. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCommits

What You Can Do

GET
Getcommit — Atlassian Get Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}
DELETE
Unapprovecommit — Atlassian Unapprove Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/approve
POST
Approvecommit — Atlassian Approve Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/approve
GET
Listcommitscomments — Atlassian List Commits Comments
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
POST
Createcommentforcommit — Atlassian Create Comment for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
DELETE
Deletecommitcomment — Atlassian Delete Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
GET
Getcommitcomment — Atlassian Get Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
PUT
Updatecommitcomment — Atlassian Update Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
PUT
Updatecommitapplicationproperty — Atlassian Update Commit Application Property
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
DELETE
Deletecommitapplicationproperty — Atlassian Delete Commit Application Property
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
GET
Getcommitapplicationproperty — Atlassian Get Commit Application Property
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
GET
Listpullrequeststhatcontaincommit — Atlassian List Pull Requests That Contain Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests
GET
Listcommitstatusesforcommit — Atlassian List Commit Statuses for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses
POST
Createbuildstatusforcommit — Atlassian Create Build Status for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build
GET
Getbuildstatusforcommit — Atlassian Get Build Status for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
PUT
Updatebuildstatusforcommit — Atlassian Update Build Status for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
GET
Listcommits — Atlassian List Commits
/v1/repositories/{workspace}/{repo-slug}/commits
POST
Listcommitswithincludeexclude — Atlassian List Commits With Include/exclude
/v1/repositories/{workspace}/{repo-slug}/commits
GET
Listcommitsforrevision — Atlassian List Commits for Revision
/v1/repositories/{workspace}/{repo-slug}/commits/{revision}
POST
Listcommitsforrevisionusingincludeexclude — Atlassian List Commits for Revision Using Include/exclude
/v1/repositories/{workspace}/{repo-slug}/commits/{revision}
GET
Comparetwocommits — Atlassian Compare Two Commits
/v1/repositories/{workspace}/{repo-slug}/diff/{spec}
GET
Comparetwocommitdiffstats — Atlassian Compare Two Commit Diff Stats
/v1/repositories/{workspace}/{repo-slug}/diffstat/{spec}
GET
Listcommitsthatmodifiedfile — Atlassian List Commits That Modified File
/v1/repositories/{workspace}/{repo-slug}/filehistory/{commit}/{path}
GET
Getthecommonancestorbetweentwocommits — Atlassian Get the Common Ancestor Between Two Commits
/v1/repositories/{workspace}/{repo-slug}/merge-base/{revspec}
GET
Getpatchfortwocommits — Atlassian Get Patch for Two Commits
/v1/repositories/{workspace}/{repo-slug}/patch/{spec}
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
POST
Createcommitbyuploadingfile — Atlassian Create Commit by Uploading File
/v1/repositories/{workspace}/{repo-slug}/src

MCP Tools

atlassian-get-commit

Atlassian Get Commit

read-only idempotent
atlassian-unapprove-commit

Atlassian Unapprove Commit

idempotent
atlassian-approve-commit

Atlassian Approve Commit

atlassian-list-commits-comments

Atlassian List Commits Comments

read-only idempotent
atlassian-create-comment-commit

Atlassian Create Comment for Commit

atlassian-delete-commit-comment

Atlassian Delete Commit Comment

idempotent
atlassian-get-commit-comment

Atlassian Get Commit Comment

read-only idempotent
atlassian-update-commit-comment

Atlassian Update Commit Comment

idempotent
atlassian-update-commit-application-property

Atlassian Update Commit Application Property

idempotent
atlassian-delete-commit-application-property

Atlassian Delete Commit Application Property

idempotent
atlassian-get-commit-application-property

Atlassian Get Commit Application Property

read-only idempotent
atlassian-list-pull-requests-that

Atlassian List Pull Requests That Contain Commit

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

Atlassian List Commit Statuses for Commit

read-only idempotent
atlassian-create-build-status-commit

Atlassian Create Build Status for Commit

atlassian-get-build-status-commit

Atlassian Get Build Status for Commit

read-only idempotent
atlassian-update-build-status-commit

Atlassian Update Build Status for Commit

idempotent
atlassian-list-commits

Atlassian List Commits

read-only idempotent
atlassian-list-commits-include-exclude

Atlassian List Commits With Include/exclude

read-only
atlassian-list-commits-revision

Atlassian List Commits for Revision

read-only idempotent
atlassian-list-commits-revision-using

Atlassian List Commits for Revision Using Include/exclude

read-only
atlassian-compare-two-commits

Atlassian Compare Two Commits

read-only idempotent
atlassian-compare-two-commit-diff

Atlassian Compare Two Commit Diff Stats

read-only idempotent
atlassian-list-commits-that-modified

Atlassian List Commits That Modified File

read-only idempotent
atlassian-get-common-ancestor-between

Atlassian Get the Common Ancestor Between Two Commits

read-only idempotent
atlassian-get-patch-two-commits

Atlassian Get Patch for Two Commits

read-only idempotent
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
atlassian-create-commit-uploading-file

Atlassian Create Commit by Uploading File

Capability Spec

bitbucket-repositories-commits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Commits
  description: 'Atlassian Bit Bucket Repositories API — Commits. 28 operations. Lead operation: Atlassian Get Commit. 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-repositories-commits
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Commits business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-commit-commit
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}
      operations:
      - name: getcommit
        method: GET
        description: Atlassian Get Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commit-commit-approve
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/approve
      operations:
      - name: unapprovecommit
        method: DELETE
        description: Atlassian Unapprove Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: approvecommit
        method: POST
        description: Atlassian Approve Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commit-commit-comments
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments
      operations:
      - name: listcommitscomments
        method: GET
        description: Atlassian List Commits Comments
        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: createcommentforcommit
        method: POST
        description: Atlassian Create Comment for Commit
        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-commit-commit-comments-comment_id
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments/{comment_id}
      operations:
      - name: deletecommitcomment
        method: DELETE
        description: Atlassian Delete Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getcommitcomment
        method: GET
        description: Atlassian Get Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecommitcomment
        method: PUT
        description: Atlassian Update Commit Comment
        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-commit-commit-properties-app_key-property_name
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}
      operations:
      - name: updatecommitapplicationproperty
        method: PUT
        description: Atlassian Update Commit Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletecommitapplicationproperty
        method: DELETE
        description: Atlassian Delete Commit Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
      - name: getcommitapplicationproperty
        method: GET
        description: Atlassian Get Commit Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-pullrequests
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/pullrequests
      operations:
      - name: listpullrequeststhatcontaincommit
        method: GET
        description: Atlassian List Pull Requests That Contain Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository; either the UUID in curly braces, or the slug
          required: true
        - name: commit
          in: path
          type: string
          description: The SHA1 of the commit
          required: true
        - name: page
          in: query
          type: integer
          description: Which page to retrieve
        - name: pagelen
          in: query
          type: integer
          description: How many pull requests to retrieve per page
    - name: repositories-workspace-repo_slug-commit-commit-statuses
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses
      operations:
      - name: listcommitstatusesforcommit
        method: GET
        description: Atlassian List Commit Statuses for Commit
        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-commit-commit-statuses-build
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build
      operations:
      - name: createbuildstatusforcommit
        method: POST
        description: Atlassian Create Build Status for Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-commit-commit-statuses-build-key
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build/{key}
      operations:
      - name: getbuildstatusforcommit
        method: GET
        description: Atlassian Get Build Status for Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatebuildstatusforcommit
        method: PUT
        description: Atlassian Update Build Status for Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-commits
      path: /repositories/{workspace}/{repo_slug}/commits
      operations:
      - name: listcommits
        method: GET
        description: Atlassian List Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: listcommitswithincludeexclude
        method: POST
        description: Atlassian List Commits With Include/exclude
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commits-revision
      path: /repositories/{workspace}/{repo_slug}/commits/{revision}
      operations:
      - name: listcommitsforrevision
        method: GET
        description: Atlassian List Commits for Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: listcommitsforrevisionusingincludeexclude
        method: POST
        description: Atlassian List Commits for Revision Using Include/exclude
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-diff-spec
      path: /repositories/{workspace}/{repo_slug}/diff/{spec}
      operations:
      - name: comparetwocommits
        method: GET
        description: Atlassian Compare Two Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: context
          in: query
          type: integer
          description: Generate diffs with <n> lines of context instead of the usual three.
        - name: path
          in: query
          type: string
          description: Limit the diff to a particular file (this parameter
        - name: ignore_whitespace
          in: query
          type: boolean
          description: Generate diffs that ignore whitespace.
        - name: binary
          in: query
          type: boolean
          description: Generate diffs that include binary files, true if omitted.
        - name: renames
          in: query
          type: boolean
          description: Whether to perform rename detection, true if omitted.
        - name: merge
          in: query
          type: boolean
          description: This parameter is deprecated. The 'topic' parameter should be used
        - name: topic
          in: query
          type: boolean
          description: If true, returns 2-way 'three-dot' diff.
    - name: repositories-workspace-repo_slug-diffstat-spec
      path: /repositories/{workspace}/{repo_slug}/diffstat/{spec}
      operations:
      - name: comparetwocommitdiffstats
        method: GET
        description: Atlassian Compare Two Commit Diff Stats
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-filehistory-commit-path
      path: /repositories/{workspace}/{repo_slug}/filehistory/{commit}/{path}
      operations:
      - name: listcommitsthatmodifiedfile
        method: GET
        description: Atlassian List Commits That Modified File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: renames
          in: query
          type: string
          description: When `true`, Bitbucket will follow the history of the file across
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Name of a response property sort the result by as per
    - name: repositories-workspace-repo_slug-merge-base-revspec
      path: /repositories/{workspace}/{repo_slug}/merge-base/{revspec}
      operations:
      - name: getthecommonancestorbetweentwocommits
        method: GET
        description: Atlassian Get the Common Ancestor Between Two Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-patch-spec
      path: /repositories/{workspace}/{repo_slug}/patch/{spec}
      operations:
      - name: getpatchfortwocommits
        method: GET
        description: Atlassian Get Patch for Two Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - 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
    - name: repositories-workspace-repo_slug-src
      path: /repositories/{workspace}/{repo_slug}/src
      operations:
      - name: createcommitbyuploadingfile
        method: POST
        description: Atlassian Create Commit by Uploading File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: message
          in: query
          type: string
          description: The commit message. When omitted, Bitbucket uses a canned string.
        - name: author
          in: query
          type: string
          description: The raw string to be used as the new Commits author.
        - name: parents
          in: query
          type: string
          description: A comma-separated list of SHA1s of the commits that should
        - name: files
          in: query
          type: string
          description: Optional field that declares the files that the request is
        - name: branch
          in: query
          type: string
          description: The name of the branch that the new commit should be
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-commits-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Commits. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}
      name: repositories-workspace-repo-slug-commit-commit
      description: REST surface for repositories-workspace-repo_slug-commit-commit.
      operations:
      - method: GET
        name: getcommit
        description: Atlassian Get Commit
        call: bitbucket-repositories-commits.getcommit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/approve
      name: repositories-workspace-repo-slug-commit-commit-approve
      description: REST surface for repositories-workspace-repo_slug-commit-commit-approve.
      operations:
      - method: DELETE
        name: unapprovecommit
        description: Atlassian Unapprove Commit
        call: bitbucket-repositories-commits.unapprovecommit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: approvecommit
        description: Atlassian Approve Commit
        call: bitbucket-repositories-commits.approvecommit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
      name: repositories-workspace-repo-slug-commit-commit-comments
      description: REST surface for repositories-workspace-repo_slug-commit-commit-comments.
      operations:
      - method: GET
        name: listcommitscomments
        description: Atlassian List Commits Comments
        call: bitbucket-repositories-commits.listcommitscomments
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcommentforcommit
        description: Atlassian Create Comment for Commit
        call: bitbucket-repositories-commits.createcommentforcommit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
      name: repositories-workspace-repo-slug-commit-commit-comments-comment-id
      description: REST surface for repositories-workspace-repo_slug-commit-commit-comments-comment_id.
      operations:
      - method: DELETE
        name: deletecommitcomment
        description: Atlassian Delete Commit Comment
        call: bitbucket-repositories-commits.deletecommitcomment
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcommitcomment
        description: Atlassian Get Commit Comment
        call: bitbucket-repositories-commits.getcommitcomment
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecommitcomment
        description: Atlassian Update Commit Comment
        call: bitbucket-repositories-commits.updatecommitcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
      name: repositories-workspace-repo-slug-commit-commit-properties-app-key-property-name
      description: REST surface for repositories-workspace-repo_slug-commit-commit-properties-app_key-property_name.
      operations:
      - method: PUT
        name: updatecommitapplicationproperty
        description: Atlassian Update Commit Application Property
        call: bitbucket-repositories-commits.updatecommitapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          app_key: rest.app_key
          property_name: rest.property_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecommitapplicationproperty
        description: Atlassian Delete Commit Application Property
        call: bitbucket-repositories-commits.deletecommitapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          app_key: rest.app_key
          property_name: rest.property_name
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcommitapplicationproperty
        description: Atlassian Get Commit Application Property
        call: bitbucket-repositories-commits.getcommitapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          app_key: rest.app_key
          property_name: rest.property_name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests
      name: repositories-workspace-repo-slug-commit-commit-pullrequests
      description: REST surface for repositories-workspace-repo_slug-commit-commit-pullrequests.
      operations:
      - method: GET
        name: listpullrequeststhatcontaincommit
        description: Atlassian List Pull Requests That Contain Commit
        call: bitbucket-repositories-commits.listpullrequeststhatcontaincommit
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          page: rest.page
          pagelen: rest.pagelen
        outputParameters:
        - type: object
          mapping: $.
    - 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: listcommitstatusesforcommit
        description: Atlassian List Commit Statuses for Commit
        call: bitbucket-repositories-commits.listcommitstatusesforcommit
        with:
          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: createbuildstatusforcommit
        description: Atlassian Create Build Status for Commit
        call: bitbucket-repositories-commits.createbuildstatusforcommit
        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: getbuildstatusforcommit
        description: Atlassian Get Build Status for Commit
        call: bitbucket-repositories-commits.getbuildstatusforcommit
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebuildstatusforcommit
        description: Atlassian Update Build Status for Commit
        call: bitbucket-repositories-commits.updatebuildstatusforcommit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commits
      name: repositories-workspace-repo-slug-commits
      description: REST surface for repositories-workspace-repo_slug-commits.
      operations:
      - method: GET
        name: listcommits
        description: Atlassian List Commits
        call: bitbucket-repositories-commits.listcommits
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: listcommitswithincludeexclude
        description: Atlassian List Commits With Include/exclude
        call: bitbucket-repositories-commits.listcommitswithincludeexclude
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commits/{revision}
      name: repositories-workspace-repo-slug-commits-revision
      description: REST surface for repositories-workspace-repo_slug-commits-revision.
      operations:
      - method: GET
        name: listcommitsforrevision
        description: Atlassian List Commits for Revision
        call: bitbucket-repositories-commits.listcommitsforrevision
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: listcommitsforrevisionusingincludeexclude
        description: Atlassian List Commits for Revision Using Include/exclude
        call: bitbucket-repositories-commits.listcommitsforrevisionusingincludeexclude
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/diff/{spec}
      name: repositories-workspace-repo-slug-diff-spec
      description: REST surface for repositories-workspace-repo_slug-diff-spec.
      operations:
      - method: GET
        name: comparetwocommits
        description: Atlassian Compare Two Commits
        call: bitbucket-repositories-commits.comparetwocommits
        with:
          context: rest.context
          path: rest.path
          ignore_whitespace: rest.ignore_whitespace
          binary: rest.binary
          renames: rest.renames
          merge: rest.merge
          topic: rest.topic
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/diffstat/{spec}
      name: repositories-workspace-repo-slug-diffstat-spec
      description: REST surface for repositories-workspace-repo_slug-diffstat-spec.
      operations:
      - method: GET
        name: comparetwocommitdiffstats
        description: Atlassian Compare Two Commit Diff Stats
        call: bitbucket-repositories-commits.comparetwocommitdiffstats
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/filehistory/{commit}/{path}
      name: repositories-workspace-repo-slug-filehistory-commit-path
      description: REST surface for repositories-workspace-repo_slug-filehistory-commit-path.
      operations:
      - method: GET
        name: listcommitsthatmodifiedfile
        description: Atlassian List Commits That Modified File
        call: bitbucket-repositories-commits.listcommitsthatmodifiedfile
        with:
          renames: rest.renames
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/merge-base/{revspec}
      name: repositories-workspace-repo-slug-merge-base-revspec
      description: REST surface for repositories-workspace-repo_slug-merge-base-revspec.
      operations:
      - method: GET
        name: getthecommonancestorbetweentwocommits
        description: Atlassian Get the Common Ancestor Between Two Commits
        call: bitbucket-repositories-commits.getthecommonancestorbetweentwocommits
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/patch/{spec}
      name: repositories-workspace-repo-slug-patch-spec
      description: REST surface for repositories-workspace-repo_slug-patch-spec.
      operations:
      - method: GET
        name: getpatchfortwocommits
        description: Atlassian Get Patch for Two Commits
        call: bitbucket-repositories-commits.getpatchfortwocommits
        outputParameters:
        - type: object
          mapping: $.
    - 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-repositories-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-repositories-commits.listcommitstatusesforpullrequest
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/src
      name: repositories-workspace-repo-slug-src
      description: REST surface for repositories-workspace-repo_slug-src.
      operations:
      - method: POST
        name: createcommitbyuploadingfile
        description: Atlassian Create Commit by Uploading File
        call: bitbucket-repositories-commits.createcommitbyuploadingfile
        with:
          message: rest.message
          author: rest.author
          parents: rest.parents
          files: rest.files
          branch: rest.branch
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-commits-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Commits. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-get-commit
      description: Atlassian Get Commit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-commits.getcommit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-unapprove-commit
      description: Atlassian Unapprove Commit
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-commits.unapprovecommit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-approve-commit
      description: Atlassian Approve Commit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-commits.approvecommit
      outputParameters:
      - type: object
    

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/capabilities/bitbucket-repositories-commits.yaml