Atlassian · Capability

Atlassian Bit Bucket Repositories API — Create

Atlassian Bit Bucket Repositories API — Create. 21 operations. Lead operation: Atlassian Create Repository. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCreate

What You Can Do

POST
Createrepository — Atlassian Create Repository
/v1/repositories/{workspace}/{repo-slug}
POST
Createbranchrestrictionrule — Atlassian Create Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions
POST
Createcommentforcommit — Atlassian Create Comment for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
PUT
Createorupdatereport — Atlassian Create or Update Report
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
POST
Bulkcreateorupdateannotations — Atlassian Bulk Create or Update Annotations
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations
PUT
Createorupdateanannotation — Atlassian Create or Update an Annotation
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
POST
Createbuildstatusforcommit — Atlassian Create Build Status for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build
POST
Createvariableforanenvironment — Atlassian Create Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables
POST
Createanenvironment — Atlassian Create an Environment
/v1/repositories/{workspace}/{repo-slug}/environments
POST
Createwebhookforrepository — Atlassian Create Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
POST
Createanissue — Atlassian Create an Issue
/v1/repositories/{workspace}/{repo-slug}/issues
POST
Createcommentonanissue — Atlassian Create Comment on an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments
POST
Createschedule — Atlassian Create Schedule
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/schedules
POST
Createknownhost — Atlassian Create Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts
POST
Createvariableforrepository — Atlassian Create Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
POST
Createpullrequest — Atlassian Create Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests
POST
Createcommentonpullrequest — Atlassian Create Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
POST
Createtaskonpullrequest — Atlassian Create Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks
POST
Createbranch — Atlassian Create Branch
/v1/repositories/{workspace}/{repo-slug}/refs/branches
POST
Createtag — Atlassian Create Tag
/v1/repositories/{workspace}/{repo-slug}/refs/tags
POST
Createcommitbyuploadingfile — Atlassian Create Commit by Uploading File
/v1/repositories/{workspace}/{repo-slug}/src

MCP Tools

atlassian-create-repository

Atlassian Create Repository

atlassian-create-branch-restriction-rule

Atlassian Create Branch Restriction Rule

atlassian-create-comment-commit

Atlassian Create Comment for Commit

atlassian-create-update-report

Atlassian Create or Update Report

idempotent
atlassian-bulk-create-update-annotations

Atlassian Bulk Create or Update Annotations

atlassian-create-update-annotation

Atlassian Create or Update an Annotation

idempotent
atlassian-create-build-status-commit

Atlassian Create Build Status for Commit

atlassian-create-variable-environment

Atlassian Create Variable for an Environment

atlassian-create-environment

Atlassian Create an Environment

atlassian-create-webhook-repository

Atlassian Create Webhook for Repository

atlassian-create-issue

Atlassian Create an Issue

atlassian-create-comment-issue

Atlassian Create Comment on an Issue

atlassian-create-schedule

Atlassian Create Schedule

atlassian-create-known-host

Atlassian Create Known Host

atlassian-create-variable-repository

Atlassian Create Variable for Repository

atlassian-create-pull-request

Atlassian Create Pull Request

atlassian-create-comment-pull-request

Atlassian Create Comment on Pull Request

atlassian-create-task-pull-request

Atlassian Create Task on Pull Request

atlassian-create-branch

Atlassian Create Branch

atlassian-create-tag

Atlassian Create Tag

atlassian-create-commit-uploading-file

Atlassian Create Commit by Uploading File

Capability Spec

