Repository navigation
Bump ModelContextProtocol from 1.2.0 to 2.2.0 #43
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
| <PackageReference Include="Microsoft.Data.Sqlite" /> | ||
| <PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" /> | ||
| <PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" /> | ||
| <PackageReference Include="ModelContextProtocol" /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Runtime doesn't use the MCP SDK directly. It already gets Generated by Claude Code |
||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This major bump breaks
build-and-test (ubuntu-latest): 4 tests inSharpClaw.Code.UnitTests.Mcp.ParallelSearchExampleTestsfail withInvalidOperationException: Unexpected MCP method: server/discover(e.g.DeniedAllowlistPreventsRemoteToolCall,RemoteToolErrorRemainsFailure). The macOS and Windows jobs were cancelled, not run to completion.In 2.x,
McpClient.ConnectAsyncsendsserver/discoverbeforeinitialize. The fakeMcpHandlerintests/SharpClaw.Code.UnitTests/Mcp/ParallelSearchExampleTests.csthrows on any method it doesn't recognise. This PR needs a test-side fix before it can merge: reply to unknown methods with a JSON-RPC-32601 Method not founderror (or handleserver/discoverexplicitly) instead of throwing. That also tells you whether the client falls back toinitializeagainst older servers.Before merging, also check that
SdkMcpProcessSupervisorand theMcpToolAgentexample still connect to real 1.x/2025-era servers that don't implementserver/discover.Generated by Claude Code