Imported from merceralex397-collab/alex-stack (
dev/my-skills/specific-skills/mcp-servers/build-mcp-server-dotnet/SKILL.md). Install upstream withnpx skills add merceralex397-collab/alex-stack --skill build-mcp-server-dotnet. Copyright stays with the author.
Build MCP Server — .NET
Route by lifecycle:
mcp-csharp-create— server shape, tools, modern HTTP, MRTR, Apps, Tasks, AOT, and MEAI.mcp-csharp-test— unit, integration, modern HTTP, and conformance coverage.mcp-csharp-publish—PackAsTool/dnx, MCPB, containers, and deployment.
Provenance: These subskills are derived from
dotnet/skills/plugins/dotnet-ai/skills/mcp-csharp-*under MIT. They are updated independently for MCP 2026-07-28. See../THIRD-PARTY-NOTICES.md.
Choose ModelContextProtocol 2.0.0 for new C# core work. Add ModelContextProtocol.Extensions.Apps or ModelContextProtocol.Extensions.Tasks 2.0.0 only when that extension is needed; neither is bundled into the core package. HTTP is stateless by default; MapMcp() plus WithHttpTransport() handles the modern endpoint. Do not expose McpProtocolVersions in application code: it is internal.