Fixes › VS Code

VS Code ignores my MCP config ("servers" vs "mcpServers")

VS Code

The error

Server does not appear in Copilot chat or in the MCP Servers list • config copied from Cursor/Claude (or from an old .vscode/mcp.json) does nothing

Why it happens

VS Code now has two MCP formats. Copilot chat runs on the Copilot harness, which reads a top-level mcpServers key (the same as Cursor and Claude) from ~/.copilot/mcp-config.json or a workspace-root .mcp.json. The older .vscode/mcp.json and profile mcp.json use a servers key and belong to the Local harness, which is deprecated and will be removed in February 2027. Putting the wrong key in the wrong file, or expecting Copilot to read .vscode/mcp.json directly, leaves the server missing.

How to fix it

  1. Use the Add Server flow
    Run Chat: Open Customizations, select MCP Servers, then Add Server (+). Choose Global → Copilot Global (or the workspace-root .mcp.json). VS Code then writes the right file and format for you.
  2. Or write the portable format by hand
    In ~/.copilot/mcp-config.json or .mcp.json at the workspace root, use mcpServers and a type for each server.
    {
      "mcpServers": {
        "playwright": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "@playwright/mcp@latest"],
          "tools": ["*"]
        }
      }
    }
  3. Only for the old .vscode/mcp.json
    If you still maintain a .vscode/mcp.json for the Local harness, its key is servers. Plan to move it before February 2027, and don't copy its editor-only fields (inputs, envFile, sandboxEnabled) into mcpServers files.
    {
      "servers": {
        "playwright": {
          "command": "npx",
          "args": ["-y", "@playwright/mcp@latest"]
        }
      }
    }
  4. Check the tool really runs
    Ask Copilot for a small task that needs the server, then expand the tool call in the chat to confirm it used the server.

Related servers

Sources