Supabase · Capability

Supabase Auth API — MFA

Supabase Auth API — MFA. 3 operations. Lead operation: Enroll an MFA factor. Self-contained Naftiko capability covering one Supabase business surface.

Run with Naftiko SupabaseMFA

What You Can Do

POST
Enrollmfafactor — Enroll an MFA factor
/v1/factors
POST
Challengemfafactor — Create an MFA challenge
/v1/factors/{factorid}/challenge
POST
Verifymfafactor — Verify an MFA challenge
/v1/factors/{factorid}/verify

MCP Tools

enroll-mfa-factor

Enroll an MFA factor

create-mfa-challenge

Create an MFA challenge

verify-mfa-challenge

Verify an MFA challenge

Capability Spec

auth-mfa.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Supabase Auth API — MFA
  description: 'Supabase Auth API — MFA. 3 operations. Lead operation: Enroll an MFA factor. Self-contained Naftiko capability
    covering one Supabase business surface.'
  tags:
  - Supabase
  - MFA
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SUPABASE_API_KEY: SUPABASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: auth-mfa
    baseUri: https://{project_ref}.supabase.co/auth/v1
    description: Supabase Auth API — MFA business capability. Self-contained, no shared references.
    resources:
    - name: factors
      path: /factors
      operations:
      - name: enrollmfafactor
        method: POST
        description: Enroll an MFA factor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: factors-factorId-challenge
      path: /factors/{factorId}/challenge
      operations:
      - name: challengemfafactor
        method: POST
        description: Create an MFA challenge
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: factors-factorId-verify
      path: /factors/{factorId}/verify
      operations:
      - name: verifymfafactor
        method: POST
        description: Verify an MFA challenge
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SUPABASE_API_KEY}}'
  exposes:
  - type: rest
    namespace: auth-mfa-rest
    port: 8080
    description: REST adapter for Supabase Auth API — MFA. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/factors
      name: factors
      description: REST surface for factors.
      operations:
      - method: POST
        name: enrollmfafactor
        description: Enroll an MFA factor
        call: auth-mfa.enrollmfafactor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/factors/{factorid}/challenge
      name: factors-factorid-challenge
      description: REST surface for factors-factorId-challenge.
      operations:
      - method: POST
        name: challengemfafactor
        description: Create an MFA challenge
        call: auth-mfa.challengemfafactor
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/factors/{factorid}/verify
      name: factors-factorid-verify
      description: REST surface for factors-factorId-verify.
      operations:
      - method: POST
        name: verifymfafactor
        description: Verify an MFA challenge
        call: auth-mfa.verifymfafactor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: auth-mfa-mcp
    port: 9090
    transport: http
    description: MCP adapter for Supabase Auth API — MFA. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: enroll-mfa-factor
      description: Enroll an MFA factor
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: auth-mfa.enrollmfafactor
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-mfa-challenge
      description: Create an MFA challenge
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: auth-mfa.challengemfafactor
      outputParameters:
      - type: object
        mapping: $.
    - name: verify-mfa-challenge
      description: Verify an MFA challenge
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: auth-mfa.verifymfafactor
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.