v0.1.0-preview.7
Pre-release
Pre-release
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.
- Allow notification handlers post-creation temporary registration #223
ClientCapabilities.NotificationHandlersandServerCapabilities.NotificationHandlersdelegate changed fromFunc<..., Task>toFunc<..., CancellationToken, Task>
- Use strong-typing of params in most remaining McpClientExtensions methods #224
CallToolRequestParams.Argumentschanged fromDictionary<string, JsonElement>?toIReadOnlyDictionary<string, JsonElement>?GetPromptRequestParams.Argumentssimilarly changed
- Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly #230
McpServerConfigclass deletedMcpClientFactory.CreateAsyncparameter changed fromMcpServerConfigtoIClientTransportIClientTransportgained requiredNameproperty
- Add server completions capability #232
GetCompletionAsyncrenamed toCompleteAsyncWithGetCompletionHandlerrenamed toWithCompleteHandler
What's Changed
- Fix api.weather.gov/points response handling in WeatherTools #134 by @stvansolano (co-authored by @halter73)
- Everything server #151 by @aaronpowell
- Fix and enhance cancellation operations across MCP Sessions #179 by @Tyler-R-Kendrick (co-authored by @stephentoub)
- Propagate fix from AIFunctionFactory to TemporaryAIFunctionFactory #215 by @stephentoub
- Allow notification handlers post-creation temporary registration #223 by @stephentoub
- Use strong-typing of params in most remaining McpClientExtensions methods #224 by @stephentoub
- Use Kestrel for all in-memory HTTP tests #225 by @halter73
- Stop the host when the single session server service finishes #226 by @stephentoub
- Enable servers to log to the clients via ILogger #229 by @stephentoub
- Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly #230 by @eiriktsarpalis (co-authored by @halter73)
- Add server completions capability #232 by @stephentoub
- Fix race in KestrelInMemoryConnection #233 by @halter73
- Fix StdioServerTransport.DisposeAsync hang #235 by @halter73
- Update M.E.AI to latest version #241 by @stephentoub
- Avoid propagating server tool exception message to client #242 by @stephentoub
- Fixes #248 - Add CultureInfo.InvariantCulture to string interpolation #249 by @DGuhr
- Improve SSE response handling and URI construction in SseClientSession #251 by @239573049
- Use TryAddEnumerable for McpServerOptionsSetup #252 by @halter73
- Fix race in TransportBase.SetConnected #253 by @halter73
- Separate ASP.NET Core tests into a distinct project and make the main test project netfx compatible #254 by @eiriktsarpalis (co-authored by @halter73)
Documentation Updates
- Add SECURITY.md #239 by @jeffhandley
Repository Infrastructure Updates
- Bump package version to 0.1.0-preview.7 #212 by @eiriktsarpalis
- Bump xunit.v3 to 2.0.0 #231 by @eiriktsarpalis
- Update markdown-link-check to ignore external links causing 403 in CI #246 by @jeffhandley
Acknowledgements
- @DGuhr made their first contribution in #249
- @239573049 made their first contribution in #251
- @chuckries submitted #214 (resolved by #215)
- @StefH submitted #155 (resolved by #226)
- @mbcrawfo submitted #221 (resolved by #235)
- @dsp-ant @PederHP @tripathi-gaurav reviewed pull requests
Full Changelog: v0.1.0-preview.6...v0.1.0-preview.7