| 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. |