Dynamic Client Registration not supported
Describe the bug
When installing GitHub MCP Server on vscode, there is pop up "Dyncmic Client Registration not supported" with the following content.
Affected version
GitHub MCP: 0.13.0 VSCode: 1.106.0
Steps to reproduce the behavior
- Go to extensions in VSCode
- Install MCP server GitHub
- Start the GitHub MCP Server
Expected vs actual behavior
The OAuth flow should work without prompting for a clientid, like it used to before.
Logs
2025-11-13 23:20:00.019 [info] Starting server github/github-mcp-server
2025-11-13 23:20:00.019 [info] Connection state: Starting
2025-11-13 23:20:00.019 [info] Starting server from LocalProcess extension host
2025-11-13 23:20:00.020 [info] Connection state: Running
2025-11-13 23:20:00.796 [warning] Error populating auth server metadata for https://github.com/login/oauth: TypeError: fetch failed
2025-11-13 23:20:00.796 [info] Using default auth metadata
2025-11-13 23:20:05.021 [info] Waiting for server to respond to initialize request...
2025-11-13 23:20:10.034 [info] Waiting for server to respond to initialize request...
2025-11-13 23:20:12.123 [warning] Error getting token from server metadata: Error: User did not provide client details
2025-11-13 23:20:12.126 [info] Connection state: Error 401 status sending message to https://api.githubcopilot.com/mcp/: bad request: missing required Authorization header
Hi π We indeed do not support DCR but VS Code shouldn't make a DCR attempt in case of GitHub MCP. I couldn't reproduce this issue. Can you update your VS Code to the latest, re-install GitHub MCP, and try again?
I updated my VSCode to the latest, I searched GitHub in the MCP Servers panel of the extension tab, and reinstalled it using the "VS Code Install Server" button (installing it from the "Install" button was using the the local Docker GitHub MCP Server instead of the Remote MCP Server). And still the same issue.
I get this same issue as well. I am providing a training to a client on setting up the MCP Server in VS Code and this is occuring. The MCP server was working before but for the demo I deleted the setup to show them how to set it up and we get this.
@TechWatching can you share your mcp.json?
I don't have the issue anymore on Insiders but still on VSCode. Here is my mcp.json:
{
"servers": {
"microsoft/playwright-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"@playwright/mcp@latest"
],
"gallery": "https://api.mcp.github.com/2025-09-15/v0/servers/41b79849-7e6c-4fc7-82c0-5a611ea21523",
"version": "0.0.1-seed"
},
"upstash/context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "${input:context7_api_key}"
},
"gallery": "https://api.mcp.github.com/2025-09-15/v0/servers/dcec7705-b81b-4e0f-8615-8032604be7ad",
"version": "1.0.0"
},
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
},
"inputs": [
{
"id": "context7_api_key",
"type": "promptString",
"description": "Context7 API key (optional; increases rate limits). Get one at https://context7.com/dashboard",
"password": true
}]
}
me too
It is working again with latest version of VSCode that was just released. I'm closing the issue. thanks.
I got the exact wording but my issue was that the PAT scopes where not correct. I had to create one with the correct scopes and then the issue dissapeared.
Workaround for Claude Code users
For Claude Code users hitting "Dynamic Client Registration not supported", here's a working workaround using PAT auth:
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
Steps:
- Generate a GitHub PAT at https://github.com/settings/personal-access-tokens/new with
reposcope - Run the command above with your PAT substituted
- Restart Claude Code
- Verify with
claude mcp listβ should showgithub: β Connected
This bypasses the OAuth flow entirely and uses direct PAT authentication in the header, matching the setup documented in install-claude.md.
any workaround for opencode?
@wwnbb #132 approach can work if you can use STDIO server with opencode.
Also if there is a way to avoid DCR and provide your own GitHub Oauth App for opencode than you can still do Oauth to login, you just need to bring your own app.
Or perhaps it lets you configure PAT token auth header as alternative.
Workaround for Claude Code users
For Claude Code users hitting "Dynamic Client Registration not supported", here's a working workaround using PAT auth:
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
Steps:
1. Generate a GitHub PAT at https://github.com/settings/personal-access-tokens/new with `repo` scope 2. Run the command above with your PAT substituted 3. Restart Claude Code 4. Verify with `claude mcp list` β should show `github: β Connected`This bypasses the OAuth flow entirely and uses direct PAT authentication in the header, matching the setup documented in install-claude.md.
Doesn't this result in storing your PAT in plaintext in your claude config?
Proper workaround: bring your own GitHub OAuth App (full OAuth, no DCR, no plaintext secret)
The remote server doesn't support Dynamic Client Registration, but Claude Code lets you supply a pre-registered client_id, so you can run the normal OAuth flow against your own app. This keeps real OAuth (token refresh, app-scoped access) and β unlike the PAT-in-header approach β never writes a secret into ~/.claude.json.
1. Create an OAuth App at https://github.com/settings/developers β New OAuth App
| Field | Value |
|---|---|
| Application name | claude-code-mcp (anything) |
| Homepage URL | http://localhost |
| Authorization callback URL | http://localhost:33418/callback |
Pick any free port; it just has to match --callback-port below. Click Register application, then Generate a new client secret and copy both the Client ID and the secret. (GitHub requires the secret for the authorization-code exchange β PKCE-only without a secret isn't accepted, even with Device Flow enabled.)
2. Add the server in Claude Code, passing the secret via env so it stays out of the config file:
MCP_CLIENT_SECRET='<your-client-secret>' \
claude mcp add --transport http --scope user \
--client-id <your-client-id> --client-secret --callback-port 33418 \
github https://api.githubcopilot.com/mcp/
Claude Code reads MCP_CLIENT_SECRET from the environment at token-exchange time β ~/.claude.json ends up storing only oauth.{clientId,callbackPort}, no secret. (For convenience, source it from a password manager, e.g. MCP_CLIENT_SECRET="$(pass show github/claude-code-mcp-oauth-secret)".)
3. Authenticate: run /mcp β github β Authenticate. The browser opens the consent screen for your OAuth App, and the redirect lands on http://localhost:33418/callback.
4. Verify: the github server should connect; get_me returns your account.
β οΈ Because the secret isn't persisted, Claude Code needs
MCP_CLIENT_SECRETin its environment for both the initial auth and later token refresh β launch it with the var set.
β¦or, for the ultimate workaround, just use gh from your terminal and skip the MCP server entirely. π Every LLM already knows the gh CLI cold β it's all over their training data β whereas wiring up the MCP server injects tens of thousands of tokens of tool schemas into your context window before you've even asked a question.
Prepared with LM assistance β Claude Code, via official GitHub MCP
Please, support Claude Code
$ claude mcp login github
Starting authentication for "github"β¦
Couldn't complete authentication for "github": SDK auth failed: Incompatible auth server: does not support dynamic client registration
You can still publish the Client ID to overcome Entra's DCR absence.
Withdrawn (2026-09-27). This earlier commercial note from Exactlane Operations, including the price quoted here, is withdrawn and no longer valid. It should not have been posted on this issue β apologies for the noise.
β Exactlane Operations
@ei-grad 's solution works as-is for OpenAI Codex CLI v0.158.0 (that includes oauth secret, finally):
Proper workaround: bring your own GitHub OAuth App (full OAuth, no DCR, no plaintext secret)
codex mcp add \
-c mcp_oauth_callback_port=33418 \
-c mcp_oauth_callback_url=http://localhost:33418/callback \
github \
--url https://api.githubcopilot.com/mcp/ \
--oauth-client-id $YOUR_GH_CLIENT_ID \
--oauth-client-secret $YOUR_GH_CLIENT_SECRET
Would have been much nicer to have DCR work though ...