Connecting MCP servers to coding agents
For engineers
Adding, vetting, scoping and debugging MCP servers so a coding agent gains tools without gaining needless risk
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A teammate and you both need the same hosted MCP server, and it needs an API key. Where should the key live?
Check yourself · 2 of 5
Which check best catches a server whose tool tells the model to quietly send your files elsewhere?
Check yourself · 3 of 5
A deny rule and an allow rule both match the same MCP tool. In Claude Code, what happens?
Check yourself · 4 of 5
Why does an unused MCP tool still cost you something?
Check yourself · 5 of 5
A log shows 401 invalid_token from a remote MCP server. Which layer failed?
Topics
- Configuring local and remote MCP servers4 min read · Local stdio and remote HTTP servers, user versus project scope, environment variables for secrets and OAuth sign-in
- Vetting an MCP server before connecting it4 min read · Publisher, source, registry listing, pinned versions, requested scopes and tool descriptions that hide instructions
- Limiting which MCP tools an agent may call4 min read · Per-tool allow and deny rules, read-only tokens, and disabling tools the task does not need
- The context cost of many connected tools4 min read · Tool definitions consume tokens on every turn; deferred tool loading and plain CLI commands as alternatives
- Debugging failed MCP connections and tool calls4 min read · Server logs, the inspector, expired auth, schema mismatches and timeouts
Start here
- Connect Claude Code to tools via MCP (Claude Code docs) (opens in a new tab)DocsFree
Exact commands, scopes, environment-variable expansion and authentication for adding servers.
- MCP security best practices (opens in a new tab)DocsFree
The protocol's own list of attacks on servers and clients, with the mitigations to apply.
- MCP Inspector (opens in a new tab)DocsFree
A standalone tool to call a server's tools by hand and see raw requests and errors.
110 questions · last verified 2026-12