MCP Integration in Claude Code
Last reviewed
Correct answer: C. Both entries load as separate servers, because the three scopes match duplicates by name.
Explanation
The principle — What counts as a duplicate is a naming question, so renaming is not a workaround. It changes the answer.
Why the key is correct — The three scopes match duplicates by name. Two different names are therefore two different servers, and both load, each with its own tools listed under its own label. That may be what your colleague wants, but it is the opposite of avoiding a collision — it guarantees you connect to the endpoint twice.
Why the others are wrong — Matching across the three scopes is by name rather than by URL. There is no numeric-suffix disambiguation across scopes. And a collision does not stop the session; it is resolved quietly by precedence.
Remember this — Renaming does not dodge a collision so much as remove it, and what you get instead is two connections to one endpoint.
Sources — Anthropic's Claude Code MCP reference.
Sources
“The three scopes match duplicates by name.”
“When the same server is defined in more than one place, Claude Code connects to it once, using the definition from the highest-precedence source.”
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.