-
-
Notifications
You must be signed in to change notification settings - Fork 586
update ModelContextProtocol version to 0.4.0-preview.3 #1226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
PR Type
Enhancement
Description
Update ModelContextProtocol NuGet packages to version 0.4.0-preview.3
Replace deprecated API calls with new transport and client interfaces
Add null check for MCP client initialization in executor
Update content block filtering to use new TextContentBlock type
Diagram Walkthrough
File Walkthrough
McpClientManager.cs
Update MCP client initialization for new APIsrc/Infrastructure/BotSharp.Core/MCP/Managers/McpClientManager.cs
ModelContextProtocol.Protocol.TransportimportIMcpClient?toMcpClient?SseClientTransportwithHttpClientTransportfor SSEconfiguration
McpClientFactory.CreateAsynctoMcpClient.CreateAsyncMCPToolExecutor.cs
Update MCP tool executor for new API and add safety checkssrc/Infrastructure/BotSharp.Core/Routing/Executor/MCPToolExecutor.cs
ModelContextProtocol.ClienttoModelContextProtocol.ProtocolDictionarytoDictionaryTextContentBlocktype castinginstead of string comparison
Program.cs
Configure HTTP transport for test MCP servertests/BotSharp.PizzaBot.MCPServer/Program.cs
.WithHttpTransport()configuration to MCP server builderDirectory.Packages.props
Upgrade ModelContextProtocol NuGet packagesDirectory.Packages.props
ModelContextProtocolpackage version from 0.1.0-preview.11 to0.4.0-preview.3
ModelContextProtocol.AspNetCorepackage version from0.1.0-preview.11 to 0.4.0-preview.3