Skip to content

v0.1.0-preview.3

Pre-release
Pre-release

Choose a tag to compare

@eiriktsarpalis eiriktsarpalis released this 31 Mar 18:30
330e526

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.

  1. Add ToolAnnotations support #124
    • McpServerToolAttribute constructor no longer accepts a positional string; must use Name = "..." instead
  2. Overhaul of Resources #125
    • ResourceContents changed to an abstract class; Text and Blob properties removed
    • Must use TextResourceContents or BlobResourceContents subclasses instead
  3. Add [McpServerPrompt] support #126
    • ListPromptsAsync return type changed
    • GetPromptAsync parameter type changed
    • IMcpServerBuilder namespace moved
    • All With*Handler extension methods deleted
  4. Add missing Annotations #138
    • Annotated abstract record base class deleted
    • Annotations property inlined into Content, Resource, and ResourceTemplate
  5. Refactor transports to help enable graceful shutdown #142
    • McpServerHostedService deleted
    • IClientTransport.ConnectAsync now returns ITransport instead of the previous type
    • StartAsync replaced by RunAsync
  6. Improve progress reporting #145
    • OperationNames class deleted; replaced by RequestMethods

What's Changed

Documentation Updates

Repository Infrastructure Updates

Acknowledgements

Full Changelog: v0.1.0-preview.2...v0.1.0-preview.3