bitbucket-repositories-create.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Create
  description: 'Atlassian Bit Bucket Repositories API — Create. 21 operations. Lead operation: Atlassian Create Repository.
    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-repositories-create
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Create business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug
      path: /repositories/{workspace}/{repo_slug}
      operations:
      - name: createrepository
        method: POST
        description: Atlassian Create Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-branch-restrictions
      path: /repositories/{workspace}/{repo_slug}/branch-restrictions
      operations:
      - name: createbranchrestrictionrule
        method: POST
        description: Atlassian Create Branch Restriction Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-comments
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments
      operations:
      - name: createcommentforcommit
        method: POST
        description: Atlassian Create Comment for Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}
      operations:
      - name: createorupdatereport
        method: PUT
        description: Atlassian Create or Update Report
        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: commit
          in: path
          type: string
          description: The commit the report belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the report.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations
      operations:
      - name: bulkcreateorupdateannotations
        method: POST
        description: Atlassian Bulk Create or Update Annotations
        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: commit
          in: path
          type: string
          description: The commit for which to retrieve reports.
          required: true
        - name: reportId
          in: path
          type: string
          description: Uuid or external-if of the report for which to get annotations for.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId}
      operations:
      - name: createorupdateanannotation
        method: PUT
        description: Atlassian Create or Update an Annotation
        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: commit
          in: path
          type: string
          description: The commit the report belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the report.
          required: true
        - name: annotationId
          in: path
          type: string
          description: Either the uuid or external-id of the annotation.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-statuses-build
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build
      operations:
      - name: createbuildstatusforcommit
        method: POST
        description: Atlassian Create Build Status for Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
      path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables
      operations:
      - 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-environments
      path: /repositories/{workspace}/{repo_slug}/environments
      operations:
      - name: createanenvironment
        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-hooks
      path: /repositories/{workspace}/{repo_slug}/hooks
      operations:
      - name: createwebhookforrepository
        method: POST
        description: Atlassian Create Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-issues
      path: /repositories/{workspace}/{repo_slug}/issues
      operations:
      - name: createanissue
        method: POST
        description: Atlassian Create an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-issues-issue_id-comments
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/comments
      operations:
      - name: createcommentonanissue
        method: POST
        description: Atlassian Create Comment on an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-schedules
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/schedules
      operations:
      - name: createschedule
        method: POST
        description: Atlassian Create Schedule
        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-ssh-known_hosts
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts
      operations:
      - name: createknownhost
        method: POST
        description: Atlassian Create Known Host
        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
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables
      operations:
      - 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-pullrequests
      path: /repositories/{workspace}/{repo_slug}/pullrequests
      operations:
      - name: createpullrequest
        method: POST
        description: Atlassian Create Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments
      operations:
      - name: createcommentonpullrequest
        method: POST
        description: Atlassian Create Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks
      operations:
      - name: createtaskonpullrequest
        method: POST
        description: Atlassian Create Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-refs-branches
      path: /repositories/{workspace}/{repo_slug}/refs/branches
      operations:
      - name: createbranch
        method: POST
        description: Atlassian Create Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-refs-tags
      path: /repositories/{workspace}/{repo_slug}/refs/tags
      operations:
      - name: createtag
        method: POST
        description: Atlassian Create Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-src
      path: /repositories/{workspace}/{repo_slug}/src
      operations:
      - name: createcommitbyuploadingfile
        method: POST
        description: Atlassian Create Commit by Uploading File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: message
          in: query
          type: string
          description: The commit message. When omitted, Bitbucket uses a canned string.
        - name: author
          in: query
          type: string
          description: The raw string to be used as the new Commits author.
        - name: parents
          in: query
          type: string
          description: A comma-separated list of SHA1s of the commits that should
        - name: files
          in: query
          type: string
          description: Optional field that declares the files that the request is
        - name: branch
          in: query
          type: string
          description: The name of the branch that the new commit should be
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-create-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Create. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}
      name: repositories-workspace-repo-slug
      description: REST surface for repositories-workspace-repo_slug.
      operations:
      - method: POST
        name: createrepository
        description: Atlassian Create Repository
        call: bitbucket-repositories-create.createrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/branch-restrictions
      name: repositories-workspace-repo-slug-branch-restrictions
      description: REST surface for repositories-workspace-repo_slug-branch-restrictions.
      operations:
      - method: POST
        name: createbranchrestrictionrule
        description: Atlassian Create Branch Restriction Rule
        call: bitbucket-repositories-create.createbranchrestrictionrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments
      name: repositories-workspace-repo-slug-commit-commit-comments
      description: REST surface for repositories-workspace-repo_slug-commit-commit-comments.
      operations:
      - method: POST
        name: createcommentforcommit
        description: Atlassian Create Comment for Commit
        call: bitbucket-repositories-create.createcommentforcommit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId.
      operations:
      - method: PUT
        name: createorupdatereport
        description: Atlassian Create or Update Report
        call: bitbucket-repositories-create.createorupdatereport
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid-annotations
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations.
      operations:
      - method: POST
        name: bulkcreateorupdateannotations
        description: Atlassian Bulk Create or Update Annotations
        call: bitbucket-repositories-create.bulkcreateorupdateannotations
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid-annotations-anno
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno.
      operations:
      - method: PUT
        name: createorupdateanannotation
        description: Atlassian Create or Update an Annotation
        call: bitbucket-repositories-create.createorupdateanannotation
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          annotationId: rest.annotationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build
      name: repositories-workspace-repo-slug-commit-commit-statuses-build
      description: REST surface for repositories-workspace-repo_slug-commit-commit-statuses-build.
      operations:
      - method: POST
        name: createbuildstatusforcommit
        description: Atlassian Create Build Status for Commit
        call: bitbucket-repositories-create.createbuildstatusforcommit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - 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: POST
        name: createvariableforanenvironment
        description: Atlassian Create Variable for an Environment
        call: bitbucket-repositories-create.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}/environments
      name: repositories-workspace-repo-slug-environments
      description: REST surface for repositories-workspace-repo_slug-environments.
      operations:
      - method: POST
        name: createanenvironment
        description: Atlassian Create an Environment
        call: bitbucket-repositories-create.createanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks
      name: repositories-workspace-repo-slug-hooks
      description: REST surface for repositories-workspace-repo_slug-hooks.
      operations:
      - method: POST
        name: createwebhookforrepository
        description: Atlassian Create Webhook for Repository
        call: bitbucket-repositories-create.createwebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues
      name: repositories-workspace-repo-slug-issues
      description: REST surface for repositories-workspace-repo_slug-issues.
      operations:
      - method: POST
        name: createanissue
        description: Atlassian Create an Issue
        call: bitbucket-repositories-create.createanissue
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments
      name: repositories-workspace-repo-slug-issues-issue-id-comments
      description: REST surface for repositories-workspace-repo_slug-issues-issue_id-comments.
      operations:
      - method: POST
        name: createcommentonanissue
        description: Atlassian Create Comment on an Issue
        call: bitbucket-repositories-create.createcommentonanissue
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/schedules
      name: repositories-workspace-repo-slug-pipelines-config-schedules
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-schedules.
      operations:
      - method: POST
        name: createschedule
        description: Atlassian Create Schedule
        call: bitbucket-repositories-create.createschedule
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts
      name: repositories-workspace-repo-slug-pipelines-config-ssh-known-hosts
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts.
      operations:
      - method: POST
        name: createknownhost
        description: Atlassian Create Known Host
        call: bitbucket-repositories-create.createknownhost
        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
      name: repositories-workspace-repo-slug-pipelines-config-variables
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-variables.
      operations:
      - method: POST
        name: createvariableforrepository
        description: Atlassian Create Variable for Repository
        call: bitbucket-repositories-create.createvariableforrepository
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests
      name: repositories-workspace-repo-slug-pullrequests
      description: REST surface for repositories-workspace-repo_slug-pullrequests.
      operations:
      - method: POST
        name: createpullrequest
        description: Atlassian Create Pull Request
        call: bitbucket-repositories-create.createpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments.
      operations:
      - method: POST
        name: createcommentonpullrequest
        description: Atlassian Create Comment on Pull Request
        call: bitbucket-repositories-create.createcommentonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-tasks
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks.
      operations:
      - method: POST
        name: createtaskonpullrequest
        description: Atlassian Create Task on Pull Request
        call: bitbucket-repositories-create.createtaskonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/branches
      name: repositories-workspace-repo-slug-refs-branches
      description: REST surface for repositories-workspace-repo_slug-refs-branches.
      operations:
      - method: POST
        name: createbranch
        description: Atlassian Create Branch
        call: bitbucket-repositories-create.createbranch
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/refs/tags
      name: repositories-workspace-repo-slug-refs-tags
      description: REST surface for repositories-workspace-repo_slug-refs-tags.
      operations:
      - method: POST
        name: createtag
        description: Atlassian Create Tag
        call: bitbucket-repositories-create.createtag
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/src
      name: repositories-workspace-repo-slug-src
      description: REST surface for repositories-workspace-repo_slug-src.
      operations:
      - method: POST
        name: createcommitbyuploadingfile
        description: Atlassian Create Commit by Uploading File
        call: bitbucket-repositories-create.createcommitbyuploadingfile
        with:
          message: rest.message
          author: rest.author
          parents: rest.parents
          files: rest.files
          branch: rest.branch
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-create-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Create. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-create-repository
      description: Atlassian Create Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-create.createrepository
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-branch-restriction-rule
      description: Atlassian Create Branch Restriction Rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-create.createbranchrestrictionrule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-comment-commit
      description: Atlassian Create Comment for Commit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-create.createcommentforcommit
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-update-report
      description: Atlassian Create or Update Report
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-create.createorupdatereport
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        commit: tools.commit
        reportId: tools.reportId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-bulk-create-update-annotations
      description: Atlassian Bulk Create or Update Annotations
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: bitbucket-repositories-create.bulkcreateorupdateannotations
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        commit: tools.commit
        reportId: tools.reportId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-update-annotation
      description: Atlassian Create or Update an Annotation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-repositories-create.createorupdateanannotation
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        commit: tools.commit
        reportId: tools.reportId
        annotationId: tools.annotationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-create-build-status-commit
      description: Atlassian Create Build Status

# --- truncated at 32 KB (37 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/capabilities/bitbucket-repositories-create.yaml