Atlassian · Capability

Atlassian repositories/ — Commits

Atlassian repositories/ — Commits. 16 operations. Lead operation: Atlassian Get A Commit. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCommits

What You Can Do

GET
Atlassiangetacommit — Atlassian Get A Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}
DELETE
Atlassianunapproveacommit — Atlassian Unapprove A Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/approve
POST
Atlassianapproveacommit — Atlassian Approve A Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/approve
GET
Atlassianlistacommitscomments — Atlassian List A Commit S Comments
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
POST
Atlassiancreatecommentforacommit — Atlassian Create Comment For A Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
DELETE
Atlassiandeleteacommitcomment — Atlassian Delete A Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
GET
Atlassiangetacommitcomment — Atlassian Get A Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
PUT
Atlassianupdateacommitcomment — Atlassian Update A Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
GET
Atlassianlistcommits — Atlassian List Commits
/v1/repositories/{workspace}/{repo-slug}/commits
POST
Atlassianlistcommitswithincludeexclude — Atlassian List Commits With Include Exclude
/v1/repositories/{workspace}/{repo-slug}/commits
GET
Atlassianlistcommitsforrevision — Atlassian List Commits For Revision
/v1/repositories/{workspace}/{repo-slug}/commits/{revision}
POST
Atlassianlistcommitsforrevisionusingincludeexclude — Atlassian List Commits For Revision Using Include Exclude
/v1/repositories/{workspace}/{repo-slug}/commits/{revision}
GET
Atlassiancomparetwocommits — Atlassian Compare Two Commits
/v1/repositories/{workspace}/{repo-slug}/diff/{spec}
GET
Atlassiancomparetwocommitdiffstats — Atlassian Compare Two Commit Diff Stats
/v1/repositories/{workspace}/{repo-slug}/diffstat/{spec}
GET
Atlassiangetthecommonancestorbetweentwocommits — Atlassian Get The Common Ancestor Between Two Commits
/v1/repositories/{workspace}/{repo-slug}/merge-base/{revspec}
GET
Atlassiangetapatchfortwocommits — Atlassian Get A Patch For Two Commits
/v1/repositories/{workspace}/{repo-slug}/patch/{spec}

MCP Tools

atlassian-get-commit

Atlassian Get A Commit

read-only idempotent
atlassian-unapprove-commit

Atlassian Unapprove A Commit

idempotent
atlassian-approve-commit

Atlassian Approve A Commit

atlassian-list-commit-s-comments

Atlassian List A Commit S Comments

read-only idempotent
atlassian-create-comment-commit

Atlassian Create Comment For A Commit

atlassian-delete-commit-comment

Atlassian Delete A Commit Comment

idempotent
atlassian-get-commit-comment

Atlassian Get A Commit Comment

read-only idempotent
atlassian-update-commit-comment

Atlassian Update A Commit Comment

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-get-common-ancestor-between

Atlassian Get The Common Ancestor Between Two Commits

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

Atlassian Get A Patch For Two Commits

read-only idempotent

Capability Spec

