Bitbucket Pipelines · Capability

Bitbucket API — Users

Bitbucket API — Users. 4 operations. Lead operation: Get current user. Self-contained Naftiko capability covering one Bitbucket Pipelines business surface.

Run with Naftiko Bitbucket PipelinesUsers

What You Can Do

GET
Get — Get current user
/v1/user
GET
Get — List email addresses for current user
/v1/user/emails
GET
Get — Get an email address for current user
/v1/user/emails/{email}
GET
Get — Get a user
/v1/users/{selected-user}

MCP Tools

get-current-user

Get current user

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

List email addresses for current user

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

Get an email address for current user

read-only idempotent
get-user

Get a user

read-only idempotent

Capability Spec

bitbucket-pipelines-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bitbucket API — Users
  description: 'Bitbucket API — Users. 4 operations. Lead operation: Get current user. Self-contained Naftiko capability covering
    one Bitbucket Pipelines business surface.'
  tags:
  - Bitbucket Pipelines
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BITBUCKET_PIPELINES_API_KEY: BITBUCKET_PIPELINES_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-pipelines-users
    baseUri: https://api.bitbucket.org/2.0
    description: Bitbucket API — Users business capability. Self-contained, no shared references.
    resources:
    - name: user
      path: /user
      operations:
      - name: get
        method: GET
        description: Get current user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-emails
      path: /user/emails
      operations:
      - name: get
        method: GET
        description: List email addresses for current user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-emails-email
      path: /user/emails/{email}
      operations:
      - name: get
        method: GET
        description: Get an email address for current user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-selected_user
      path: /users/{selected_user}
      operations:
      - name: get
        method: GET
        description: Get a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: bitbucket-pipelines-users-rest
    port: 8080
    description: REST adapter for Bitbucket API — Users. 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: get
        description: Get current user
        call: bitbucket-pipelines-users.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/emails
      name: user-emails
      description: REST surface for user-emails.
      operations:
      - method: GET
        name: get
        description: List email addresses for current user
        call: bitbucket-pipelines-users.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/emails/{email}
      name: user-emails-email
      description: REST surface for user-emails-email.
      operations:
      - method: GET
        name: get
        description: Get an email address for current user
        call: bitbucket-pipelines-users.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{selected-user}
      name: users-selected-user
      description: REST surface for users-selected_user.
      operations:
      - method: GET
        name: get
        description: Get a user
        call: bitbucket-pipelines-users.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-pipelines-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bitbucket API — Users. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-current-user
      description: Get current user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-users.get
      outputParameters:
      - type: object
        mapping: $.
    - name: list-email-addresses-current-user
      description: List email addresses for current user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-users.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-email-address-current-user
      description: Get an email address for current user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-users.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user
      description: Get a user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-pipelines-users.get
      outputParameters:
      - type: object
        mapping: $.