Tip: Annotate MCP Tool Parameters With [McpHeader] So Ordinary Load Balancers Can Route Agent Traffic
.NET Blog·medium signal
The stateless spec's practical payoff is that a remote MCP server that previously needed sticky sessions, a shared session store, and deep packet inspection at the gateway can now sit behind a plain round-robin load balancer. In the C# SDK you promote a parameter to an HTTP header with the [McpHeader] attribute, letting the router make decisions without parsing the JSON-RPC body, and clients can cache tools/list responses for as long as the server's ttlMs permits.