Skip to content

v0.1.0-preview.14

Pre-release
Pre-release

Choose a tag to compare

@jeffhandley jeffhandley released this 15 May 02:12
106ab80

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.

  1. Namespace consolidation #410

    • ModelContextProtocol.Protocol.Messages, ModelContextProtocol.Protocol.Types, and ModelContextProtocol.Protocol.Transport consolidated into ModelContextProtocol.Protocol
    • ModelContextProtocol.Utils and ModelContextProtocol.Utils.Json consolidated into ModelContextProtocol and ModelContextProtocol.Protocol
    • ModelContextProtocol.Shared and ModelContextProtocol.Hosting removed
    • Update using directives to the new namespaces
  2. Factory method parameter change #412

    • McpServerTool.Create, McpServerPrompt.Create, and McpServerResource.Create overloads changed from Type parameter to Func<RequestContext<T>, object> factory delegate
    • Code calling these Create methods with a Type argument must provide a factory function instead
  3. Transport API changes #376

    • TransportBase.SetConnected(bool) replaced by SetConnected() and SetDisconnected(Exception?)
    • CleanupAsync(CancellationToken) signature changed to CleanupAsync(Exception?, CancellationToken) on StreamClientSessionTransport
    • Several InvalidOperationException changed to IOException in transport error paths
    • Custom transport implementations extending TransportBase must update to the new protected API
  4. Parameter rename in WithResources #411

    • WithResources parameter renamed from resourcetemplates to resourceTemplates
    • Code using named arguments must update to the new parameter name

What's Changed

Documentation Updates

Repository Infrastructure Updates

Acknowledgements

Full Changelog: v0.1.0-preview.13...v0.1.0-preview.14