github modelcontextprotocol/csharp-sdk v1.4.1

latest releases: v2.4.0, v2.3.1, v1.4.2...
4 months ago

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

Acknowledgements

Full Changelog: v1.4.0...v1.4.1

Don't miss a new csharp-sdk release

NewReleases is sending notifications on new releases.