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
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
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