Overview
Update from ModelContextProtocol v0.5.0-preview.1 to v0.6.0-preview.1 and adopt new SDK features.
Release notes: https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v0.6.0-preview.1
Sub-Issues
Version Update
Key Features to Adopt
1. Fully-Qualified Type Names in Generated Signatures (#1135)
The SDK now uses fully-qualified type names in generated partial method signatures. This should resolve any ambiguity issues we've had with action enums in DotNetMcp.Actions.
2. CS1066 Suppressor for Optional Parameters (#1110)
The SDK now suppresses CS1066 warnings for MCP server methods with optional parameters.
3. Incremental Scope Consent - SEP-835 (#1084)
Support for incremental scope consent in authorization flows.
4. Resource Subscribe Improvements (#676)
Resource subscribe is now automatically true if a handler is provided.
5. Optimized JSON-RPC Deserialization (#1138)
Single-pass parsing optimization for JsonRpcMessage deserialization.
Testing
Documentation
Breaking Changes Check
Review changelog for any breaking changes:
s_additionalProperties removed from McpClientTool (#1080) - verify no impact
- Session timeout fix (#1106) - may affect long-running operations
Related
Overview
Update from
ModelContextProtocolv0.5.0-preview.1 to v0.6.0-preview.1 and adopt new SDK features.Release notes: https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v0.6.0-preview.1
Sub-Issues
Version Update
DotNetMcp.csprojpackage reference from0.5.0-preview.1to0.6.0-preview.1doc/sdk-v0.5-compatibility.mdtosdk-v0.6-compatibility.mdKey Features to Adopt
1. Fully-Qualified Type Names in Generated Signatures (#1135)
The SDK now uses fully-qualified type names in generated partial method signatures. This should resolve any ambiguity issues we've had with action enums in
DotNetMcp.Actions.GlobalUsings.cswithglobal using DotNetMcp.Actions;is still necessary2. CS1066 Suppressor for Optional Parameters (#1110)
The SDK now suppresses CS1066 warnings for MCP server methods with optional parameters.
3. Incremental Scope Consent - SEP-835 (#1084)
Support for incremental scope consent in authorization flows.
4. Resource Subscribe Improvements (#676)
Resource subscribe is now automatically true if a handler is provided.
DotNetResources.csand update resource subscription logic if needed5. Optimized JSON-RPC Deserialization (#1138)
Single-pass parsing optimization for
JsonRpcMessagedeserialization.Testing
dotnet test --solution DotNetMcp.slnxDocumentation
Breaking Changes Check
Review changelog for any breaking changes:
s_additionalPropertiesremoved fromMcpClientTool(#1080) - verify no impactRelated