Skip to content

Hierarchical Order of mcp loading. Bug / feature #333996

Closed as not planned
Closed as not planned

Description

  • Copilot Chat Extension Version: Latest
  • VS Code Version: Latest, insider
  • OS Version:
  • Feature (e.g. agent/edit/ask mode):
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet):
  • Logs:

Bug that is related to copilot workflow, but happens in the visual studio code.

During the load of a new-agent, specifically trying to bundle a MCP.json, or double mcp server, the cascade loading ( which was working in prev version, seems a regression ) disappeared.

I'm importing a plugin.

Now vscode is defaulting to the first MCP close to the agent. My plugin folder has many mcp servers, and one is specifically for vscode. Previously all mcp servers would load.

May or may not be related with #333995

Picture 1 - The plugin folder, self-importing, in the same workspace of the plugin

Image

Picture 2 - The plugin folder doesn't run when imported in a different environment , with different workspace.

Image

Picture 3 - the plugin is correctly blunded and the vscode imports all.

Image

Picture 4 - Vscode can't recognize the other mcp servers as the picture 5 recognizes.
Image

Picture 5 - Adding the plugin to the workspace does fix the issue, and the 3 mcp options appear again

Image

Steps to Reproduce:

  1. Put a .vscode with a .mcp
  2. put a .mcp in the folder
  3. create an agent in the main folder
  4. Bundle a plugin
  5. Import the plugin in a different workspace / user
  6. check the collision

Activity

  1. MuraraAllan commented on Sep 2, 2026

    @MuraraAllan
    Author

    Sandeep Somavarapu (@sandy081) possible relation with the suffix appending ? JIC - I run the test again here and it also does not solve.

    Image
  2. dmitrivMS commented on Oct 28, 2026

    @dmitrivMS
    Collaborator

    The relative-script startup failure is addressed by #338995, which makes Agent Plugin MCP servers use the plugin root as their default working directory. Verified on current main in Code OSS that a test server using the reported configuration layout starts successfully without an explicit cwd.

    The one-versus-three server count is separate: importing the plugin loads its canonical MCP configuration, while opening the plugin directory as a workspace also discovers its two workspace configurations. These are independent sources. The suffix collision setting allows same-named servers to coexist; it does not merge configuration files. Verified that all three sources can start in suffix mode.

    Could you please try latest Insiders and let us know if you still hit the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions