Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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. D
68% 100%+32 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 15 of 22 without it.
I am developing a C# MCP server in Visual Studio 2022 (not VS Code). I want to add an MCP configuration file so local tools can discover my server. Where should this file be created and what is its exact file name?
Places the config file as .mcp.json at the solution root directory.
3 of 3 safety checks passed
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.
mcp.json or .mcp.json configurationmcp-csharp-create firstmcp-csharp-testmcp-csharp-publish| Input | Required | Description |
|---|---|---|
| Project path | Yes | Path to the .csproj file or project directory |
| Transport type | Recommended | stdio or http — detect from .csproj if not specified |
| IDE | Recommended | VS Code or Visual Studio — detect from environment if not specified |
Agent behavior: Detect transport type by checking the .csproj for a PackageReference to ModelContextProtocol.AspNetCore. If present → HTTP, otherwise → stdio.
stdio transport:
cd <ProjectDir>
dotnet run
The process starts and waits for JSON-RPC messages on stdin. No output on stdout means it's working correctly.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.