Atlassian · Capability

Atlassian Bit Bucket Repositories API — Threads

Atlassian Bit Bucket Repositories API — Threads. 2 operations. Lead operation: Atlassian Reopen Comment Thread. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianThreads

What You Can Do

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-reopen-comment-thread

Atlassian Reopen Comment Thread

idempotent
atlassian-resolve-comment-thread

Atlassian Resolve Comment Thread

Capability Spec

bitbucket-repositories-threads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Threads
  description: 'Atlassian Bit Bucket Repositories API — Threads. 2 operations. Lead operation: Atlassian Reopen Comment Thread.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Threads
  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-threads
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Threads business capability. Self-contained, no shared references.
    resources:
    - 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-repositories-threads-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Threads. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - 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-repositories-threads.reopencommentthread
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: resolvecommentthread
        description: Atlassian Resolve Comment Thread
        call: bitbucket-repositories-threads.resolvecommentthread
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-threads-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Threads. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-reopen-comment-thread
      description: Atlassian Reopen Comment Thread
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-threads.reopencommentthread
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-resolve-comment-thread
      description: Atlassian Resolve Comment Thread
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-threads.resolvecommentthread
      outputParameters:
      - type: object
        mapping: $.