MCP OAuth 3LO (Authorization Code) fails with MCP error -32042: This request requires more information.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
### 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
1. Configure an MCP server target with OAuth 3LO (Authorization Code grant) authentication
2. Connect GitHub Copilot CLI to an MCP gateway that includes this target
3. 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_
Guía de contribución
Línea de trabajo
Reproduce el fallo con un destino de gateway MCP usando OAuth 3LO e invoca una herramienta protegida, tal como se describe en el issue. Empieza rastreando cómo la CLI gestiona la respuesta -32042 URLElicitationRequiredError; el trabajo estará terminado cuando el cliente muestre la URL de elicitation, permita al usuario completar la autenticación en un navegador y, después, permita continuar con la invocación de la herramienta.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws
- Área
- authentication, cli
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 50/100