Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.102.0 (Universal)
- OS Version: macOS Sequoia 15.5
MCP Server Configuration should allow disabling the Dynamic Client Registration and using a static client information.
Current observation:
When VS-Code receives 401 error from MCP Server, it attempts to perform DCR.
In cases where Server does not expose client registration endpoint, MCP server configuration fails with following error
Error: Dynamic registration failed: Registration to <<register_endpoint>> failed.
Using static client information using environment variable or JSON configuration is not supported.
Following is what should be supported:
- A reliable way to force-disable DCR in MCP Server configuration so that it skips the attempt to DCR even when server advertised the client_registration in its metadata.
- The ability to use static client information from environment variable or server configuration. VS-Code should use the static client information to initiate Authorization flow with the Authorization Server.
It is not know and documented, that if MCP Server can be configured using Static Client Information. If this is supported in VS code, please guid me to the relevant documentation.
I am also interested to know if there is any work around I can use to configure static client information so that it is used without triggering DCR.
- If using static client information for MCP Server is already supported in VS-Code, please guide me to the relevant documentation.
- Any work around of recommendation to achieve using static client information without using DCR?
- Is there any change I can do in VS-Code source files on my local machines temporarily?
Steps to reproduce.
Add MCP Client with http transport.
{
"servers": {
"mcp-server-f5942888": {
"url": "http://example.com/mcp",
"type": "http"
}
}
}
Click start or restart option at the top of the configuration.
Actual:
- Server status changes to error.
- Output window logs error indicating the failure Dynamic Registration.
Error: Dynamic registration failed: Registration to <<registration_endpoint>> failed:
Expectations:
- I should be able to use a flag in the configuration to disable the DCR.
- I should be able to configure client information in MCP server configuration.
- If DCR endpoint is not available or DCR fails for any reason, configured client information should be used to perform Authorization.
The MCP server configuration an be improved by introducing a new configuration object for Auth as following.
"mcp-server-f5942888": {
"url": "http://example.com/mcp",
"type": "http",
"auth": {
"useDyamicRegistration": false,
"client_id": "<<client_id>>", # preferably retrieved from environment variables using ${env:MCP_CLIENT_ID}
"client_secret": "<<client_secret>>" # preferably retrieved from environment variables ${env:MCP_CLIENT_SECRET}
}
}
Current Version of VS Code
Version: 1.102.0 (Universal)
Commit: cb0c47c
Date: 2025-07-09T22:10:34.600Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0
Does this issue occur when all extensions are disabled?: Yes/No
MCP Server Configuration should allow disabling the Dynamic Client Registration and using a static client information.
Current observation:
When VS-Code receives 401 error from MCP Server, it attempts to perform DCR.
In cases where Server does not expose client registration endpoint, MCP server configuration fails with following error
Error: Dynamic registration failed: Registration to <<register_endpoint>> failed.
Using static client information using environment variable or JSON configuration is not supported.
Following is what should be supported:
It is not know and documented, that if MCP Server can be configured using Static Client Information. If this is supported in VS code, please guid me to the relevant documentation.
I am also interested to know if there is any work around I can use to configure static client information so that it is used without triggering DCR.
Steps to reproduce.
Add MCP Client with http transport.
Click start or restart option at the top of the configuration.
Actual:
Expectations:
The MCP server configuration an be improved by introducing a new configuration object for Auth as following.
Current Version of VS Code
Version: 1.102.0 (Universal)
Commit: cb0c47c
Date: 2025-07-09T22:10:34.600Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0