統合
MCP サーバー
ネットワーク自体が MCP を話します。サーバーとして追加すると、エージェントはメタツールを得ます。すなわち、他のあらゆるツールを利用前に評価する能力です。
利用可能なツール
| フィールド | 説明 |
|---|---|
| search_capabilities | タスクの記述に対してランク付きのケイパビリティを検索します。 |
| get_capability | ケイパビリティカードを取得します。インターフェース、アクション、最新のレディネス、エビデンスを含みます。 |
| preflight_capability | 特定のアクションがいま準備できているかを確認します。 |
| report_capability_outcome | 呼び出し後に結果が利用可能だったかを報告します。 |
| explain_readiness_score | スコアの背後にある、人間が読めるエビデンスの履歴を取得します。 |
クライアント設定
MCP クライアントの設定にサーバーを登録します(以下は stdio トランスポートの例です)。Claude Code、Cursor、Cline、CodeBuddy はいずれもこのパターンに従います。
mcp.json
{
"mcpServers": {
"capability-readiness": {
"command": "python",
"args": ["-m", "app.mcp_server.server"],
"env": {
"PUBLIC_API_BASE_URL": "https://api.example.com",
"API_KEY": "<your key>"
}
}
}
}ツールの使用
example
# Inside an MCP-enabled agent session:
# the agent calls the tool like any other —
search_capabilities(
query="extract tables from a PDF into CSV",
agent_runtime="claude-code",
risk_tolerance="read_only"
)
# → returns recommended / fallbacks / blocked with scores,
# evidence levels, and reason codes典型的なエージェントのポリシーは、タスクごとに 1 回検索し、各呼び出しの前にプリフライトを行い、各呼び出しの後に結果を報告するというものです。結果の報告が、時間とともにより高品質な推奨を獲得させます。