Atlassian · Capability

Atlassian Bit Bucket Repositories API — Variables

Atlassian Bit Bucket Repositories API — Variables. 9 operations. Lead operation: Atlassian List Variables for an Environment. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianVariables

What You Can Do

GET
Listvariablesforanenvironment — Atlassian List Variables for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
POST
Createvariableforanenvironment — Atlassian Create Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
PUT
Updatevariableforanenvironment — Atlassian Update Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
DELETE
Deletevariableforanenvironment — Atlassian Delete Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
GET
Listvariablesforrepository — Atlassian List Variables for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
POST
Createvariableforrepository — Atlassian Create Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
GET
Getvariableforrepository — Atlassian Get Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
PUT
Updatevariableforrepository — Atlassian Update Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
DELETE
Deletevariableforrepository — Atlassian Delete Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}

MCP Tools

atlassian-list-variables-environment

Atlassian List Variables for an Environment

read-only idempotent
atlassian-create-variable-environment

Atlassian Create Variable for an Environment

atlassian-update-variable-environment

Atlassian Update Variable for an Environment

idempotent
atlassian-delete-variable-environment

Atlassian Delete Variable for an Environment

idempotent
atlassian-list-variables-repository

Atlassian List Variables for Repository

read-only idempotent
atlassian-create-variable-repository

Atlassian Create Variable for Repository

atlassian-get-variable-repository

Atlassian Get Variable for Repository

read-only idempotent
atlassian-update-variable-repository

Atlassian Update Variable for Repository

idempotent
atlassian-delete-variable-repository

Atlassian Delete Variable for Repository

idempotent

Capability Spec

bitbucket-repositories-variables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Variables
  description: 'Atlassian Bit Bucket Repositories API — Variables. 9 operations. Lead operation: Atlassian List Variables
    for an Environment. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Variables
  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-variables
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Variables business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
      path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables
      operations:
      - name: listvariablesforanenvironment
        method: GET
        description: Atlassian List Variables for an Environment
        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: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
      - name: createvariableforanenvironment
        method: POST
        description: Atlassian Create Variable for an Environment
        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: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
      path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
      operations:
      - name: updatevariableforanenvironment
        method: PUT
        description: Atlassian Update Variable for an Environment
        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: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletevariableforanenvironment
        method: DELETE
        description: Atlassian Delete Variable for an Environment
        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: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to delete.
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-variables
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables
      operations:
      - name: listvariablesforrepository
        method: GET
        description: Atlassian List Variables for Repository
        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: createvariableforrepository
        method: POST
        description: Atlassian Create Variable for Repository
        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
    - name: repositories-workspace-repo_slug-pipelines_config-variables-variable_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid}
      operations:
      - name: getvariableforrepository
        method: GET
        description: Atlassian Get Variable for Repository
        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: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to retrieve.
          required: true
      - name: updatevariableforrepository
        method: PUT
        description: Atlassian Update Variable for Repository
        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: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletevariableforrepository
        method: DELETE
        description: Atlassian Delete Variable for Repository
        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: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to delete.
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-variables-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Variables. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
      name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
      description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
      operations:
      - method: GET
        name: listvariablesforanenvironment
        description: Atlassian List Variables for an Environment
        call: bitbucket-repositories-variables.listvariablesforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createvariableforanenvironment
        description: Atlassian Create Variable for an Environment
        call: bitbucket-repositories-variables.createvariableforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
      name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
      description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
      operations:
      - method: PUT
        name: updatevariableforanenvironment
        description: Atlassian Update Variable for an Environment
        call: bitbucket-repositories-variables.updatevariableforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
          variable_uuid: rest.variable_uuid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletevariableforanenvironment
        description: Atlassian Delete Variable for an Environment
        call: bitbucket-repositories-variables.deletevariableforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
          variable_uuid: rest.variable_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
      name: repositories-workspace-repo-slug-pipelines-config-variables
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-variables.
      operations:
      - method: GET
        name: listvariablesforrepository
        description: Atlassian List Variables for Repository
        call: bitbucket-repositories-variables.listvariablesforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createvariableforrepository
        description: Atlassian Create Variable for Repository
        call: bitbucket-repositories-variables.createvariableforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
      name: repositories-workspace-repo-slug-pipelines-config-variables-variable-uuid
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-variables-variable_uuid.
      operations:
      - method: GET
        name: getvariableforrepository
        description: Atlassian Get Variable for Repository
        call: bitbucket-repositories-variables.getvariableforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          variable_uuid: rest.variable_uuid
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatevariableforrepository
        description: Atlassian Update Variable for Repository
        call: bitbucket-repositories-variables.updatevariableforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          variable_uuid: rest.variable_uuid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletevariableforrepository
        description: Atlassian Delete Variable for Repository
        call: bitbucket-repositories-variables.deletevariableforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          variable_uuid: rest.variable_uuid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-variables-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Variables. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-list-variables-environment
      description: Atlassian List Variables for an Environment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-variables.listvariablesforanenvironment
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-variable-environment
      description: Atlassian Create Variable for an Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-variables.createvariableforanenvironment
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-variable-environment
      description: Atlassian Update Variable for an Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-variables.updatevariableforanenvironment
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
        variable_uuid: tools.variable_uuid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-variable-environment
      description: Atlassian Delete Variable for an Environment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-variables.deletevariableforanenvironment
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
        variable_uuid: tools.variable_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-variables-repository
      description: Atlassian List Variables for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-variables.listvariablesforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-variable-repository
      description: Atlassian Create Variable for Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-variables.createvariableforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-variable-repository
      description: Atlassian Get Variable for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-variables.getvariableforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        variable_uuid: tools.variable_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-variable-repository
      description: Atlassian Update Variable for Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-variables.updatevariableforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        variable_uuid: tools.variable_uuid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-variable-repository
      description: Atlassian Delete Variable for Repository
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-repositories-variables.deletevariableforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        variable_uuid: tools.variable_uuid
      outputParameters:
      - type: object
        mapping: $.