MCP Integration in Claude Code
Last reviewed
Correct answer: C. The connection is reported as failed, with no fallback to the sign-in flow at all.
Explanation
The principle — Supplying your own credential is a decision, and the client respects it rather than overriding it when it fails.
Why the key is correct — If you configured an authorization header for the server and the server rejects that header, Claude Code reports the connection as failed instead of falling back to OAuth. The documented remedy is to check that the token is valid for the endpoint, or to remove the header so the sign-in flow can be used instead.
Why the others are wrong — There is no quiet fallback, which is why leaving a bad header in place leaves the server broken. The two mechanisms are alternatives rather than additive. And the status is failed rather than needing authentication, which is the distinction that tells you the problem is in your configuration.
Remember this — Bring your own credential and you own the failure; remove the header to hand it back.
Sources — Anthropic's Claude Code MCP reference.
Sources
“If you configured headers.Authorization for the server and the server rejects that header, Claude Code reports the connection as failed instead of falling back to OAuth.”
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.