Skip to content

MCP: Authenticate button does nothing when OAuth metadata is blocked by CORS #340533

Closed

Description

  • 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:

  1. Configure an MCP server whose authorization server metadata endpoint does not allow renderer CORS requests, such as Avalara ELR (https://mcp.avalara.com/elr).
  2. Invoke the MCP routing tool so the server requests authentication.
  3. 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.

Activity

  1. vs-code-engineering commented on Oct 8, 2026

    @vs-code-engineering
    Contributor

    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!

  2. ngantd-hiptech commented on Oct 12, 2026

    @ngantd-hiptech

    same issue, does anyone know workaround solution?

  3. eddydee123 commented on Oct 12, 2026

    @eddydee123

    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

  4. added
    unreleased
    on Oct 14, 2026
  5. added this to the 1.143.0 milestone on Oct 14, 2026
  6. added
    insiders-released
    and removed
    unreleased
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chat-mcpinsiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions