Copilot CLI 1.0.79-1 fails MCP initialization when `server/discover` returns `-32602`
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
Copilot CLI 1.0.79-1 cannot connect to an MCP server built with FastMCP.
Before MCP initialization completes, the CLI sends a server/discover request. FastMCP does not implement this method and returns -32602 Invalid request parameters. Copilot treats that response as a fatal lifecycle negotiation error and aborts initialization.
The same server and configuration work without issue in Copilot CLI 1.0.78.
Affected version
1.0.79-1
Steps to reproduce the behavior
- Configure the MCP server as shown in "Additional Context".
- Start Copilot CLI 1.0.79-1.
- Observe the CLI sending
server/discover. - FastMCP rejects the unsupported request.
- Copilot aborts MCP lifecycle negotiation before
initializecompletes.
Expected behavior
An unsupported optional server/discover request should not block normal MCP initialization.
If the server returns an error for the probe, Copilot should continue with the standard initialize lifecycle rather than treating the response as fatal.
In particular, this should not depend on the server returning exactly -32601 Method not found. FastMCP currently returns -32602 because the request does not match any supported ClientRequest schema.
Additional context
MCP configuration
Values have been redacted:
{
"mcpServers": {
"fabric-rti-mcp": {
"command": "uvx",
"args": ["microsoft-fabric-rti-mcp"],
"env": {
"KUSTO_SERVICE_URI": "<redacted>",
"KUSTO_SERVICE_DEFAULT_DB": "<redacted>",
"FABRIC_API_BASE": "<redacted>"
}
}
}
}
More Details
Another MCP implementation returns:
Method 'server/discover' is not available.
Copilot tolerates that response and continues initialization.
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 tracciando il flusso di inizializzazione di MCP che invia la richiesta server/discover, quindi confronta la gestione della risposta -32602 con la risposta tollerata “Method not found” descritta qui. Il lavoro è completato quando una probe non supportata non interrompe più l’inizializzazione e la configurazione FastMCP può completare il ciclo di vita standard di initialize.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 65/100