Local MCP Server freee API local files CLI / env local token Localが得意な場面 • ローカルファイル / CLI / IDE • PoC・開発者向け利用 • ユーザー環境に閉じた連携 価値検証の入り口として強い MCP Architecture: local MCP servers with stdio typically serve a single MCP client; filesystem server is an example of a local MCP server.
Client Y User C Client Z Remote MCP Server サービス提供者が運用 Authorization Server freee API Remote化で変わること 「サーバーを置く場所」ではなく 「責任境界」の変更 MCP Transports: Streamable HTTP can handle multiple client connections and supports standard HTTP authentication methods, OAuth recommended. サービス提供者 AI Platform
/ preregistration / Dynamic Client Registration are described as client registration approaches. MCP Client A / B / C client_id metadata / dcr Authorization Server Remote MCP Server 仕様上の選択肢を選ぶだけではなく、サービスとしての trust policyが必要になる。 未知のクライアントを許すのか。 redirect_uriをどう検証するのか。 認可画面に何を表示するのか。 3rd partyと分けて管理するのか。
include resource parameter; MCP servers MUST validate tokens were issued for their intended audience and MUST NOT accept/transit other tokens. 良い境界 MCP Client Remote MCP resource=mcp freee API 適切な境界で呼ぶ 危ない境界 MCP Client freee API 別audienceの token? × 問い 誰が 検証する? どの audience? 上流APIに は 何を渡す?
include required scopes and clients should attempt step-up authorization when appropriate. User AI Host MCP Client Remote MCP Server freee API 403 insufficient_scope 追加認可が必要? / どのscopeが足りない? / AIはユーザーにどう説明する? / リトライしてよい?