MCP OAuth in headless session times out
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### 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_
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Ablauf von /mcp add gegen einen entfernten HTTPS MCP-Server in der beschriebenen headless Ubuntu 24 Docker-Umgebung nachzustellen. Verfolge den OAuth-Authentifizierungspfad, um festzustellen, wie die Verfügbarkeit eines Browsers erkannt wird und ob MCP den Device Flow unterstützt. Als abgeschlossen gilt die Aufgabe, wenn headless-Sitzungen nicht mehr unbegrenzt auf einen Browser warten und dem unterstützten Authentifizierungsergebnis folgen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- authentication, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100