Atlassian · Capability

Atlassian Bitbucket API — Workspaces

Atlassian Bitbucket API — Workspaces. 9 operations. Lead operation: Atlassian List Workspaces For The Current User. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianWorkspaces

What You Can Do

GET
Atlassianlistworkspacesforthecurrentuser — Atlassian List Workspaces For The Current User
/v1/user/permissions/workspaces
GET
Atlassianlistworkspacesforuser — Atlassian List Workspaces For User
/v1/workspaces
GET
Atlassiangetaworkspace — Atlassian Get A Workspace
/v1/workspaces/{workspace}
GET
Atlassianlistusersinaworkspace — Atlassian List Users In A Workspace
/v1/workspaces/{workspace}/members
GET
Atlassiangetusermembershipforaworkspace — Atlassian Get User Membership For A Workspace
/v1/workspaces/{workspace}/members/{member}
GET
Atlassianlistuserpermissionsinaworkspace — Atlassian List User Permissions In A Workspace
/v1/workspaces/{workspace}/permissions
GET
Atlassianlistallrepositorypermissionsforaworkspace — Atlassian List All Repository Permissions For A Workspace
/v1/workspaces/{workspace}/permissions/repositories
GET
Atlassianlistarepositorypermissionsforaworkspace — Atlassian List A Repository Permissions For A Workspace
/v1/workspaces/{workspace}/permissions/repositories/{repo-slug}
GET
Atlassianlistprojectsinaworkspace — Atlassian List Projects In A Workspace
/v1/workspaces/{workspace}/projects

MCP Tools

atlassian-list-workspaces-current-user

Atlassian List Workspaces For The Current User

read-only idempotent
atlassian-list-workspaces-user

Atlassian List Workspaces For User

read-only idempotent
atlassian-get-workspace

Atlassian Get A Workspace

read-only idempotent
atlassian-list-users-workspace

Atlassian List Users In A Workspace

read-only idempotent
atlassian-get-user-membership-workspace

Atlassian Get User Membership For A Workspace

read-only idempotent
atlassian-list-user-permissions-workspace

Atlassian List User Permissions In A Workspace

read-only idempotent
atlassian-list-all-repository-permissions

Atlassian List All Repository Permissions For A Workspace

read-only idempotent
atlassian-list-repository-permissions-workspace

Atlassian List A Repository Permissions For A Workspace

read-only idempotent
atlassian-list-projects-workspace

Atlassian List Projects In A Workspace

read-only idempotent

Capability Spec

