You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP: Authenticate button does nothing when OAuth metadata is blocked by CORS #340533
Copilot Chat Extension Version: Built-in Agent Host development build
VS Code Version: Code OSS 1.142.0 development build
OS Version: macOS
Feature: Agent Host MCP authentication
Selected model: Auto
Logs: The renderer network log reports Failed to fetch for the authorization server metadata endpoints.
Steps to Reproduce:
Configure an MCP server whose authorization server metadata endpoint does not allow renderer CORS requests, such as Avalara ELR (https://mcp.avalara.com/elr).
Invoke the MCP routing tool so the server requests authentication.
Click Authenticate.
Expected:
The OAuth authorization flow opens in the browser.
Actual:
Nothing visibly happens. The authentication bridge fails to create the dynamic provider because OAuth metadata discovery runs through renderer fetch. Avalara's valid OpenID metadata at https://identity.avalara.com/.well-known/openid-configuration is reachable from Node/curl but blocked from the renderer by CORS.
The desktop authentication bridge should perform authorization-server metadata discovery through a non-renderer network transport. After routing discovery through the shared process, the Avalara login and authorization page opens successfully.
Reacted by ngantd-hiptech, eddydee123 and slechta-lib
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.141.0. Please try upgrading to the latest version and checking whether this issue remains.
ngantd-hiptech see the workaround I mentioned in #339960
It only works for the IDE window, not the Agents window. Until this PR lands, the Agents window is unusable for most MCPs we work with
Activity
vs-code-engineering commentedon Oct 8, 2026
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.141.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
ngantd-hiptech commentedon Oct 12, 2026
same issue, does anyone know workaround solution?
eddydee123 commentedon Oct 12, 2026
ngantd-hiptech see the workaround I mentioned in #339960
It only works for the IDE window, not the Agents window. Until this PR lands, the Agents window is unusable for most MCPs we work with
agentHost: fetch MCP OAuth metadata outside renderer (#340537)