講座 › 分野2 ツール設計とMCP統合
2.4 MCPサーバーの統合
配点 3.6%MCP server integration
チームで共有するサーバーは、プロジェクトの設定ファイルに。個人の実験用は、ユーザーの設定に。秘密は環境変数で渡す。
未読
設定の置き場所で、共有の範囲が決まる 読了

プロジェクト用の .mcp.json は、プロジェクトの根に置き、版管理に入れて、チーム全員で同じツールを使えるようにします。個人用や実験用のサーバーは、ユーザーの設定 ~/.claude.json に置き、自分だけで使います。
出典:Connect Claude Code to tools via MCP
Project-scoped servers enable team collaboration by storing configurations in a .mcp.json file at your project's root directory.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
出典:Connect Claude Code to tools via MCP
Check .mcp.json into version control so everyone on your team gets the same MCP tools and services.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
出典:Connect Claude Code to tools via MCP
User-scoped servers are stored in ~/.claude.json and provide cross-project accessibility, making them available across all projects on your machine while remaining private to your user account.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
出典:Connect Claude Code to tools via MCP
Use local scope for personal development servers, experimental configurations, or servers with credentials you don't want in version control.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
秘密は、環境変数の展開で渡す 読了

.mcp.json の中では、${VAR} の形で環境変数を参照できます。トークンそのものをファイルに書かずに済むので、版管理に入れても安全です。
出典:Connect Claude Code to tools via MCP
Claude Code supports environment variable expansion in .mcp.json files, allowing teams to share configurations while maintaining flexibility for machine-specific paths and sensitive values like API keys.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
出典:Connect Claude Code to tools via MCP
${VAR}: expands to the value of environment variable VARhttps://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
すべてのサーバーのツールが、同時に使える 読了

設定したすべてのサーバーのツールは、接続したときに発見され、エージェントが同時に使えます。同じ名前のサーバーが複数の場所にあるときは、優先順位の高い定義が1つだけ使われます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
That tools from all configured MCP servers are discovered at connection time and available simultaneously to the agenthttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Connect Claude Code to tools via MCP
When the same server is defined in more than one place, Claude Code connects to it once, using the definition from the highest-precedence source.https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)
MCPのツールを使ってもらうための説明 読了

組み込みの Grep のほうが手近だと、エージェントは、より高機能なMCPのツールを避けてしまうことがあります。MCPツールの説明に、能力と出力を詳しく書いて、使う理由を伝えます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Enhancing MCP tool descriptions to explain capabilities and outputs in detail, preventing the agent from preferring built-in tools (like Grep) over more capable MCP toolshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
リソースで、全体像を先に見せる 読了

MCPのリソースは、ファイルやデータベースのスキーマのような、読み取り専用の情報を提供します。課題の一覧や文書の階層のような目録をリソースにして見せれば、探り回る呼び出しが減ります。
出典:MCP 仕様:Resources
Resources allow servers to share data that provides context to language models, such as files, database schemas, or application-specific information.https://modelcontextprotocol.io/specification/2026-07-28/server/resour…(取得 2026-11-20)
出典:MCP:Understanding MCP servers
Passive data sources that provide read-only access to information for context, such as file contents, database schemas, or API documentation.https://modelcontextprotocol.io/docs/2026-07-28/learn/server-concepts.…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Exposing content catalogs as MCP resources to give agents visibility into available data without requiring exploratory tool callshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
標準の連携は、既存のサーバーで 読了

Jira のような標準的な連携は、既存のコミュニティのサーバーを使います。自作は、そのチーム独自の業務の流れに取っておきます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Choosing existing community MCP servers over custom implementations for standard integrations (e.g., Jira), reserving custom servers for team-specific workflowshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
試験のポイント
- 共有は .mcp.json(プロジェクト)、個人は ~/.claude.json(ユーザー)。
出典:Connect Claude Code to tools via MCP
Check .mcp.json into version control so everyone on your team gets the same MCP tools and services.
https://code.claude.com/docs/en/mcp.md(取得 2026-11-20)出典:Connect Claude Code to tools via MCP
User-scoped servers are stored in ~/.claude.json and provide cross-project accessibility, making them available across all projects on your machine while remaining private to your user account.
https://code.claude.com/docs/en/mcp.md(取得 2026-11-20) - 秘密は、${VAR} の環境変数の展開で渡し、ファイルに書かない。
出典:Connect Claude Code to tools via MCP
Claude Code supports environment variable expansion in .mcp.json files, allowing teams to share configurations while maintaining flexibility for machine-specific paths and sensitive values like API keys.
https://code.claude.com/docs/en/mcp.md(取得 2026-11-20) - 目録はリソースで見せ、標準の連携は既存のサーバーを使う。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Exposing content catalogs as MCP resources to give agents visibility into available data without requiring exploratory tool calls
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)