Aias00 opened a new issue, #6749:
URL: https://github.com/apache/shenyu/issues/6749

   - severity: Medium
   - files: 
`shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/transport/MessageHandlingResult.java:87-98`
   - description: `getResponseBodyAsJson()` does `new 
ObjectMapper().writeValueAsString(responseBody)`. When `responseBody` is a 
`McpSchema.JSONRPCMessage`, serialization uses a vanilla ObjectMapper without 
the MCP Jackson module that the configured `JacksonMcpJsonMapper` would apply. 
MCP sealed-record/polymorphic types may serialize incorrectly.
   - impact: Streamable HTTP responses may be malformed when the body is an MCP 
schema object.
   - suggested_fix: Reuse the transport's configured 
`McpJsonMapper`/`ObjectMapper` instead of `new ObjectMapper()`.
   - confidence: Medium
   - related_existing: none — PERF-22 is perf only.
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in 
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to