- Platform auth — authenticates you (the developer) to the ezForge API and CLI
- 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: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). Useezforge 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:
"client_registration_types_supported": ["automatic"], signalling CIMD support.
MCP clients also discover protected resource metadata via: