Every MCP tutorial ends with "add this to your config". Then you switch editors, and nothing works.
I have written the same GitHub MCP server into five files this month:
| file | top-level | remote server | variables | |
|---|---|---|---|---|
| Claude Desktop | claude_desktop_config.json |
mcpServers |
no | none |
| Claude Code | .mcp.json |
mcpServers |
type: http |
${VAR} |
| Cursor | .cursor/mcp.json |
mcpServers |
url |
${env:VAR} |
| VS Code | .vscode/mcp.json |
servers |
type: http |
${input:id} + inputs
|
| Codex | ~/.codex/config.toml |
[mcp_servers.*] |
url |
env_vars |
Same protocol, five dialects, and the failure mode is silence: the client starts, shows no tools, and logs nothing you will find.
The four things that actually differ
1. The container key. mcpServers for three clients, servers for VS Code, TOML tables for Codex. Copy a Cursor config into VS Code and you get a file that parses and does nothing.
2. Secret interpolation. This is the one that bites. The same token, four spellings:
| Client | What you write | What the client actually does |
|---|---|---|
| Cursor | ${env:GITHUB_TOKEN} |
reads the variable from the environment |
| Claude Code | ${GITHUB_TOKEN} |
reads the variable from the environment |
| VS Code |
${input:github-token} plus an inputs entry with password: true
|
prompts once, masked |
| Codex | env_vars = ["GITHUB_TOKEN"] |
passes it through; no interpolation |
Get it wrong and the literal string ${env:GITHUB_TOKEN} is sent as your token. The server answers 401, or accepts it as a header value and fails later.
3. Transports. Claude Desktop only launches stdio servers. If your config has a url, Desktop ignores it. Codex has streamable HTTP and stdio but no SSE. A "remote MCP server" is not portable, and no amount of copying fixes that — you need a stdio proxy or a different client.
4. Strictness. VS Code and Cursor read JSONC: comments, trailing commas. Claude Desktop and Codex read strict JSON/TOML. A config with one // comment is a config that half your tools reject.
What breaks silently
I collected the failures I hit, plus the ones I saw in other people's dotfiles:
-
"command": "npx -y @modelcontextprotocol/server-github"— commands are spawned directly, not through a shell. ENOENT, no log line. Arguments belong inargs. - A token pasted into
env— works until the file is in a dotfiles repo, a gist, or a screenshot. -
${GITHUB_TOKEN}with no export — the process starts with an empty string and the server fails on its first request. -
npx ...pkgwith no version — you are running whatever was published last night, with your filesystem access. - A remote server in Claude Desktop — supported nowhere, mentioned nowhere.
-
--dangerously-skip-permissionscopied from a blog post into a server that can write files.
None of these are syntax errors. The file parses. That is the problem.
Checking it instead of guessing
I wrote a small CLI for this, MCPDoctor. It reads any of the five formats, converts between them, and reports what will break. No dependencies, no network. One command: npx github:Change03/mcpdoctor doctor .cursor/mcp.json
It answers with a score and the reasons, not a wall of output:
- Cursor, 2 servers, score 76/100 (B), 1 error, 3 warnings.
-
SEC001postgresargs[2]— hardcoded password inside the connection URL (masked in the output). Fix: move it to${DATABASE_URL}and rotate it. -
SYN003— four trailing commas. Valid in Cursor, a parse error in Claude Desktop. -
PLH001sentry — uses${SENTRY_TOKEN}but nothing defines it.
Conversion translates those four differences instead of copying keys: npx github:Change03/mcpdoctor convert .cursor/mcp.json --to vscode
${env:SENTRY_TOKEN} becomes a declared inputs entry with password: true; a remote server heading to Claude Desktop is dropped with a warning that names it; Codex gets env_vars instead of a broken ${VAR}.
There is a browser version that does the same thing without sending your config anywhere: https://change03.github.io/mcpdoctor/ — paste, pick the target, read the findings. It is a static page; the parsing happens in the tab.
Honest limits
The doctor cannot see variables you export in your shell, so it reports those as "needs ${X}" rather than passing them. The secret detector is pattern-based (sk-, ghp_, xoxb-, AIza, JWTs, passwords in URLs) and will not catch a bespoke token format. Client formats drift; each adapter is one file. And none of this replaces reading the server's source before you give it your home directory.
The converter, the diagnostics and the 85 tests are MIT: https://github.com/Change03/mcpdoctor
I also packaged the parts I wanted next — fix (rewrite the file, extract secrets to ${VAR}, write a names-only .env.example), probe (resolve the binary, run the MCP handshake, report tool count or the exact failure), HTML/Markdown audit reports, 20 server recipes and client templates — as a $19 bundle, because that is how I pay for the time: https://hwmich5.gumroad.com/l/mcpdoctor
If your client reads a config dialect I got wrong, the table above is the thing to correct — the adapters are one file each, and I would rather fix it than have you debug a silent ENOENT.
Top comments (1)
The interpolation mismatch is the one I keep underestimating — pasting a Cursor
${env:VAR}into another client looks fine, then the literal string goes out as the token. I started keeping a tiny per-client snippet just for secrets and transports, and I stopped copying whole config files between editors. Thecommandset to a fullnpx -y ...string is another silent failure; splitting it into command plus args would have saved me an evening. Have you found any client that actually warns when a key is present but ignored?Change03, the table is the part I will keep — five dialects for one protocol, and the failure mode is silence, not a parse error. The interpolation row is the one that has bitten me: the literal string going out as the token, and the server answering 401, looks exactly like a wrong token, so you debug the secret instead of the spelling.
Two things I want to see next. First, the converter dropping a remote server bound for Claude Desktop "with a warning that names it" — a dropped server is the one loss a converter must not let you miss. Does convert exit non-zero when it drops one, so a dotfiles script or CI step cannot silently ship a config that is missing a server?
Second, the probe step is the real fix for the rest of this list: a config can score 100/100 and still 401 on the handshake, because no static check can tell you whether the token is live. You list probe with the packaged extras — does the free doctor have any handshake check at all, or does it stop at the static score? If it stops at the score, that is the gap worth closing first, because it is the only check that catches the failure your list describes most: everything parses, nothing works.