Copilot CLI 1.0.79-1 fails MCP initialization when `server/discover` returns `-32602`
Personne n'a encore pris cette issue.
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par suivre le flux d’initialisation de MCP qui envoie la requête server/discover, puis comparez le traitement de la réponse -32602 avec la réponse « Method not found » tolérée décrite ici. C’est terminé lorsqu’une sonde non prise en charge n’interrompt plus l’initialisation et que la configuration FastMCP peut terminer le cycle de vie standard de initialize.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 65/100