Learn · Tool design & MCP · CCAR-F task 2.4

MCP servers in Claude Code and agents

Connect tools and data once with MCP: transports, scopes, .mcp.json with env vars, tool names and where MCP fits in the SDK and API.

Key ideas

Worked example: Team server plus personal server

The team's GitHub server lives in the repo's .mcp.json with ${GITHUB_TOKEN}; a developer's experimental server is added at user scope in ~/.claude.json. Both connect in the same session, and their tools are discovered at connect time.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Explicit criteria beat vague instructions