MCP Integration in Claude Code
Last reviewed
Correct answer: C. The path resolves against wherever each person launched Claude Code, not against the config file.
Explanation
The principle — A relative path is meaningless without a base, and the base here is a property of how each person started their session rather than of the file everybody shares.
Why the key is correct — Relative file paths in a command or its arguments are a frequent cause of a failing server, because they resolve against the directory you launched Claude Code from rather than the location of the configuration file. One teammate starts at the project root and the path resolves; the other starts a level down and it does not. The file is identical for both, which is exactly why the difference is confusing until you know this.
Why the others are wrong — Resolution is not relative to the configuration file, however sensible that would be. A permissions problem produces a refusal on a file that was located, not a failure to locate one. And the repository root is not the base unless it happens also to be where the session was started.
Remember this — In a shared config, use an absolute path or a command on the path — never a relative one.
Sources — Anthropic's Claude Code configuration debugging guide.
Sources
“Relative file paths in command or args are a frequent cause, since they resolve against the directory you launched Claude Code from rather than the location of .mcp.json.”
Practise 10 questions on this topic
Take MCP Integration in Claude Code — Timed Test 1 (10 questions) — scored instantly, explanation for every question, no login.