MCP server unavailable is reported as "waiting on ide" and hangs copilot-cli
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal percorso di avvio della CLI che si connette ai server MCP configurati, quindi riproduci il problema usando un host risolvibile tramite DNS ma non raggiungibile sulla rete. Il lavoro è completato quando la CLI segnala accuratamente il fallimento della connessione MCP e continua senza bloccarsi né mostrare erroneamente "waiting on ide.".
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- macos
- Ambito
- cli, networking
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100