Conversation
The mcp-core 2.0.1 release fixes unregistered/unknown JSON-RPC methods returning HTTP 500 on stateless transports instead of a proper JSON-RPC -32601 (Method not found) response (modelcontextprotocol/java-sdk#784, fixed by modelcontextprotocol/java-sdk#800). WebFluxStatelessServerTransport and WebMvcStatelessServerTransport need no code changes of their own: they only return 500 when the handler's Mono errors, and mcp-core 2.0.1 makes the handler return a normal JSONRPCResponse instead. Fixes spring-projects#6998 Signed-off-by: Vadim Shurmialiou <153723461+vdm24@users.noreply.github.com> Co-authored-by: Junie <junie@jetbrains.com>
vdm24
force-pushed
the
bump-mcp-sdk-2.0.1
branch
from
September 15, 2026 17:09
b759d84 to
3a4122d
Compare
Contributor
Author
|
Hi @tzolov, The MCP integration tests check failed on the new test inherited from The test expects the server to reject request bodies larger than 2048 bytes with HTTP How would you prefer to handle this for this PR?
Which option do you think is better for this PR? |
vdm24
marked this pull request as draft
September 16, 2026 08:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
mcp.sdk.versionfrom2.0.0to2.0.1.mcp-core2.0.1 includes the fix for unregistered/unknown JSON-RPC methodsreturning HTTP 500 on stateless transports instead of a proper JSON-RPC
-32601(Method not found) response(modelcontextprotocol/java-sdk#784,
fixed by modelcontextprotocol/java-sdk#800).
WebFluxStatelessServerTransportandWebMvcStatelessServerTransportneed nocode changes of their own: both only return 500 today because the handler's
Monoerrors for an unregistered method, and they.block()it and map anyerror to 500.
mcp-core2.0.1 makes the handler return a normalJSONRPCResponsecarrying-32601instead of erroring, so both transportstake their regular
200 OKsuccess path once the dependency is bumped.Fixes #6998