Skip to content

Add Claude MCP OAuth client support #8537

Closed

Description

@Git-on-my-level

Context

We implemented ChatGPT MCP OAuth support across the recent PRs:

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_JSON or Firestore mcp_oauth_clients.
  • Wire the needed env/secret/chart references if MCP_OAUTH_CLIENTS_JSON is 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/sse using 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

  1. added
    p3
    backend
    on Jul 1, 2026
  2. added a commit that references this issue on Jul 9, 2026
    5cefc36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendp3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions