mcp-csharp-debug

仓库创建 2026年2月4日最近提交 18 小时前SkillHot 收录 20 天前
▸ 精选理由

便于在本地复现协议交互并通过断点排查问题。

▸ 风险提示

运行服务器会打开端口并执行本地代码,注意网络暴露和权限。

这个 Skill 做什么

本地运行并调试 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).

开发编程MCP调试本地运行通用
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-debug/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-debug/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有