mcpServers or servers? VS Code, Zed and Codex ignore the other apps' key
An MCP config copied from one app does nothing in another, because each keeps its servers under its own key. The key for each app, side by side.
You copy an entry that works in Cursor into VS Code, and VS Code shows no server at all. No error either. The entry is fine; it sits under a key VS Code never reads.
The key each app reads
| App | File | Key |
|---|---|---|
| Claude Code | .mcp.json |
mcpServers |
| Cursor | .cursor/mcp.json |
mcpServers |
| Claude Desktop | claude_desktop_config.json |
mcpServers |
| Cline | its MCP settings file | mcpServers |
| Gemini CLI | .gemini/settings.json |
mcpServers |
| VS Code | .vscode/mcp.json |
servers |
| Zed | settings.json |
context_servers |
| Codex | ~/.codex/config.toml |
[mcp_servers.NAME], in TOML |
An app that finds no key of its own in the file reads it as a file with no servers. It doesn't warn you about the key it doesn't know.
The same server, three ways
For Cursor and Claude Code (Claude Code also wants "type": "http" in the entry):
{
"mcpServers": {
"hamloy": {
"url": "https://hamloy.com/mcp"
}
}
}
For VS Code, the key is servers and each entry says its type:
{
"servers": {
"hamloy": {
"type": "http",
"url": "https://hamloy.com/mcp"
}
}
}
For Codex, the file is TOML, with a table per server and an underscore in mcp_servers:
[mcp_servers.hamloy]
url = "https://hamloy.com/mcp"
You rarely need to write Codex's by hand: codex mcp add hamloy --url https://hamloy.com/mcp writes it.
One more place a copied entry goes wrong
Claude Desktop's claude_desktop_config.json uses mcpServers too, but only for programs that run on your computer. A server with an address, like Hamloy, is added in the app under Customize › Connectors, not in the file.
Check that it worked
Paste the file into the MCP Config Validator and pick your app. With the wrong key it says so, with the line:
Wrong Line 2 VS Code reads its servers from "servers", and this file has "mcpServers",
which is what Claude Code, Claude Desktop, Cursor, Cline and Gemini CLI read.
Rename the key to "servers".
Then start the app again and ask "What's open in Hamloy?" Each app's own page has its entry in full: VS Code, Cursor, Claude Code, Codex, Zed. The key is right and it still can't connect? See The wrong type.