repositories--commits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian repositories/ — Commits
  description: 'Atlassian repositories/ — Commits. 16 operations. Lead operation: Atlassian Get A 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: repositories--commits
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian repositories/ — 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: atlassiangetacommit
        method: GET
        description: Atlassian Get A 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: atlassianunapproveacommit
        method: DELETE
        description: Atlassian Unapprove A Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianapproveacommit
        method: POST
        description: Atlassian Approve A 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: atlassianlistacommitscomments
        method: GET
        description: Atlassian List A Commit S 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: atlassiancreatecommentforacommit
        method: POST
        description: Atlassian Create Comment For A 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: atlassiandeleteacommitcomment
        method: DELETE
        description: Atlassian Delete A Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetacommitcomment
        method: GET
        description: Atlassian Get A Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianupdateacommitcomment
        method: PUT
        description: Atlassian Update A 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-commits
      path: /repositories/{workspace}/{repo_slug}/commits
      operations:
      - name: atlassianlistcommits
        method: GET
        description: Atlassian List Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianlistcommitswithincludeexclude
        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: atlassianlistcommitsforrevision
        method: GET
        description: Atlassian List Commits For Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianlistcommitsforrevisionusingincludeexclude
        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: atlassiancomparetwocommits
        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: atlassiancomparetwocommitdiffstats
        method: GET
        description: Atlassian Compare Two Commit Diff Stats
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-merge-base-revspec
      path: /repositories/{workspace}/{repo_slug}/merge-base/{revspec}
      operations:
      - name: atlassiangetthecommonancestorbetweentwocommits
        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: atlassiangetapatchfortwocommits
        method: GET
        description: Atlassian Get A Patch For Two Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: repositories--commits-rest
    port: 8080
    description: REST adapter for Atlassian repositories/ — 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: atlassiangetacommit
        description: Atlassian Get A Commit
        call: repositories--commits.atlassiangetacommit
        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: atlassianunapproveacommit
        description: Atlassian Unapprove A Commit
        call: repositories--commits.atlassianunapproveacommit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassianapproveacommit
        description: Atlassian Approve A Commit
        call: repositories--commits.atlassianapproveacommit
        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: atlassianlistacommitscomments
        description: Atlassian List A Commit S Comments
        call: repositories--commits.atlassianlistacommitscomments
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreatecommentforacommit
        description: Atlassian Create Comment For A Commit
        call: repositories--commits.atlassiancreatecommentforacommit
        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: atlassiandeleteacommitcomment
        description: Atlassian Delete A Commit Comment
        call: repositories--commits.atlassiandeleteacommitcomment
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetacommitcomment
        description: Atlassian Get A Commit Comment
        call: repositories--commits.atlassiangetacommitcomment
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: atlassianupdateacommitcomment
        description: Atlassian Update A Commit Comment
        call: repositories--commits.atlassianupdateacommitcomment
        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: atlassianlistcommits
        description: Atlassian List Commits
        call: repositories--commits.atlassianlistcommits
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassianlistcommitswithincludeexclude
        description: Atlassian List Commits With Include Exclude
        call: repositories--commits.atlassianlistcommitswithincludeexclude
        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: atlassianlistcommitsforrevision
        description: Atlassian List Commits For Revision
        call: repositories--commits.atlassianlistcommitsforrevision
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassianlistcommitsforrevisionusingincludeexclude
        description: Atlassian List Commits For Revision Using Include Exclude
        call: repositories--commits.atlassianlistcommitsforrevisionusingincludeexclude
        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: atlassiancomparetwocommits
        description: Atlassian Compare Two Commits
        call: repositories--commits.atlassiancomparetwocommits
        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: atlassiancomparetwocommitdiffstats
        description: Atlassian Compare Two Commit Diff Stats
        call: repositories--commits.atlassiancomparetwocommitdiffstats
        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: atlassiangetthecommonancestorbetweentwocommits
        description: Atlassian Get The Common Ancestor Between Two Commits
        call: repositories--commits.atlassiangetthecommonancestorbetweentwocommits
        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: atlassiangetapatchfortwocommits
        description: Atlassian Get A Patch For Two Commits
        call: repositories--commits.atlassiangetapatchfortwocommits
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repositories--commits-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian repositories/ — Commits. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-get-commit
      description: Atlassian Get A Commit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiangetacommit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-unapprove-commit
      description: Atlassian Unapprove A Commit
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repositories--commits.atlassianunapproveacommit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-approve-commit
      description: Atlassian Approve A Commit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repositories--commits.atlassianapproveacommit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commit-s-comments
      description: Atlassian List A Commit S Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassianlistacommitscomments
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-comment-commit
      description: Atlassian Create Comment For A Commit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repositories--commits.atlassiancreatecommentforacommit
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-commit-comment
      description: Atlassian Delete A Commit Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repositories--commits.atlassiandeleteacommitcomment
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-commit-comment
      description: Atlassian Get A Commit Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiangetacommitcomment
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-commit-comment
      description: Atlassian Update A Commit Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repositories--commits.atlassianupdateacommitcomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commits
      description: Atlassian List Commits
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassianlistcommits
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commits-include-exclude
      description: Atlassian List Commits With Include Exclude
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: repositories--commits.atlassianlistcommitswithincludeexclude
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commits-revision
      description: Atlassian List Commits For Revision
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassianlistcommitsforrevision
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-commits-revision-using
      description: Atlassian List Commits For Revision Using Include Exclude
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: repositories--commits.atlassianlistcommitsforrevisionusingincludeexclude
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-compare-two-commits
      description: Atlassian Compare Two Commits
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiancomparetwocommits
      with:
        context: tools.context
        path: tools.path
        ignore_whitespace: tools.ignore_whitespace
        binary: tools.binary
        renames: tools.renames
        merge: tools.merge
        topic: tools.topic
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-compare-two-commit-diff
      description: Atlassian Compare Two Commit Diff Stats
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiancomparetwocommitdiffstats
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-common-ancestor-between
      description: Atlassian Get The Common Ancestor Between Two Commits
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiangetthecommonancestorbetweentwocommits
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-patch-two-commits
      description: Atlassian Get A Patch For Two Commits
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repositories--commits.atlassiangetapatchfortwocommits
      outputParameters:
      - type: object
        mapping: $.