Repository navigation
Use pinned CIMD OAuth clients for Claude, Codex, and Cursor MCP - #1257
Merged
Merged
Conversation
xsh310
reviewed
Oct 26, 2026
xsh310
approved these changes
Oct 26, 2026
sunishsheth2009
enabled auto-merge
October 26, 2026 21:16
sunishsheth2009
disabled auto-merge
October 26, 2026 21:17
sunishsheth2009
enabled auto-merge
October 26, 2026 21:17
sunishsheth2009
disabled auto-merge
October 26, 2026 23:18
sunishsheth2009
enabled auto-merge
October 26, 2026 23:22
sunishsheth2009
disabled auto-merge
October 26, 2026 23:34
sunishsheth2009
enabled auto-merge
October 26, 2026 23:37
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 27, 2026
sunishsheth2009
enabled auto-merge
October 27, 2026 15:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://claude.ai/oauth/claude-code-client-metadata, Codex tohttps://chatgpt.com/oauth/codex/client.json, and Cursor tohttps://cursor.com/oauth/mcp-client.json. Agent-selected discovery can follow later.ug mcp-proxyfor other agents, PAT, no-login services, older Cursor builds, and workspaces where the matching app is unavailable. The CLI proxy refreshes workspace tokens and can start connection sign-in after a 401.ug mcp liststatus parsing for OpenCode, Gemini, Cursor, and Copilot.Routing
oauth.clientIdhttps://claude.ai/oauth/claude-code-client-metadataoauth_resourcehttps://chatgpt.com/oauth/codex/client.jsonauth.CLIENT_IDhttps://cursor.com/oauth/mcp-client.jsonug mcp-proxyUG checks authorization-server CIMD metadata and probes whether the pinned app is published on the workspace. Connection-backed detection reads the MCP service's source connection. Per-server add and batched configuration use the same routing decision. Older Cursor builds ignore
auth.CLIENT_IDand remain on the proxy.Validation
mainand resolved the Claude launch-settings conflict. 808 focused MCP/OAuth/Claude/Codex/Cursor tests passed, including a new repeated-add test that pins an existing Claude HTTP entry and verifies the next run is a no-op. Ruff lint and format, source-filety check, andgit diff --checkpassed.eng-ml-inferencestaging, the Codex and Cursor pinned app IDs were recognized by/oidc/v1/token(a deliberately invalid code returned 400, notinvalid_client).ug mcp add --names system.ai.githubmigrated pre-existing Codex and Cursor proxy entries to native HTTP. A second run made no changes.mcp login --no-browserauthorization request sent the fixed Codex CIMD ID, its loopback callback, and the GitHub MCP URL asresource.requires_authentication. Itsmcp loginauthorization request sent the fixed Cursor CIMD ID,http://localhost:8787/callback, and the same MCP resource.get_mecall returned 403 because this host is outside the GitHub enterprise IP allow list.