You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a similar issue. A malformed payload such as below, emits a ServerResponse of McpError in WebMvcStatelessServerTransport. But McpError does not get translate into a message by DefaultEntityResponse from spring-webmvc (7.0.8). It emits a HttpMediaTypeNotAcceptableException instead of a JSON-PRC error. Can be reproduced by:
@yuchen-liu-everlaw
Thanks for sharing this. The WebMVC transport used to be part of the MCP Java SDK, but it moved to the Spring AI project for its 2.0
release. I opened an issue and a PR for this:
Activity
ultramancode commentedon May 12, 2026
I opened a follow-up PR for this issue: #956
yuchen-liu-everlaw commentedon Aug 18, 2026
I ran into a similar issue. A malformed payload such as below, emits a
ServerResponseofMcpErrorinWebMvcStatelessServerTransport. ButMcpErrordoes not get translate into a message byDefaultEntityResponsefrom spring-webmvc (7.0.8). It emits aHttpMediaTypeNotAcceptableExceptioninstead of a JSON-PRC error. Can be reproduced by:ultramancode commentedon Aug 25, 2026
@yuchen-liu-everlaw
Thanks for sharing this. The WebMVC transport used to be part of the MCP Java SDK, but it moved to the Spring AI project for its 2.0
release. I opened an issue and a PR for this:
Issue: spring-projects/spring-ai#6855
PR: spring-projects/spring-ai#6856
Add a stateless server for MCP 2026-07-28