Atlassian · Capability

Atlassian Bit Bucket User API — Current

Atlassian Bit Bucket User API — Current. 4 operations. Lead operation: Atlassian Get Current User. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianCurrent

What You Can Do

GET
Getcurrentuser — Atlassian Get Current User
/v1/user
GET
Listemailaddressesforcurrentuser — Atlassian List Email Addresses for Current User
/v1/user/emails
GET
Getanemailaddressforcurrentuser — Atlassian Get an Email Address for Current User
/v1/user/emails/{email}
GET
Listworkspacesforthecurrentuser — Atlassian List Workspaces for the Current User
/v1/user/permissions/workspaces

MCP Tools

atlassian-get-current-user

Atlassian Get Current User

read-only idempotent
atlassian-list-email-addresses-current

Atlassian List Email Addresses for Current User

read-only idempotent
atlassian-get-email-address-current

Atlassian Get an Email Address for Current User

read-only idempotent
atlassian-list-workspaces-current-user

Atlassian List Workspaces for the Current User

read-only idempotent

Capability Spec

bitbucket-user-current.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket User API — Current
  description: 'Atlassian Bit Bucket User API — Current. 4 operations. Lead operation: Atlassian Get Current User. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Current
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-user-current
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket User API — Current business capability. Self-contained, no shared references.
    resources:
    - name: user
      path: /user
      operations:
      - name: getcurrentuser
        method: GET
        description: Atlassian Get Current User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-emails
      path: /user/emails
      operations:
      - name: listemailaddressesforcurrentuser
        method: GET
        description: Atlassian List Email Addresses for Current User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-emails-email
      path: /user/emails/{email}
      operations:
      - name: getanemailaddressforcurrentuser
        method: GET
        description: Atlassian Get an Email Address for Current User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-permissions-workspaces
      path: /user/permissions/workspaces
      operations:
      - name: listworkspacesforthecurrentuser
        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
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-user-current-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket User API — Current. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/user
      name: user
      description: REST surface for user.
      operations:
      - method: GET
        name: getcurrentuser
        description: Atlassian Get Current User
        call: bitbucket-user-current.getcurrentuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/emails
      name: user-emails
      description: REST surface for user-emails.
      operations:
      - method: GET
        name: listemailaddressesforcurrentuser
        description: Atlassian List Email Addresses for Current User
        call: bitbucket-user-current.listemailaddressesforcurrentuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/emails/{email}
      name: user-emails-email
      description: REST surface for user-emails-email.
      operations:
      - method: GET
        name: getanemailaddressforcurrentuser
        description: Atlassian Get an Email Address for Current User
        call: bitbucket-user-current.getanemailaddressforcurrentuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/permissions/workspaces
      name: user-permissions-workspaces
      description: REST surface for user-permissions-workspaces.
      operations:
      - method: GET
        name: listworkspacesforthecurrentuser
        description: Atlassian List Workspaces for the Current User
        call: bitbucket-user-current.listworkspacesforthecurrentuser
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-user-current-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket User API — Current. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-get-current-user
      description: Atlassian Get Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-current.getcurrentuser
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-email-addresses-current
      description: Atlassian List Email Addresses for Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-current.listemailaddressesforcurrentuser
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-email-address-current
      description: Atlassian Get an Email Address for Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-current.getanemailaddressforcurrentuser
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-list-workspaces-current-user
      description: Atlassian List Workspaces for the Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-user-current.listworkspacesforthecurrentuser
      with:
        q: tools.q
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.