SuperTokens · Capability

SuperTokens Core Driver Interface — Multi Tenancy

SuperTokens Core Driver Interface — Multi Tenancy. 3 operations. Lead operation: Create Or Update Tenant. Self-contained Naftiko capability covering one Supertokens business surface.

Run with Naftiko SupertokensMulti Tenancy

What You Can Do

POST
Createorupdatetenant — Create Or Update Tenant
/v1/recipe/multitenancy/tenant
GET
Gettenant — Get Tenant
/v1/recipe/multitenancy/tenant
GET
Listtenants — List Tenants
/v1/recipe/multitenancy/tenant/list

MCP Tools

create-update-tenant

Create Or Update Tenant

get-tenant

Get Tenant

read-only idempotent
list-tenants

List Tenants

read-only idempotent

Capability Spec

core-driver-interface-multi-tenancy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SuperTokens Core Driver Interface — Multi Tenancy
  description: 'SuperTokens Core Driver Interface — Multi Tenancy. 3 operations. Lead operation: Create Or Update Tenant.
    Self-contained Naftiko capability covering one Supertokens business surface.'
  tags:
  - Supertokens
  - Multi Tenancy
  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-multi-tenancy
    baseUri: http://{host}:{port}
    description: SuperTokens Core Driver Interface — Multi Tenancy business capability. Self-contained, no shared references.
    resources:
    - name: recipe-multitenancy-tenant
      path: /recipe/multitenancy/tenant
      operations:
      - name: createorupdatetenant
        method: POST
        description: Create Or Update Tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: gettenant
        method: GET
        description: Get Tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tenantId
          in: query
          type: string
          description: The tenant ID to retrieve
          required: true
    - name: recipe-multitenancy-tenant-list
      path: /recipe/multitenancy/tenant/list
      operations:
      - name: listtenants
        method: GET
        description: List Tenants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: api-key
      value: '{{env.SUPERTOKENS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: core-driver-interface-multi-tenancy-rest
    port: 8080
    description: REST adapter for SuperTokens Core Driver Interface — Multi Tenancy. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/recipe/multitenancy/tenant
      name: recipe-multitenancy-tenant
      description: REST surface for recipe-multitenancy-tenant.
      operations:
      - method: POST
        name: createorupdatetenant
        description: Create Or Update Tenant
        call: core-driver-interface-multi-tenancy.createorupdatetenant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: gettenant
        description: Get Tenant
        call: core-driver-interface-multi-tenancy.gettenant
        with:
          tenantId: rest.tenantId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/recipe/multitenancy/tenant/list
      name: recipe-multitenancy-tenant-list
      description: REST surface for recipe-multitenancy-tenant-list.
      operations:
      - method: GET
        name: listtenants
        description: List Tenants
        call: core-driver-interface-multi-tenancy.listtenants
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-driver-interface-multi-tenancy-mcp
    port: 9090
    transport: http
    description: MCP adapter for SuperTokens Core Driver Interface — Multi Tenancy. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: create-update-tenant
      description: Create Or Update Tenant
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: core-driver-interface-multi-tenancy.createorupdatetenant
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tenant
      description: Get Tenant
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-driver-interface-multi-tenancy.gettenant
      with:
        tenantId: tools.tenantId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-tenants
      description: List Tenants
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-driver-interface-multi-tenancy.listtenants
      outputParameters:
      - type: object
        mapping: $.