- 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:
| Scope | Description |
|---|---|
servers:read | List and view servers |
servers:write | Create, update, delete servers |
deployments:read | View deployment history |
deployments:write | Trigger deploys and rollbacks |
logs:read | Stream server logs |
metrics:read | View server metrics |
billing:read | View billing and usage |
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. MCP clients discover auth metadata via the standard.well-known/oauth-protected-resource endpoint:
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:OAuth scopes
| Scope | Description |
|---|---|
mcp:read | List available tools |
mcp:write | Call tools that modify state |
mcp:execute | Execute arbitrary tool calls |
offline_access | Request refresh tokens |
Token lifetimes
| Token type | Lifetime |
|---|---|
| Access token | 15 minutes |
| Refresh token | 30 days (rotated on use) |
| Auth code | 5 minutes (single-use) |