Claude認定 対策ノート

講座 › 分野3 統合

3.6 接続手段の選択

配点 2.4%Connection Mechanism Selection

MCP、APIやCLIの直接利用、エージェント間の受け渡しを、遅延、安全性、状態の持ち方の条件で比べ、条件が選ぶ手段を決める。

未読

MCPの構造と使いどころ

図解:MCPの構造と使いどころ

MCPは、ホスト、クライアント、サーバーの構造で、ホストは、サーバー1つにつきクライアントを1つ作って接続します。再利用できる標準の接続口を、複数のアプリで共有したい時に向きます。Messages APIからは、MCPのクライアントなしで、リモートのサーバーに直接つなげます。

出典:MCP:Architecture overview
The MCP host accomplishes this by creating one MCP client for each MCP server.
https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture.md(取得 2026-11-23)
出典:MCP:Architecture overview
* **MCP Host**: The AI application that coordinates and manages one or multiple MCP clients * **MCP Client**: A component that maintains a connection to an MCP server and obtains context from an MCP server for the MCP host to use * **MCP Server**: A program that provides context to MCP clients
https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture.md(取得 2026-11-23)
出典:MCP connector
Claude’s Model Context Protocol (MCP) connector feature allows you to connect to remote MCP servers directly from the Messages API without a separate MCP client.
https://platform.claude.com/docs/en/agents-and-tools/mcp-connector.md(取得 2026-11-23)

直接のAPIやCLIが向く場合

図解:直接のAPIやCLIが向く場合

決まった、単純な呼び出しだけで足りる場合は、標準の接続口を挟まない直接の呼び出しが、単純で速い選択です。MCPには、サーバーの運用や認可の仕組みという負担があります。道具は、他の開発者向けの関数ではなく、エージェント向けに設計します。

出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Evaluating MCP, direct API/CLI, and agent-to-agent handoff against scenario constraints on latency, security, and statefulness, and selecting the connection mechanism the constraints favor.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Writing effective tools for agents
instead of writing tools and MCP servers the way we’d write functions and APIs for other developers or systems, we need to design them for agents.
https://www.anthropic.com/research/writing-tools-for-agents(取得 2026-11-23)

MCPを使う時の工夫と安全

図解:MCPを使う時の工夫と安全

MCPのサーバーを、コードのAPIとして見せ、道具の直接の呼び出しにしない方法は、文脈の効率を上げます。ただし、実行環境の運用と安全の負担が増えます。ツールの注釈で、読み取りだけか、同じ引数で再実行しても安全かを示せます。MCPのツールは、承認を求める既定で扱われます。

出典:Code execution with MCP
a solution is to present MCP servers as code APIs rather than direct tool calls.
https://www.anthropic.com/research/code-execution-with-mcp(取得 2026-11-23)
出典:Code execution with MCP
These infrastructure requirements add operational overhead and security considerations that direct tool calls avoid.
https://www.anthropic.com/research/code-execution-with-mcp(取得 2026-11-23)
出典:Connect Claude Code to tools via MCP
`idempotentHint`**: the tool can change something, and calling it again with the same arguments is safe
https://code.claude.com/docs/en/mcp.md(取得 2026-11-23)
出典:Permission policies
Each toolset kind has its own default: the agent toolset defaults to `always_allow`, and MCP toolsets default to `always_ask`.
https://platform.claude.com/docs/en/managed-agents/permission-policies…(取得 2026-11-23)
試験のポイント