Repository navigation
Description
Context
We implemented ChatGPT MCP OAuth support across the recent PRs:
- [codex] Add public PKCE MCP OAuth clients #8516: Add public PKCE MCP OAuth clients
- [codex] Wire prod MCP OAuth secrets #8521: Wire prod MCP OAuth secrets
- Allow email login for MCP OAuth review #8523: Allow email login for MCP OAuth review
The current backend already has provider-neutral static OAuth client support via MCP_OAUTH_CLIENTS_JSON / Firestore mcp_oauth_clients, plus the public PKCE path used by omi-mcp-public. ChatGPT is currently the only explicitly wired production connector flow.
Goal
Add Claude MCP OAuth support so Claude can connect to Omi through the same hosted OAuth consent flow instead of requiring users to manually provide bearer tokens or other Omi-specific credentials.
Proposed first step: static public Claude client
Add/configure a Claude static OAuth client, likely public + PKCE:
{
"client_id": "omi-claude-public",
"name": "Claude",
"token_endpoint_auth_method": "none",
"redirect_uris": ["https://claude.ai/api/mcp/auth_callback"],
"resources": ["https://api.omi.me/v1/mcp/sse"]
}Use the existing provider-neutral client mechanism rather than adding Claude-specific OAuth code unless Claude requires a different shape.
Scope
- Verify Claude's current MCP OAuth requirements and exact redirect URI.
- Decide whether to configure via
MCP_OAUTH_CLIENTS_JSONor Firestoremcp_oauth_clients. - Wire the needed env/secret/chart references if
MCP_OAUTH_CLIENTS_JSONis the chosen path. - Add dev and prod Secret Manager values for the Claude client, starting with dev.
- Verify Claude can complete OAuth authorize/token flow with PKCE and call
https://api.omi.me/v1/mcp/sseusing the issued bearer token. - Document setup steps for Claude MCP users/admins.
Acceptance criteria
- Claude has a distinct OAuth client ID, redirect allowlist, and resource allowlist.
- Claude OAuth uses the same Omi login/consent page and per-user grant model as ChatGPT.
- No client secret is required for Claude if Claude uses a public PKCE client.
- Existing ChatGPT clients continue to work unchanged.
- Dev smoke test covers authorize -> token -> MCP call for Claude client settings.
- Prod rollout checklist includes Secret Manager values, chart/env wiring if applicable, deployment, and smoke test.
Follow-up / later
If Claude or other MCP clients need a more plug-and-play path, consider adding MCP Client ID Metadata Document support or Dynamic Client Registration. That is separate from the static-client path above and should not block the first Claude integration if static OAuth works.
Activity
Wire MCP Claude OAuth prod deploy contract (PR6a code slice).
fix(mcp): wire Claude OAuth prod deploy contract (PR6a) (BasedHardwar…