Skip to main content
ezForge uses two separate auth systems:
  1. Platform auth — authenticates you (the developer) to the ezForge API and CLI
  2. MCP auth — authenticates MCP clients (AI assistants) to your deployed servers

Platform authentication

API keys

API keys are scoped, revocable credentials for programmatic access to the ezForge control plane. Create an API key in the dashboard under Project → API Keys, or via the CLI:
Keys use the prefix ezf_live_ (production) or ezf_test_ (test environment). Available scopes: Using an API key:

Session tokens

The ezForge CLI and dashboard use session-based auth (HTTP-only cookies, 1-hour expiry). Use ezforge auth login to authenticate the CLI.

MCP authentication

Every deployed MCP server is protected by OAuth 2.1 with mandatory PKCE (S256 code challenge method). This means MCP clients must complete an authorization flow before they can call your server’s tools.

ezforge_managed mode (default)

ezForge acts as the OAuth authorization server. No configuration needed — your server is protected out of the box. Client registration — two paths: CIMD (Client ID Metadata Document) — the MCP spec’s preferred path. Your client uses its own metadata URL as client_id. ezForge auto-fetches and registers the client on first authorization request. No separate registration call required. DCR (Dynamic Client Registration, RFC 7591) — POST metadata to /api/v1/servers/:id/clients or include clientMetadataUrl in the body for CIMD explicit pre-registration. MCP clients discover auth metadata via the standard .well-known endpoints:
This returns RFC 8414 Authorization Server Metadata, including "client_registration_types_supported": ["automatic"], signalling CIMD support. MCP clients also discover protected resource metadata via:
Response:

BYOA mode (Bring Your Own Auth)

If you have an existing OAuth 2.1 authorization server, you can configure your server to accept tokens from it:
ezForge performs a lightweight RFC 6750 structural Bearer-token check, then forwards the token to your MCP server for full JWT verification.

OAuth scopes

Token lifetimes