Developer Tools
MCP C# SDK 2.0 Embraces Stateless HTTP Architecture with Multi Round-Trip Requests
Microsoft's new MCP C# SDK version shifts to stateless HTTP servers by default and introduces interactive request handling to improve how LLMs access context and tools.
InfoQ
Microsoft has released version 2.0 of the MCP C# SDK, a major update that restructures how the Model Context Protocol operates over HTTP. Built on ASP.NET Core and maintained with Microsoft, the SDK now implements the July 2026 revision of the MCP specification—described as the protocol's most substantial iteration to date.
Moving to Stateless Architecture#
The most significant change replaces server-side session management with a completely stateless design. HTTP servers now default to stateless operation, eliminating the need for sticky routing or shared session stores. Protocol version and capability information now travel with every incoming request, allowing any server instance to process any request independently.
The redesign removes several legacy mechanisms. The initialize handshake and Mcp-Session-Id header are no longer used. Infrastructure code can now configure statelessness with HttpServerTransportOptions.Stateless set to true by default; servers requiring traditional sessions can opt back in by setting it to false. Clients automatically probe the /server/discover endpoint and gracefully fall back to legacy handshakes when connecting to older servers.
Intelligent Request Routing and MRTR#
Headers now carry metadata that load balancers and gateways can leverage for routing. Requests include Mcp-Method and Mcp-Name headers, and developers can tag specific tool parameters with the [McpHeader] attribute to promote them to HTTP headers. This allows infrastructure to route MCP traffic based on header inspection alone, without parsing message bodies. The server validates that header values match request bodies and returns a HeaderMismatch error if discrepancies occur.
The elimination of stateful channels introduced a fresh challenge: how should tools collect user input mid-execution? Multi Round-Trip Requests (MRTR) solve this by letting tools throw an InputRequiredException containing one or more input requests. The client receives these requests, collects responses, and re-issues the call with inputResponses. The McpClient handles this flow automatically when developers register handlers. For compatibility, the SDK bridges older stateful sessions to legacy server-initiated input requests, though stateless connections raise an if tools attempt the old pattern.

