MCP OAuth in headless session times out
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
### Describe the bug
When performing OAuth authentication against a remote https mcp server on a machine without browser, it spins waiting to open a browser and eventually times out and fails.
### Affected version
v1.0.40-0
### Steps to reproduce the behavior
Created a basic ubuntu 24 docker image with no UI elements that I can ssh into, install copilot cli, and run through the /mcp add flow. It will fail during the authentication step.
### Expected behavior
Ideally would like a fast fail if it can't identify a browser, and then device flow for oauth (assuming it's supported by the mcp)
### Additional context
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il flusso di /mcp add verso un server MCP HTTPS remoto nella configurazione Docker Ubuntu 24 headless descritta. Traccia il percorso di autenticazione OAuth per determinare come viene rilevata la disponibilità del browser e se MCP supporta device flow. Il lavoro è completato quando le sessioni headless non aspettano più indefinitamente un browser e seguono l’esito di autenticazione supportato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- 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
- 45/100