SuperTokens · Capability

SuperTokens Core Driver Interface — User Metadata

SuperTokens Core Driver Interface — User Metadata. 3 operations. Lead operation: Get User Metadata. Self-contained Naftiko capability covering one Supertokens business surface.

Run with Naftiko SupertokensUser Metadata

What You Can Do

GET
Getusermetadata — Get User Metadata
/v1/recipe/user/metadata
PUT
Updateusermetadata — Update User Metadata
/v1/recipe/user/metadata
DELETE
Deleteusermetadata — Delete User Metadata
/v1/recipe/user/metadata

MCP Tools

get-user-metadata

Get User Metadata

read-only idempotent
update-user-metadata

Update User Metadata

idempotent
delete-user-metadata

Delete User Metadata

idempotent

Capability Spec

core-driver-interface-user-metadata.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SuperTokens Core Driver Interface — User Metadata
  description: 'SuperTokens Core Driver Interface — User Metadata. 3 operations. Lead operation: Get User Metadata. Self-contained
    Naftiko capability covering one Supertokens business surface.'
  tags:
  - Supertokens
  - User Metadata
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SUPERTOKENS_API_KEY: SUPERTOKENS_API_KEY
capability:
  consumes:
  - type: http
    namespace: core-driver-interface-user-metadata
    baseUri: http://{host}:{port}
    description: SuperTokens Core Driver Interface — User Metadata business capability. Self-contained, no shared references.
    resources:
    - name: recipe-user-metadata
      path: /recipe/user/metadata
      operations:
      - name: getusermetadata
        method: GET
        description: Get User Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: query
          type: string
          description: User ID to fetch metadata for
          required: true
      - name: updateusermetadata
        method: PUT
        description: Update User Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteusermetadata
        method: DELETE
        description: Delete User Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: query
          type: string
          required: true
    authentication:
      type: apikey
      key: api-key
      value: '{{env.SUPERTOKENS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: core-driver-interface-user-metadata-rest
    port: 8080
    description: REST adapter for SuperTokens Core Driver Interface — User Metadata. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/recipe/user/metadata
      name: recipe-user-metadata
      description: REST surface for recipe-user-metadata.
      operations:
      - method: GET
        name: getusermetadata
        description: Get User Metadata
        call: core-driver-interface-user-metadata.getusermetadata
        with:
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateusermetadata
        description: Update User Metadata
        call: core-driver-interface-user-metadata.updateusermetadata
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteusermetadata
        description: Delete User Metadata
        call: core-driver-interface-user-metadata.deleteusermetadata
        with:
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-driver-interface-user-metadata-mcp
    port: 9090
    transport: http
    description: MCP adapter for SuperTokens Core Driver Interface — User Metadata. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-user-metadata
      description: Get User Metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-driver-interface-user-metadata.getusermetadata
      with:
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-user-metadata
      description: Update User Metadata
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: core-driver-interface-user-metadata.updateusermetadata
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-user-metadata
      description: Delete User Metadata
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: core-driver-interface-user-metadata.deleteusermetadata
      with:
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.