v0.1.0-preview.14
Pre-release
Pre-release
This release consolidates namespaces across the SDK, adds stateless Streamable HTTP support, improves exception diagnostics for stdio transports, and fixes resource registration. It includes several breaking changes to namespaces, factory method signatures, and transport APIs.
Breaking Changes
Refer to the C# SDK Versioning documentation for details on versioning and breaking change policies.
-
Namespace consolidation #410
ModelContextProtocol.Protocol.Messages,ModelContextProtocol.Protocol.Types, andModelContextProtocol.Protocol.Transportconsolidated intoModelContextProtocol.ProtocolModelContextProtocol.UtilsandModelContextProtocol.Utils.Jsonconsolidated intoModelContextProtocolandModelContextProtocol.ProtocolModelContextProtocol.SharedandModelContextProtocol.Hostingremoved- Update
usingdirectives to the new namespaces
-
Factory method parameter change #412
McpServerTool.Create,McpServerPrompt.Create, andMcpServerResource.Createoverloads changed fromTypeparameter toFunc<RequestContext<T>, object>factory delegate- Code calling these
Createmethods with aTypeargument must provide a factory function instead
-
Transport API changes #376
TransportBase.SetConnected(bool)replaced bySetConnected()andSetDisconnected(Exception?)CleanupAsync(CancellationToken)signature changed toCleanupAsync(Exception?, CancellationToken)onStreamClientSessionTransport- Several
InvalidOperationExceptionchanged toIOExceptionin transport error paths - Custom transport implementations extending
TransportBasemust update to the new protected API
-
Parameter rename in
WithResources#411WithResourcesparameter renamed fromresourcetemplatestoresourceTemplates- Code using named arguments must update to the new parameter name
What's Changed
- Update M.E.AI.Abstractions to 9.5.0-preview.1.25262.9 #412 by @stephentoub
- Add stateless Streamable HTTP support #392 by @halter73
- Fix McpServerResource registration #411 by @stephentoub
- Improve exception diagnostics for stdio client #376 by @stephentoub
- Clean up namespaces #410 by @stephentoub
Documentation Updates
- Make small corrections to release process docs #402 by @jeffhandley
Repository Infrastructure Updates
- Bump next version to preview.14 #403 by @jeffhandley
Acknowledgements
- @AArnott submitted issue #362 (resolved by #376)
- @ferosekhanj submitted issue #408 (resolved by #411)
- @eiriktsarpalis reviewed pull requests
Full Changelog: v0.1.0-preview.13...v0.1.0-preview.14