github / github/copilot-cli

MCP OAuth in headless session times out

未關閉
#3,039 0 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
area:authentication area:mcp
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
authentication, cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。