Atlassian · Capability

Atlassian Bitbucket API — Deployments

Atlassian Bitbucket API — Deployments. 16 operations. Lead operation: Atlassian List Repository Deploy Keys. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianDeployments

What You Can Do

GET
Atlassianlistrepositorydeploykeys — Atlassian List Repository Deploy Keys
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
POST
Atlassianaddarepositorydeploykey — Atlassian Add A Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
DELETE
Atlassiandeletearepositorydeploykey — Atlassian Delete A Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
GET
Atlassiangetarepositorydeploykey — Atlassian Get A Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
PUT
Atlassianupdatearepositorydeploykey — Atlassian Update A Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
GET
Atlassiangetdeploymentsforrepository — Atlassian List Deployments
/v1/repositories/{workspace}/{repo-slug}/deployments
GET
Atlassiangetdeploymentforrepository — Atlassian Get A Deployment
/v1/repositories/{workspace}/{repo-slug}/deployments/{deployment-uuid}
GET
Atlassiangetenvironmentsforrepository — Atlassian List Environments
/v1/repositories/{workspace}/{repo-slug}/environments
POST
Atlassiancreateenvironment — Atlassian Create An Environment
/v1/repositories/{workspace}/{repo-slug}/environments
GET
Atlassiangetenvironmentforrepository — Atlassian Get An Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
DELETE
Atlassiandeleteenvironmentforrepository — Atlassian Delete An Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
POST
Atlassianupdateenvironmentforrepository — Atlassian Update An Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
GET
Atlassianlistprojectdeploykeys — Atlassian List Project Deploy Keys
/v1/workspaces/{workspace}/projects/{project-key}/deploy-keys
POST
Atlassiancreateaprojectdeploykey — Atlassian Create A Project Deploy Key
/v1/workspaces/{workspace}/projects/{project-key}/deploy-keys
DELETE
Atlassiandeleteadeploykeyfromaproject — Atlassian Delete A Deploy Key From A Project
/v1/workspaces/{workspace}/projects/{project-key}/deploy-keys/{key-id}
GET
Atlassiangetaprojectdeploykey — Atlassian Get A Project Deploy Key
/v1/workspaces/{workspace}/projects/{project-key}/deploy-keys/{key-id}

MCP Tools

atlassian-list-repository-deploy-keys

Atlassian List Repository Deploy Keys

read-only idempotent
atlassian-add-repository-deploy-key

Atlassian Add A Repository Deploy Key

atlassian-delete-repository-deploy-key

Atlassian Delete A Repository Deploy Key

idempotent
atlassian-get-repository-deploy-key

Atlassian Get A Repository Deploy Key

read-only idempotent
atlassian-update-repository-deploy-key

Atlassian Update A Repository Deploy Key

idempotent
atlassian-list-deployments

Atlassian List Deployments

read-only idempotent
atlassian-get-deployment

Atlassian Get A Deployment

read-only idempotent
atlassian-list-environments

Atlassian List Environments

read-only idempotent
atlassian-create-environment

Atlassian Create An Environment

atlassian-get-environment

Atlassian Get An Environment

read-only idempotent
atlassian-delete-environment

Atlassian Delete An Environment

idempotent
atlassian-update-environment

Atlassian Update An Environment

atlassian-list-project-deploy-keys

Atlassian List Project Deploy Keys

read-only idempotent
atlassian-create-project-deploy-key

Atlassian Create A Project Deploy Key

atlassian-delete-deploy-key-project

Atlassian Delete A Deploy Key From A Project

idempotent
atlassian-get-project-deploy-key

Atlassian Get A Project Deploy Key

read-only idempotent

Capability Spec

