VS Code ignores my MCP config ("servers" vs "mcpServers")
The error
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
- 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. - Or write the portable format by hand
In~/.copilot/mcp-config.jsonor.mcp.jsonat the workspace root, usemcpServersand atypefor each server.{ "mcpServers": { "playwright": { "type": "stdio", "command": "npx", "args": ["-y", "@playwright/mcp@latest"], "tools": ["*"] } } } - Only for the old .vscode/mcp.json
If you still maintain a.vscode/mcp.jsonfor the Local harness, its key isservers. Plan to move it before February 2027, and don't copy its editor-only fields (inputs,envFile,sandboxEnabled) intomcpServersfiles.{ "servers": { "playwright": { "command": "npx", "args": ["-y", "@playwright/mcp@latest"] } } } - 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
Playwright (Microsoft)
Microsoft's official Playwright MCP server: lets your AI assistant drive a real browser using the page's accessibility tree instead of screenshots. Ve
GitHub
GitHub's official MCP server for repositories, issues, pull requests, Actions and more (local Docker image or the hosted api.githubcopilot.com/mcp/ en
Microsoft Learn Docs
Microsoft's official hosted MCP server for searching and reading Microsoft Learn documentation and code samples (Azure, .NET, Microsoft 365 and more).
Sources
- https://code.visualstudio.com/docs/agent-customization/mcp-servers
- https://code.visualstudio.com/docs/agents/reference/mcp-configuration
- Support `${secret:<id>}` in `.mcp.json` and `mcp-config.json` for Copilot sessions (GitHub issue, 2 comments)
- [Bug]: Generated .vscode/mcp.json uses incorrect key "mcpServers" instead of "servers" (GitHub issue, 2 comments)