MCP
Add, inspect, and troubleshoot MCP servers.
All answers
- How do I add an HTTP MCP server to Claude Code?
The exact command for a hosted MCP server, how to pass an auth token with --header, and which of the three scopes writes where.
- How do I check which MCP servers are connected?
Six connection statuses and what each one means, plus when to use the shell command and when to use the in-session panel.
- How do I pass environment variables to an MCP server?
Pass a key at add time with --env, or reference it in .mcp.json with ${VAR} so the file stays shareable. Which fields expand, and what an unset variable does.
- Why is my MCP server disconnected?
What separates Failed to connect from Connection error, what each HTTP code from a curl check tells you, and the startup timeout that looks like a failure.