github / github/copilot-cli

MCP server unavailable is reported as "waiting on ide" and hangs copilot-cli

オープン
#4,552 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the bug

If you have an entry like this in your ~/.copilot/mcp-config.json

    "dummy": {
      "tools": [
        "*"
      ],
      "type": "http",
      "url": "http://bextop17:4000/mcp",
      "headers": {
        "Authorization": "Bearer token"
      }
    }

And the host is unavailable (it is in DNS but the system as a whole is unreachable) then copilot will hang on startup eventually showing the message "waiting on ide." IDE is not in use.

Important: using a non-existent dns name will NOT recreate this error. The host must be defined in DNS and not available. Using an existing host with a down service (system up, but port not) will NOT recreate this. My tests were confirmed by unplugging a system next to me's ethernet cable.

Affected version

GitHub Copilot CLI 1.0.81-6

Steps to reproduce the behavior
  1. Define an mcp server for a system that has a valid dns name but is not on the network
  2. start copilot cli
  3. see error
Expected behavior

The cli should report the correct error message and not hang on a missing mcp server.

Additional context

This is on MacOS 15.7.7 (24G720) connecting to an mcp server on my local network which I had unplugged from the network for $reasons. This left the name in DNS but the system unavailable.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

設定された MCP サーバーに接続する CLI の起動パスから始め、ネットワーク上で到達できない DNS 解決可能なホストを使って問題を再現します。完了条件は、CLI が MCP 接続の失敗を正確に報告し、ハングしたり誤って "waiting on ide." と表示したりせずに処理を続行することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos
領域
cli, networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。