v0.1.0-preview.3
Pre-release
Pre-release
This release overhauls the resource system, refactors transports for graceful shutdown, introduces prompt support with McpServerPrompt and McpClientPrompt, and adds progress reporting and annotation support.
Breaking Changes
Refer to the C# SDK Versioning documentation for details on versioning and breaking change policies.
- Add ToolAnnotations support #124
McpServerToolAttributeconstructor no longer accepts a positional string; must useName = "..."instead
- Overhaul of Resources #125
ResourceContentschanged to an abstract class;TextandBlobproperties removed- Must use
TextResourceContentsorBlobResourceContentssubclasses instead
- Add [McpServerPrompt] support #126
ListPromptsAsyncreturn type changedGetPromptAsyncparameter type changedIMcpServerBuildernamespace moved- All
With*Handlerextension methods deleted
- Add missing Annotations #138
Annotatedabstract record base class deletedAnnotationsproperty inlined intoContent,Resource, andResourceTemplate
- Refactor transports to help enable graceful shutdown #142
McpServerHostedServicedeletedIClientTransport.ConnectAsyncnow returnsITransportinstead of the previous typeStartAsyncreplaced byRunAsync
- Improve progress reporting #145
OperationNamesclass deleted; replaced byRequestMethods
What's Changed
- Fix some issues with Native AOT #130 by @stephentoub
- Add ToolAnnotations support #124 by @stephentoub
- Add missing Annotations #138 by @stephentoub
- Remove Assembly.GetCallingAssembly #133 by @stephentoub
- Refactor transports to help enable graceful shutdown #142 by @halter73 (co-authored by @stephentoub)
- Overhaul of Resources #125 by @aaronpowell (co-authored by @stephentoub @PederHP)
- Fix binding to wrong overload in WithTools #152 by @stephentoub
- Improve progress reporting #145 by @stephentoub
- Add
[McpServerPrompt]support #126 by @stephentoub - Implement cancellation notifications #146 by @stephentoub
Documentation Updates
- Fix sample in README #136 by @BrennanConroy
Repository Infrastructure Updates
- Bump version to 0.1.0-preview.3 #162 by @jeffhandley
Acknowledgements
- @BrennanConroy made their first contribution in #136
- @stvansolano reviewed pull requests
Full Changelog: v0.1.0-preview.2...v0.1.0-preview.3