MCP OAuth in headless session times out
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
### 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_
Guia de contribuição
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- shell
- Domínio
- authentication, cli
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100