github / github/copilot-cli

MCP OAuth in headless session times out

オープン
#3,039 コメント 0 件 リアクション 4 件 担当者 0 名 GitHub で見る
area:authentication area:mcp
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。