bitbucket-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bitbucket API — Workspaces
  description: 'Atlassian Bitbucket API — Workspaces. 9 operations. Lead operation: Atlassian List Workspaces For The Current
    User. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-workspaces
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bitbucket API — Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: user-permissions-workspaces
      path: /user/permissions/workspaces
      operations:
      - name: atlassianlistworkspacesforthecurrentuser
        method: GET
        description: Atlassian List Workspaces For The Current User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response. See
        - name: sort
          in: query
          type: string
          description: Name of a response property to sort results. See
    - name: workspaces
      path: /workspaces
      operations:
      - name: atlassianlistworkspacesforuser
        method: GET
        description: Atlassian List Workspaces For User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters the workspaces based on the authenticated user's role on each workspace.
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response. See
        - name: sort
          in: query
          type: string
          description: Name of a response property to sort results. See
    - name: workspaces-workspace
      path: /workspaces/{workspace}
      operations:
      - name: atlassiangetaworkspace
        method: GET
        description: Atlassian Get A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspace-members
      path: /workspaces/{workspace}/members
      operations:
      - name: atlassianlistusersinaworkspace
        method: GET
        description: Atlassian List Users In A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspace-members-member
      path: /workspaces/{workspace}/members/{member}
      operations:
      - name: atlassiangetusermembershipforaworkspace
        method: GET
        description: Atlassian Get User Membership For A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspace-permissions
      path: /workspaces/{workspace}/permissions
      operations:
      - name: atlassianlistuserpermissionsinaworkspace
        method: GET
        description: Atlassian List User Permissions In A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
    - name: workspaces-workspace-permissions-repositories
      path: /workspaces/{workspace}/permissions/repositories
      operations:
      - name: atlassianlistallrepositorypermissionsforaworkspace
        method: GET
        description: Atlassian List All Repository Permissions For A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Name of a response property sort the result by as per
    - name: workspaces-workspace-permissions-repositories-repo_slug
      path: /workspaces/{workspace}/permissions/repositories/{repo_slug}
      operations:
      - name: atlassianlistarepositorypermissionsforaworkspace
        method: GET
        description: Atlassian List A Repository Permissions For A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Name of a response property sort the result by as per
    - name: workspaces-workspace-projects
      path: /workspaces/{workspace}/projects
      operations:
      - name: atlassianlistprojectsinaworkspace
        method: GET
        description: Atlassian List Projects In A Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-workspaces-rest
    port: 8080
    description: REST adapter for Atlassian Bitbucket API — Workspaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/user/permissions/workspaces
      name: user-permissions-workspaces
      description: REST surface for user-permissions-workspaces.
      operations:
      - method: GET
        name: atlassianlistworkspacesforthecurrentuser
        description: Atlassian List Workspaces For The Current User
        call: bitbucket-workspaces.atlassianlistworkspacesforthecurrentuser
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces
      name: workspaces
      description: REST surface for workspaces.
      operations:
      - method: GET
        name: atlassianlistworkspacesforuser
        description: Atlassian List Workspaces For User
        call: bitbucket-workspaces.atlassianlistworkspacesforuser
        with:
          role: rest.role
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}
      name: workspaces-workspace
      description: REST surface for workspaces-workspace.
      operations:
      - method: GET
        name: atlassiangetaworkspace
        description: Atlassian Get A Workspace
        call: bitbucket-workspaces.atlassiangetaworkspace
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/members
      name: workspaces-workspace-members
      description: REST surface for workspaces-workspace-members.
      operations:
      - method: GET
        name: atlassianlistusersinaworkspace
        description: Atlassian List Users In A Workspace
        call: bitbucket-workspaces.atlassianlistusersinaworkspace
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/members/{member}
      name: workspaces-workspace-members-member
      description: REST surface for workspaces-workspace-members-member.
      operations:
      - method: GET
        name: atlassiangetusermembershipforaworkspace
        description: Atlassian Get User Membership For A Workspace
        call: bitbucket-workspaces.atlassiangetusermembershipforaworkspace
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/permissions
      name: workspaces-workspace-permissions
      description: REST surface for workspaces-workspace-permissions.
      operations:
      - method: GET
        name: atlassianlistuserpermissionsinaworkspace
        description: Atlassian List User Permissions In A Workspace
        call: bitbucket-workspaces.atlassianlistuserpermissionsinaworkspace
        with:
          q: rest.q
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/permissions/repositories
      name: workspaces-workspace-permissions-repositories
      description: REST surface for workspaces-workspace-permissions-repositories.
      operations:
      - method: GET
        name: atlassianlistallrepositorypermissionsforaworkspace
        description: Atlassian List All Repository Permissions For A Workspace
        call: bitbucket-workspaces.atlassianlistallrepositorypermissionsforaworkspace
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/permissions/repositories/{repo-slug}
      name: workspaces-workspace-permissions-repositories-repo-slug
      description: REST surface for workspaces-workspace-permissions-repositories-repo_slug.
      operations:
      - method: GET
        name: atlassianlistarepositorypermissionsforaworkspace
        description: Atlassian List A Repository Permissions For A Workspace
        call: bitbucket-workspaces.atlassianlistarepositorypermissionsforaworkspace
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace}/projects
      name: workspaces-workspace-projects
      description: REST surface for workspaces-workspace-projects.
      operations:
      - method: GET
        name: atlassianlistprojectsinaworkspace
        description: Atlassian List Projects In A Workspace
        call: bitbucket-workspaces.atlassianlistprojectsinaworkspace
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bitbucket API — Workspaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-list-workspaces-current-user
      description: Atlassian List Workspaces For The Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistworkspacesforthecurrentuser
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-workspaces-user
      description: Atlassian List Workspaces For User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistworkspacesforuser
      with:
        role: tools.role
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-workspace
      description: Atlassian Get A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassiangetaworkspace
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-users-workspace
      description: Atlassian List Users In A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistusersinaworkspace
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-user-membership-workspace
      description: Atlassian Get User Membership For A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassiangetusermembershipforaworkspace
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-user-permissions-workspace
      description: Atlassian List User Permissions In A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistuserpermissionsinaworkspace
      with:
        q: tools.q
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-all-repository-permissions
      description: Atlassian List All Repository Permissions For A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistallrepositorypermissionsforaworkspace
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-repository-permissions-workspace
      description: Atlassian List A Repository Permissions For A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistarepositorypermissionsforaworkspace
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-projects-workspace
      description: Atlassian List Projects In A Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-workspaces.atlassianlistprojectsinaworkspace
      outputParameters:
      - type: object
        mapping: $.