Atlassian · Capability

Atlassian Bit Bucket Snippets API — Create

Atlassian Bit Bucket Snippets API — Create. 2 operations. Lead operation: Atlassian Create Snippet for Workspace. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCreate

What You Can Do

POST
Createsnippetforworkspace — Atlassian Create Snippet for Workspace
/v1/snippets/{workspace}
POST
Createcommentonsnippet — Atlassian Create Comment on Snippet
/v1/snippets/{workspace}/{encoded-id}/comments

MCP Tools

atlassian-create-snippet-workspace

Atlassian Create Snippet for Workspace

atlassian-create-comment-snippet

Atlassian Create Comment on Snippet

Capability Spec

bitbucket-snippets-create.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Snippets API — Create
  description: 'Atlassian Bit Bucket Snippets API — Create. 2 operations. Lead operation: Atlassian Create Snippet for Workspace.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Create
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-snippets-create
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Snippets API — Create business capability. Self-contained, no shared references.
    resources:
    - name: snippets-workspace
      path: /snippets/{workspace}
      operations:
      - name: createsnippetforworkspace
        method: POST
        description: Atlassian Create Snippet for Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: snippets-workspace-encoded_id-comments
      path: /snippets/{workspace}/{encoded_id}/comments
      operations:
      - name: createcommentonsnippet
        method: POST
        description: Atlassian Create Comment on Snippet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: bitbucket-snippets-create-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Snippets API — Create. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/snippets/{workspace}
      name: snippets-workspace
      description: REST surface for snippets-workspace.
      operations:
      - method: POST
        name: createsnippetforworkspace
        description: Atlassian Create Snippet for Workspace
        call: bitbucket-snippets-create.createsnippetforworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/snippets/{workspace}/{encoded-id}/comments
      name: snippets-workspace-encoded-id-comments
      description: REST surface for snippets-workspace-encoded_id-comments.
      operations:
      - method: POST
        name: createcommentonsnippet
        description: Atlassian Create Comment on Snippet
        call: bitbucket-snippets-create.createcommentonsnippet
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-snippets-create-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Snippets API — Create. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-create-snippet-workspace
      description: Atlassian Create Snippet for Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-snippets-create.createsnippetforworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-comment-snippet
      description: Atlassian Create Comment on Snippet
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-snippets-create.createcommentonsnippet
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.