Skip to content
AgenticAIWiki
  1. Learn
  2. Part 7. Tool design and MCP
  3. Chapter 36

Configuring MCP

5 lessons · 25 min

From .mcp.json to a running server

Full screen
config.mcp.jsonin the repo, sharedClaude Codeexpands at startupjson// .mcp.json (committed, project scope){ "mcpServers": { "tracker": { "command": "npx", "args": ["-y", "@example/tracker-mcp"], "env": { "TRACKER_TOKEN": "${TRACKER_TOKEN}", "TRACKER_URL": "${TRACKER_URL:-https://tracker.example.com}" } } }}

Swipe to change step

Step 1 of 7. The team commits .mcp.json at the project root. Everyone gets the same servers. It must work for each person without holding anyone's secrets. .mcp.json (in the repo, shared), highlighted. Claude Code (expands at startup). arrow from .mcp.json to Claude Code, labelled config.

In this chapter

  1. 36.1The `.mcp.json` file and scopes4 min read
  2. 36.2Environment variable expansion and secrets4 min read
  3. 36.3Splitting tools across agents4 min read
  4. 36.4Debugging an MCP server that won't connect5 min read
  5. 36.5MCP authorization: OAuth 2.1 and client identity8 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…