MCP C# SDK 1.4.1 release notes
MCP C# SDK 1.4.1 was released on July 9, 2026. The latest version is 2.4.0.
Release notes
This release backports a memory-leak fix for HTTP/SSE-based MCP servers. StreamableHttpServerTransport now releases its Server-Sent Events response stream reference as soon as a GET request ends, instead of holding it until the session is disposed via explicit DELETE or idle timeout. Long-lived SSE clients that disconnect without sending DELETE no longer pin the underlying Kestrel connection and its associated memory-pool buffers (~20 MiB per session), preventing the sustained memory growth that could accumulate under connect/disconnect churn.
What's Changed
- Release SSE response stream reference when GET request ends #1628 by @halter73 (co-authored by @joelmforsyth @Copilot)
Acknowledgements
- @slomangino123 submitted issue #766 (resolved by #1628)
Full Changelog: https://github.com/modelcontextprotocol/csharp-sdk/compare/v1.4.0...v1.4.1
Source: GitHub release v1.4.1