bitbucket-deployments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bitbucket API — Deployments
  description: 'Atlassian Bitbucket API — Deployments. 16 operations. Lead operation: Atlassian List Repository Deploy Keys.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Deployments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-deployments
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bitbucket API — Deployments business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-deploy-keys
      path: /repositories/{workspace}/{repo_slug}/deploy-keys
      operations:
      - name: atlassianlistrepositorydeploykeys
        method: GET
        description: Atlassian List Repository Deploy Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianaddarepositorydeploykey
        method: POST
        description: Atlassian Add A Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deploy-keys-key_id
      path: /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
      operations:
      - name: atlassiandeletearepositorydeploykey
        method: DELETE
        description: Atlassian Delete A Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetarepositorydeploykey
        method: GET
        description: Atlassian Get A Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassianupdatearepositorydeploykey
        method: PUT
        description: Atlassian Update A Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deployments
      path: /repositories/{workspace}/{repo_slug}/deployments
      operations:
      - name: atlassiangetdeploymentsforrepository
        method: GET
        description: Atlassian List Deployments
        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: repositories-workspace-repo_slug-deployments-deployment_uuid
      path: /repositories/{workspace}/{repo_slug}/deployments/{deployment_uuid}
      operations:
      - name: atlassiangetdeploymentforrepository
        method: GET
        description: Atlassian Get A Deployment
        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: deployment_uuid
          in: path
          type: string
          description: The deployment UUID.
          required: true
    - name: repositories-workspace-repo_slug-environments
      path: /repositories/{workspace}/{repo_slug}/environments
      operations:
      - name: atlassiangetenvironmentsforrepository
        method: GET
        description: Atlassian List Environments
        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: atlassiancreateenvironment
        method: POST
        description: Atlassian Create 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-environments-environment_uuid
      path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}
      operations:
      - name: atlassiangetenvironmentforrepository
        method: GET
        description: Atlassian Get 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 UUID.
          required: true
      - name: atlassiandeleteenvironmentforrepository
        method: DELETE
        description: Atlassian Delete 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 UUID.
          required: true
    - name: repositories-workspace-repo_slug-environments-environment_uuid-changes
      path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}/changes
      operations:
      - name: atlassianupdateenvironmentforrepository
        method: POST
        description: Atlassian Update 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 UUID.
          required: true
    - name: workspaces-workspace-projects-project_key-deploy-keys
      path: /workspaces/{workspace}/projects/{project_key}/deploy-keys
      operations:
      - name: atlassianlistprojectdeploykeys
        method: GET
        description: Atlassian List Project Deploy Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiancreateaprojectdeploykey
        method: POST
        description: Atlassian Create A Project Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspace-projects-project_key-deploy-keys-key_id
      path: /workspaces/{workspace}/projects/{project_key}/deploy-keys/{key_id}
      operations:
      - name: atlassiandeleteadeploykeyfromaproject
        method: DELETE
        description: Atlassian Delete A Deploy Key From A Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: atlassiangetaprojectdeploykey
        method: GET
        description: Atlassian Get A Project Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-deployments-rest
    port: 8080
    description: REST adapter for Atlassian Bitbucket API — Deployments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys
      name: repositories-workspace-repo-slug-deploy-keys
      description: REST surface for repositories-workspace-repo_slug-deploy-keys.
      operations:
      - method: GET
        name: atlassianlistrepositorydeploykeys
        description: Atlassian List Repository Deploy Keys
        call: bitbucket-deployments.atlassianlistrepositorydeploykeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassianaddarepositorydeploykey
        description: Atlassian Add A Repository Deploy Key
        call: bitbucket-deployments.atlassianaddarepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
      name: repositories-workspace-repo-slug-deploy-keys-key-id
      description: REST surface for repositories-workspace-repo_slug-deploy-keys-key_id.
      operations:
      - method: DELETE
        name: atlassiandeletearepositorydeploykey
        description: Atlassian Delete A Repository Deploy Key
        call: bitbucket-deployments.atlassiandeletearepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetarepositorydeploykey
        description: Atlassian Get A Repository Deploy Key
        call: bitbucket-deployments.atlassiangetarepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: atlassianupdatearepositorydeploykey
        description: Atlassian Update A Repository Deploy Key
        call: bitbucket-deployments.atlassianupdatearepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments
      name: repositories-workspace-repo-slug-deployments
      description: REST surface for repositories-workspace-repo_slug-deployments.
      operations:
      - method: GET
        name: atlassiangetdeploymentsforrepository
        description: Atlassian List Deployments
        call: bitbucket-deployments.atlassiangetdeploymentsforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments/{deployment-uuid}
      name: repositories-workspace-repo-slug-deployments-deployment-uuid
      description: REST surface for repositories-workspace-repo_slug-deployments-deployment_uuid.
      operations:
      - method: GET
        name: atlassiangetdeploymentforrepository
        description: Atlassian Get A Deployment
        call: bitbucket-deployments.atlassiangetdeploymentforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          deployment_uuid: rest.deployment_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/environments
      name: repositories-workspace-repo-slug-environments
      description: REST surface for repositories-workspace-repo_slug-environments.
      operations:
      - method: GET
        name: atlassiangetenvironmentsforrepository
        description: Atlassian List Environments
        call: bitbucket-deployments.atlassiangetenvironmentsforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreateenvironment
        description: Atlassian Create An Environment
        call: bitbucket-deployments.atlassiancreateenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
      name: repositories-workspace-repo-slug-environments-environment-uuid
      description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid.
      operations:
      - method: GET
        name: atlassiangetenvironmentforrepository
        description: Atlassian Get An Environment
        call: bitbucket-deployments.atlassiangetenvironmentforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: atlassiandeleteenvironmentforrepository
        description: Atlassian Delete An Environment
        call: bitbucket-deployments.atlassiandeleteenvironmentforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
      name: repositories-workspace-repo-slug-environments-environment-uuid-changes
      description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid-changes.
      operations:
      - method: POST
        name: atlassianupdateenvironmentforrepository
        description: Atlassian Update An Environment
        call: bitbucket-deployments.atlassianupdateenvironmentforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/projects/{project-key}/deploy-keys
      name: workspaces-workspace-projects-project-key-deploy-keys
      description: REST surface for workspaces-workspace-projects-project_key-deploy-keys.
      operations:
      - method: GET
        name: atlassianlistprojectdeploykeys
        description: Atlassian List Project Deploy Keys
        call: bitbucket-deployments.atlassianlistprojectdeploykeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: atlassiancreateaprojectdeploykey
        description: Atlassian Create A Project Deploy Key
        call: bitbucket-deployments.atlassiancreateaprojectdeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/projects/{project-key}/deploy-keys/{key-id}
      name: workspaces-workspace-projects-project-key-deploy-keys-key-id
      description: REST surface for workspaces-workspace-projects-project_key-deploy-keys-key_id.
      operations:
      - method: DELETE
        name: atlassiandeleteadeploykeyfromaproject
        description: Atlassian Delete A Deploy Key From A Project
        call: bitbucket-deployments.atlassiandeleteadeploykeyfromaproject
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: atlassiangetaprojectdeploykey
        description: Atlassian Get A Project Deploy Key
        call: bitbucket-deployments.atlassiangetaprojectdeploykey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-deployments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bitbucket API — Deployments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-list-repository-deploy-keys
      description: Atlassian List Repository Deploy Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassianlistrepositorydeploykeys
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-repository-deploy-key
      description: Atlassian Add A Repository Deploy Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-deployments.atlassianaddarepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-repository-deploy-key
      description: Atlassian Delete A Repository Deploy Key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-deployments.atlassiandeletearepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-repository-deploy-key
      description: Atlassian Get A Repository Deploy Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetarepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-repository-deploy-key
      description: Atlassian Update A Repository Deploy Key
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassianupdatearepositorydeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-deployments
      description: Atlassian List Deployments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetdeploymentsforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-deployment
      description: Atlassian Get A Deployment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetdeploymentforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        deployment_uuid: tools.deployment_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-environments
      description: Atlassian List Environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetenvironmentsforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-environment
      description: Atlassian Create An Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-deployments.atlassiancreateenvironment
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-environment
      description: Atlassian Get An Environment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetenvironmentforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-environment
      description: Atlassian Delete An Environment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-deployments.atlassiandeleteenvironmentforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-environment
      description: Atlassian Update An Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-deployments.atlassianupdateenvironmentforrepository
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        environment_uuid: tools.environment_uuid
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-project-deploy-keys
      description: Atlassian List Project Deploy Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassianlistprojectdeploykeys
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-project-deploy-key
      description: Atlassian Create A Project Deploy Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-deployments.atlassiancreateaprojectdeploykey
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-delete-deploy-key-project
      description: Atlassian Delete A Deploy Key From A Project
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: bitbucket-deployments.atlassiandeleteadeploykeyfromaproject
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-project-deploy-key
      description: Atlassian Get A Project Deploy Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-deployments.atlassiangetaprojectdeploykey
      outputParameters:
      - type: object
        mapping: $.