Atlassian · Capability

Atlassian Bit Bucket Pull Requests API — Comments

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

Run with Naftiko AtlassianComments

What You Can Do

GET
Listcommentsonpullrequest — Atlassian List Comments on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
POST
Createcommentonpullrequest — Atlassian Create Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
DELETE
Deletecommentonpullrequest — Atlassian Delete Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
GET
Getcommentonpullrequest — Atlassian Get Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
PUT
Updatecommentonpullrequest — Atlassian Update Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
DELETE
Reopencommentthread — Atlassian Reopen Comment Thread
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}/resolve
POST
Resolvecommentthread — Atlassian Resolve Comment Thread
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}/resolve

MCP Tools

atlassian-list-comments-pull-request

Atlassian List Comments on Pull Request

read-only idempotent
atlassian-create-comment-pull-request

Atlassian Create Comment on Pull Request

atlassian-delete-comment-pull-request

Atlassian Delete Comment on Pull Request

idempotent
atlassian-get-comment-pull-request

Atlassian Get Comment on Pull Request

read-only idempotent
atlassian-update-comment-pull-request

Atlassian Update Comment on Pull Request

idempotent
atlassian-reopen-comment-thread

Atlassian Reopen Comment Thread

idempotent
atlassian-resolve-comment-thread

Atlassian Resolve Comment Thread

Capability Spec

bitbucket-pull-requests-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Pull Requests API — Comments
  description: 'Atlassian Bit Bucket Pull Requests API — Comments. 7 operations. Lead operation: Atlassian List Comments on
    Pull Request. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Comments
  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-comments
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Pull Requests API — Comments business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments
      operations:
      - name: listcommentsonpullrequest
        method: GET
        description: Atlassian List Comments on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcommentonpullrequest
        method: POST
        description: Atlassian Create Comment on Pull Request
        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-pullrequests-pull_request_id-comments-comment_i
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
      operations:
      - name: deletecommentonpullrequest
        method: DELETE
        description: Atlassian Delete Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getcommentonpullrequest
        method: GET
        description: Atlassian Get Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecommentonpullrequest
        method: PUT
        description: Atlassian Update Comment on Pull Request
        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-pullrequests-pull_request_id-comments-comment_i
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}/resolve
      operations:
      - name: reopencommentthread
        method: DELETE
        description: Atlassian Reopen Comment Thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: resolvecommentthread
        method: POST
        description: Atlassian Resolve Comment Thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-pull-requests-comments-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Pull Requests API — Comments. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments.
      operations:
      - method: GET
        name: listcommentsonpullrequest
        description: Atlassian List Comments on Pull Request
        call: bitbucket-pull-requests-comments.listcommentsonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcommentonpullrequest
        description: Atlassian Create Comment on Pull Request
        call: bitbucket-pull-requests-comments.createcommentonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-comment-i
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i.
      operations:
      - method: DELETE
        name: deletecommentonpullrequest
        description: Atlassian Delete Comment on Pull Request
        call: bitbucket-pull-requests-comments.deletecommentonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcommentonpullrequest
        description: Atlassian Get Comment on Pull Request
        call: bitbucket-pull-requests-comments.getcommentonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecommentonpullrequest
        description: Atlassian Update Comment on Pull Request
        call: bitbucket-pull-requests-comments.updatecommentonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}/resolve
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-comment-i
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i.
      operations:
      - method: DELETE
        name: reopencommentthread
        description: Atlassian Reopen Comment Thread
        call: bitbucket-pull-requests-comments.reopencommentthread
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: resolvecommentthread
        description: Atlassian Resolve Comment Thread
        call: bitbucket-pull-requests-comments.resolvecommentthread
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-pull-requests-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Pull Requests API — Comments. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-list-comments-pull-request
      description: Atlassian List Comments on Pull Request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pull-requests-comments.listcommentsonpullrequest
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-comment-pull-request
      description: Atlassian Create Comment on Pull Request
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-pull-requests-comments.createcommentonpullrequest
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-comment-pull-request
      description: Atlassian Delete Comment on Pull Request
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-pull-requests-comments.deletecommentonpullrequest
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-comment-pull-request
      description: Atlassian Get Comment on Pull Request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pull-requests-comments.getcommentonpullrequest
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-comment-pull-request
      description: Atlassian Update Comment on Pull Request
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-pull-requests-comments.updatecommentonpullrequest
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-reopen-comment-thread
      description: Atlassian Reopen Comment Thread
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-pull-requests-comments.reopencommentthread
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-resolve-comment-thread
      description: Atlassian Resolve Comment Thread
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-pull-requests-comments.resolvecommentthread
      outputParameters:
      - type: object
        mapping: $.