Skip to content

v0.1.0-preview.7

Pre-release
Pre-release

Choose a tag to compare

@eiriktsarpalis eiriktsarpalis released this 09 Apr 18:18
39ab6cd

This release removes McpServerConfig in favor of McpClientOptions, introduces strong typing for request parameters, adds the server completions capability, enables notification handler registration after endpoint creation, and adds the Everything Server sample.

Breaking Changes

Refer to the C# SDK Versioning documentation for details on versioning and breaking change policies.

  1. Allow notification handlers post-creation temporary registration #223
    • ClientCapabilities.NotificationHandlers and ServerCapabilities.NotificationHandlers delegate changed from Func<..., Task> to Func<..., CancellationToken, Task>
  2. Use strong-typing of params in most remaining McpClientExtensions methods #224
    • CallToolRequestParams.Arguments changed from Dictionary<string, JsonElement>? to IReadOnlyDictionary<string, JsonElement>?
    • GetPromptRequestParams.Arguments similarly changed
  3. Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly #230
    • McpServerConfig class deleted
    • McpClientFactory.CreateAsync parameter changed from McpServerConfig to IClientTransport
    • IClientTransport gained required Name property
  4. Add server completions capability #232
    • GetCompletionAsync renamed to CompleteAsync
    • WithGetCompletionHandler renamed to WithCompleteHandler

What's Changed

Documentation Updates

Repository Infrastructure Updates

Acknowledgements

Full Changelog: v0.1.0-preview.6...v0.1.0-preview.7