github / github/copilot-cli

MCP OAuth in headless session times out

Ouverte
#3,039 0 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
area:authentication area:mcp
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the /mcp add flow against a remote HTTPS MCP server in the headless Ubuntu 24 Docker setup described. Trace the OAuth authentication path to determine how browser availability is detected and whether the MCP supports device flow. Done means headless sessions no longer wait for a browser indefinitely and follow the supported authentication outcome.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
authentication, cli
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.