Hugging Face · Capability

Hugging Face Hub API — Users

Hugging Face Hub API — Users. 1 operations. Lead operation: Get Current User Information. Self-contained Naftiko capability covering one Hugging Face business surface.

Run with Naftiko Hugging FaceUsers

What You Can Do

GET
Whoami — Get Current User Information
/v1/whoami-v2

MCP Tools

get-current-user-information

Get Current User Information

read-only idempotent

Capability Spec

hub-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hugging Face Hub API — Users
  description: 'Hugging Face Hub API — Users. 1 operations. Lead operation: Get Current User Information. Self-contained Naftiko
    capability covering one Hugging Face business surface.'
  tags:
  - Hugging Face
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUGGING_FACE_API_KEY: HUGGING_FACE_API_KEY
capability:
  consumes:
  - type: http
    namespace: hub-users
    baseUri: https://huggingface.co/api
    description: Hugging Face Hub API — Users business capability. Self-contained, no shared references.
    resources:
    - name: whoami-v2
      path: /whoami-v2
      operations:
      - name: whoami
        method: GET
        description: Get Current User Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HUGGING_FACE_API_KEY}}'
  exposes:
  - type: rest
    namespace: hub-users-rest
    port: 8080
    description: REST adapter for Hugging Face Hub API — Users. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/whoami-v2
      name: whoami-v2
      description: REST surface for whoami-v2.
      operations:
      - method: GET
        name: whoami
        description: Get Current User Information
        call: hub-users.whoami
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hub-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hugging Face Hub API — Users. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-current-user-information
      description: Get Current User Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hub-users.whoami
      outputParameters:
      - type: object
        mapping: $.