Skip to content

MCP migration writes type: "local" to workspace .mcp.json, which VS Code can't read, so the servers disappear #339955

Description

Does this issue occur when all extensions are disabled?: N/A (core MCP / Customizations)

  • VS Code Version: 1.141.0-insider (e26528f)
  • OS Version: macOS 26.7.1

Found while verifying #338716.

Steps to Reproduce:

  1. Open a single-folder workspace with a .vscode/mcp.json containing a stdio server, for example:
    { "servers": { "single-keep": { "type": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-everything"] } } }
  2. Trust the folder, open Chat: Open Customizations → MCP Servers. The server is listed under Workspace (1).
  3. Go to Migrations and migrate the workspace MCP servers.
  4. Go back to MCP Servers.

Expected: the migrated server is listed under Workspace, read from .mcp.json.

Actual: Workspace (0). The server is gone from Customizations and from agent sessions. This happens in both single-folder and multi-root workspaces, and still happens after a full restart.

The migrated .mcp.json looks like this:

{ "mcpServers": { "single-keep": { "type": "local", "command": "npx", "args": [...], "tools": ["*"] } } }

Cause: mcpServerCustomizationMigration.ts writes the Copilot CLI format through toCopilotMcpServerConfiguration (type: 'local'). The workspace .mcp.json reader (parseWorkspaceRootMcpConfiguration in mcpWorkspaceConfiguration.ts) calls normalizeMcpServerConfiguration, which only accepts stdio/http (McpServerType). It doesn't map local → stdio the way fromCopilotMcpServerConfiguration does, so every migrated stdio server gets dropped. This is still the case on main.

Confirmation: changing "type": "local" to "type": "stdio" by hand in the migrated .mcp.json brings the servers back right away. The disabled state that was migrated is also applied correctly.

🤖 Authored with GitHub Copilot on behalf of Joaquín Ruales (@jruales).

Activity

  1. added
    bug
    on Oct 6, 2026
  2. Tabisharaza commented on Oct 6, 2026

    @Tabisharaza
    Contributor

    I’m investigating the local/stdio configuration mismatch and plan to add a migration round-trip regression test. Please let me know if someone is already working on this

  3. added a commit that references this issue on Oct 8, 2026
    99f4e8d
  4. added
    unreleased
    on Oct 8, 2026
  5. added this to the 1.142.0 milestone on Oct 8, 2026
  6. added 2 commits that reference this issue on Oct 8, 2026
    1b0a4e8
    ae58f44
  7. added
    insiders-released
    and removed
    unreleased
    on Oct 9, 2026
  8. added
    verified
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-customizationsbuginsiders-releasedmcpverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions