dotnet/skills
Débogage de serveurs MCP en C#
MCP Csharp Debug
3 070e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Vous guide dans tout le workflow de débogage local des serveurs MCP en C#, du premier `dotnet run` à la pose de points d'arrêt dans VS Code ou Visual Studio. Couvre le piège stdio (tout ce qui est écrit sur stdout corrompt le protocole JSON-RPC).
Voir la description originale (anglais)
This walks you through the entire local debugging workflow for C# MCP servers, from first `dotnet run` to setting breakpoints in VS Code or Visual Studio. It covers the critical stdio gotcha (anything on stdout corrupts the JSON-RPC protocol), shows how to test tools with MCP Inspector, and explains why your tools might not appear in GitHub Copilot (usually stale build, missing attributes, or wrong registration). The troubleshooting section is solid, with specific checks for tool discovery issues and diagnostic steps when things fail. If you're fighting with tool registration or wondering why your server works standalone but breaks through MCP, start here.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.