What problem does it solve?
The .NET MCP SDK went through years of preview packages and a v2 release that flipped key defaults, so unguided code generation often pins stale 0.x previews, applies 1.x-era stateful HTTP defaults, or recommends capabilities the 2026-07-28 spec deprecates (roots, sampling, MCP-channel logging). This Skill steers MCP server and client work in C#/.NET toward the current stable 2.x packages and correct transport, primitive, and deployment patterns.
Core Features & Use Cases
- Transport guidance: Covers STDIO servers (including the stdout/stderr JSON-RPC trap) and Streamable HTTP hosting in ASP.NET Core with MapMcp, stateless-by-default v2 behavior, OAuth, reverse-proxy buffering, and legacy SSE compatibility.
- Primitive references: Detailed patterns for tools, prompts, resources, elicitation (form and URL modes), MCP Apps interactive UI, completions, progress notifications, filters, and the deprecated sampling/roots paths with migration guidance.
- Client and testing support: Shows how to build a .NET MCP client over STDIO or HTTP, wire MCP tools into Microsoft.Extensions.AI pipelines, and test servers with MCP Inspector or in-memory transports.
- Use Case: When asked to "expose this .NET service as an MCP tool" or "build an MCP server in C#", the Skill loads the matching reference (packages, transport, tool primitive) and produces code that compiles against ModelContextProtocol 2.x with correct registration and descriptions.
Quick Start
Ask the assistant to create a new .NET MCP server with a tool, for example: "Build a C# MCP server with STDIO transport that exposes a weather lookup tool using the current ModelContextProtocol package."