MCP server unavailable is reported as "waiting on ide" and hangs copilot-cli
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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
- Define an mcp server for a system that has a valid dns name but is not on the network
- start copilot cli
- 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem CLI-Startup-Pfad, der eine Verbindung zu konfigurierten MCP-Servern herstellt, und reproduziere dann das Problem mit einem DNS-auflösbaren Host, der im Netzwerk nicht erreichbar ist. Erledigt ist die Aufgabe, wenn die CLI den MCP-Verbindungsfehler korrekt meldet und ohne Hängenbleiben oder fälschliches Anzeigen von "waiting on ide." fortfährt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos
- Bereich
- cli, networking
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100