This issue has been created
There is 1 update.
 
 
LLM AI Integration / cid:jira-generated-image-avatar-b7eed911-f15b-4b4c-99cd-19d3fa54784a LLMAI-227 Open

MCP transport error responses expose Java stack traces to the client

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5db173ff-060c-4fc6-99ae-8a5acbcfab14 Paul Pantiru created this issue on 04/Nov/26 13:57
 
Summary: MCP transport error responses expose Java stack traces to the client
Issue Type: cid:jira-generated-image-avatar-b7eed911-f15b-4b4c-99cd-19d3fa54784a Bug
Affects Versions: 1.0.0
Assignee: Unassigned
Created: 04/Nov/26 13:57
Priority: cid:jira-generated-image-static-major-3fdfc851-5068-4ab8-ba28-9c8fd487fdbd Major
Reporter: Paul Pantiru
Description:

The MCP SDK's stateless servlet transport serializes its McpError exception object through the JSON mapper when it rejects a request at the transport level (unsupported Content-Type, missing Accept header, malformed JSON-RPC body, handler failure).

With a default Jackson mapper the response body is a serialized exception of about 20 KB, including the full stack trace with SDK and XWiki class names and line numbers, instead of a JSON-RPC error object. 

 
 

1 update

 
cid:jira-generated-image-avatar-5db173ff-060c-4fc6-99ae-8a5acbcfab14 Changes by Paul Pantiru on 04/Nov/26 13:57
 
Assignee: Paul Pantiru