MCP OAuth 3LO (Authorization Code) fails with MCP error -32042: This request requires more information.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
### 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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema con una destinazione gateway MCP che utilizza OAuth 3LO e invoca uno strumento protetto, come descritto nell’issue. Inizia tracciando il modo in cui la CLI gestisce la risposta -32042 URLElicitationRequiredError; il lavoro è completo quando il client presenta l’URL di elicitation, consente all’utente di completare l’autenticazione in un browser e quindi permette di procedere con l’invocazione dello strumento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws
- Ambito
- authentication, cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 50/100