mcp-csharp-debug
便于在本地复现协议交互并通过断点排查问题。
运行服务器会打开端口并执行本地代码,注意网络暴露和权限。
本地运行并调试 C# MCP 服务器,支持 IDE、断点和 MCP Inspector 测试。
在本机启动并调试 C# MCP 服务,支持在 VS Code/Visual Studio 设断点、查看日志并用 MCP Inspector 做协议级测试。适合第一次运行服务、排查工具注册、协议消息或上下文传递问题时使用,也能配合 GitHub Copilot Agent Mode 联调。把本地运行、日志与调试流程打通,方便快速定位问题。
▸ 展开 SKILL.md 英文原文
Run and debug C# MCP servers locally. Covers IDE configuration, MCP Inspector testing, GitHub Copilot Agent Mode integration, logging setup, and troubleshooting. USE FOR: running MCP servers locally with dotnet run, configuring VS Code or Visual Studio for MCP debugging, testing tools with MCP Inspector, testing with GitHub Copilot Agent Mode, diagnosing tool registration issues, setting up mcp.json configuration, debugging MCP protocol messages, configuring logging for stdio and HTTP servers. DO NOT USE FOR: creating new MCP servers (use mcp-csharp-create), writing automated tests (use mcp-csharp-test), publishing or deploying to production (use mcp-csharp-publish).
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-debug/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-debug/SKILL.md"# C# MCP Server Debugging Run, debug, and interactively test C# MCP servers. Covers local execution, IDE debugging with breakpoints, MCP Inspector for protocol-level testing, and GitHub Copilot Agent Mode integration. ## When to Use - Running an MCP server locally for the first time - Configuring VS Code or Visual Studio to debug an MCP server - Testing tools interactively with MCP Inspector - Verifying tools appear in GitHub Copilot Agent Mode - Diagnosing issues: tools not discovered, protocol errors, server crashes - Setting up `mcp.json` or `.mcp.json` configuration ## Stop Signals - **No project yet?** → Use `mcp-csharp-create` first - **Need automated tests?** → Use `mcp-csharp-te