western-digital · Capability

WD My Cloud Home API — User

WD My Cloud Home API — User. 2 operations. Lead operation: Get Authenticated User. Self-contained Naftiko capability covering one Western Digital business surface.

Run with Naftiko Western DigitalUser

What You Can Do

GET
Getauthuser — Get Authenticated User
/v1/authservice/v2/auth0/user
GET
Getuserinfo — Get User Information
/v1/userinfo

MCP Tools

get-authenticated-user

Get Authenticated User

read-only idempotent
get-user-information

Get User Information

read-only idempotent

Capability Spec

my-cloud-home-user.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WD My Cloud Home API — User
  description: 'WD My Cloud Home API — User. 2 operations. Lead operation: Get Authenticated User. Self-contained Naftiko
    capability covering one Western Digital business surface.'
  tags:
  - Western Digital
  - User
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WESTERN_DIGITAL_API_KEY: WESTERN_DIGITAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: my-cloud-home-user
    baseUri: https://config.mycloud.com
    description: WD My Cloud Home API — User business capability. Self-contained, no shared references.
    resources:
    - name: authservice-v2-auth0-user
      path: /authservice/v2/auth0/user
      operations:
      - name: getauthuser
        method: GET
        description: Get Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: userinfo
      path: /userinfo
      operations:
      - name: getuserinfo
        method: GET
        description: Get User Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WESTERN_DIGITAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: my-cloud-home-user-rest
    port: 8080
    description: REST adapter for WD My Cloud Home API — User. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/authservice/v2/auth0/user
      name: authservice-v2-auth0-user
      description: REST surface for authservice-v2-auth0-user.
      operations:
      - method: GET
        name: getauthuser
        description: Get Authenticated User
        call: my-cloud-home-user.getauthuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/userinfo
      name: userinfo
      description: REST surface for userinfo.
      operations:
      - method: GET
        name: getuserinfo
        description: Get User Information
        call: my-cloud-home-user.getuserinfo
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: my-cloud-home-user-mcp
    port: 9090
    transport: http
    description: MCP adapter for WD My Cloud Home API — User. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-authenticated-user
      description: Get Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: my-cloud-home-user.getauthuser
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user-information
      description: Get User Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: my-cloud-home-user.getuserinfo
      outputParameters:
      - type: object
        mapping: $.