MCP OAuth 3LO (Authorization Code) fails with MCP error -32042: This request requires more information.
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện lỗi với một đích gateway MCP sử dụng OAuth 3LO và gọi một công cụ được bảo vệ, như được mô tả trong issue. Bắt đầu bằng cách theo dõi cách CLI xử lý phản hồi -32042 URLElicitationRequiredError; hoàn tất khi client hiển thị URL elicitation, cho phép người dùng hoàn tất xác thực trong trình duyệt, rồi cho phép tiếp tục gọi công cụ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws
- Lĩnh vực
- authentication, cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 50/100