MCP OAuth 3LO (Authorization Code) fails with MCP error -32042: This request requires more information.
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Describe the bug
When connecting to an MCP Gateway that has targets configured with OAuth 3LO (Authorization Code grant), tool invocations fail with error -32042 because the client does not support URL elicitation required for the OAuth 3LO flow.
Client should show user URL to authenticate.
Affected version
GitHub Copilot CLI 1.0.78
Steps to reproduce the behavior
- Configure an MCP server target with OAuth 3LO (Authorization Code grant) authentication
- Connect GitHub Copilot CLI to an MCP gateway that includes this target
- Invoke any tool from the OAuth 3LO protected target
In this case AWS Bedrock AgentCore GW with MCP protocol version 2025-11-25 was used.
Correct behaviour has been verified with MCP inspector tool.
Expected behavior
Handle URLElicitationRequiredError (-32042) responses by presenting the elicitation URL to the user and allow the user to complete the OAuth flow in a browser.
Additional context
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue に記載されているとおり、OAuth 3LO を使用する MCP ゲートウェイターゲットで失敗を再現し、保護されたツールを呼び出します。まず、CLI が -32042 URLElicitationRequiredError 応答をどのように処理するかを追跡します。クライアントが elicitation URL を提示し、ユーザーがブラウザーで認証を完了でき、その後ツールの呼び出しを続行できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws
- 領域
- authentication, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100