Atlassian · Capability

Atlassian Bit Bucket Repositories API — Number

Atlassian Bit Bucket Repositories API — Number. 1 operations. Lead operation: Atlassian Update the Next Build Number. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianNumber

What You Can Do

PUT
Updatethenextbuildnumber — Atlassian Update the Next Build Number
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/build-number

MCP Tools

atlassian-update-next-build-number

Atlassian Update the Next Build Number

idempotent

Capability Spec

bitbucket-repositories-number.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Number
  description: 'Atlassian Bit Bucket Repositories API — Number. 1 operations. Lead operation: Atlassian Update the Next Build
    Number. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Number
  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-number
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Number business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-pipelines_config-build_number
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/build_number
      operations:
      - name: updatethenextbuildnumber
        method: PUT
        description: Atlassian Update the Next Build Number
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-number-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Number. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/build-number
      name: repositories-workspace-repo-slug-pipelines-config-build-number
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-build_number.
      operations:
      - method: PUT
        name: updatethenextbuildnumber
        description: Atlassian Update the Next Build Number
        call: bitbucket-repositories-number.updatethenextbuildnumber
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-number-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Number. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-update-next-build-number
      description: Atlassian Update the Next Build Number
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-number.updatethenextbuildnumber
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.