MCP_SDK_GENERATION=v1 または MCP_PROTOCOL_NEGOTIATION=legacy)英語原文を表示
MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy)変更後
Bedrock、Vertex、Foundry、テレメトリ無効環境でも、他の環境と同じ v2 MCP クライアントと新しいプロトコル改訂 (2026-07-28) がデフォルトで使えるようになり、環境ごとの挙動の差異がなくなる。
このプロセスが MCP サーバーへの接続に使う MCP クライアントランタイムを固定する: MCP TypeScript SDK 1.x ベースの v1、または MCP TypeScript SDK 2.0 ベースの v2。変数を設定しない場合、Claude Code は v2 を使用し、そのセクションに記載されたバージョンから開始する。Claude Code v2.1.221 以降では、v2 ランタイムが MCP OAuth サーバーの認可レスポンスで返された issuer を検査し、一致しない場合は「Issuer mismatch in authorization response」で始まるエラーでサインインを失敗させる。v1 ランタイムはこの検査を行わない。認識できない値を設定した場合、Claude Code はそれを無視し、デバッグログに警告を書き込む。Claude Code はこの値をプロセスごとに 1 回だけ読み込む。Claude Code v2.1.218 以降が必要
Pin which MCP client runtime this process connects to MCP servers with: v1, built on MCP TypeScript SDK 1.x, or v2, built on MCP TypeScript SDK 2.0. Without the variable, Claude Code uses v2, starting with the versions listed in that section. On Claude Code v2.1.221 or later, the v2 runtime checks the issuer an MCP OAuth server returns in its authorization response and fails the sign-in with an error that begins Issuer mismatch in authorization response when it doesn't match. The v1 runtime doesn't run this check. If you set an unrecognized value, Claude Code ignores it and writes a warning to the debug log. Claude Code reads the value once per process. Requires Claude Code v2.1.218 or later
MCP_SDK_GENERATION=v1 または MCP_PROTOCOL_NEGOTIATION=legacy)MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy)変更後
Bedrock、Vertex、Foundry、テレメトリ無効環境でも、他の環境と同じ v2 MCP クライアントと新しいプロトコル改訂 (2026-07-28) がデフォルトで使えるようになり、環境ごとの挙動の差異がなくなる。