Docker Hub · Capability

Docker HUB API — access-tokens

Docker HUB API — access-tokens. 5 operations. Lead operation: Create personal access token. Self-contained Naftiko capability covering one Docker Hub business surface.

Run with Naftiko Docker Hubaccess-tokens

What You Can Do

POST
Post — Create personal access token
/v1/v2/access-tokens
GET
Get — List personal access tokens
/v1/v2/access-tokens
PATCH
Patch — Update personal access token
/v1/v2/access-tokens/{uuid}
GET
Get — Get personal access token
/v1/v2/access-tokens/{uuid}
DELETE
Delete — Delete personal access token
/v1/v2/access-tokens/{uuid}

MCP Tools

create-personal-access-token

Create personal access token

list-personal-access-tokens

List personal access tokens

read-only idempotent
update-personal-access-token

Update personal access token

idempotent
get-personal-access-token

Get personal access token

read-only idempotent
delete-personal-access-token

Delete personal access token

idempotent

Capability Spec

docker-hub-access-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Docker HUB API — access-tokens
  description: 'Docker HUB API — access-tokens. 5 operations. Lead operation: Create personal access token. Self-contained
    Naftiko capability covering one Docker Hub business surface.'
  tags:
  - Docker Hub
  - access-tokens
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCKER_HUB_API_KEY: DOCKER_HUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: docker-hub-access-tokens
    baseUri: https://hub.docker.com
    description: Docker HUB API — access-tokens business capability. Self-contained, no shared references.
    resources:
    - name: v2-access-tokens
      path: /v2/access-tokens
      operations:
      - name: post
        method: POST
        description: Create personal access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: get
        method: GET
        description: List personal access tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: number
        - name: page_size
          in: query
          type: number
    - name: v2-access-tokens-uuid
      path: /v2/access-tokens/{uuid}
      operations:
      - name: patch
        method: PATCH
        description: Update personal access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: get
        method: GET
        description: Get personal access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: delete
        method: DELETE
        description: Delete personal access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.DOCKER_HUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: docker-hub-access-tokens-rest
    port: 8080
    description: REST adapter for Docker HUB API — access-tokens. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/access-tokens
      name: v2-access-tokens
      description: REST surface for v2-access-tokens.
      operations:
      - method: POST
        name: post
        description: Create personal access token
        call: docker-hub-access-tokens.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: List personal access tokens
        call: docker-hub-access-tokens.get
        with:
          page: rest.page
          page_size: rest.page_size
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/access-tokens/{uuid}
      name: v2-access-tokens-uuid
      description: REST surface for v2-access-tokens-uuid.
      operations:
      - method: PATCH
        name: patch
        description: Update personal access token
        call: docker-hub-access-tokens.patch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: Get personal access token
        call: docker-hub-access-tokens.get
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete personal access token
        call: docker-hub-access-tokens.delete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docker-hub-access-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Docker HUB API — access-tokens. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-personal-access-token
      description: Create personal access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docker-hub-access-tokens.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-personal-access-tokens
      description: List personal access tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docker-hub-access-tokens.get
      with:
        page: tools.page
        page_size: tools.page_size
      outputParameters:
      - type: object
        mapping: $.
    - name: update-personal-access-token
      description: Update personal access token
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docker-hub-access-tokens.patch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-personal-access-token
      description: Get personal access token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docker-hub-access-tokens.get
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-personal-access-token
      description: Delete personal access token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docker-hub-access-tokens.delete
      outputParameters:
      - type: object
        mapping: $.