ramu11 commented on code in PR #29722:
URL: https://github.com/apache/camel/pull/29722#discussion_r4561123480


##########
components/camel-ai/camel-mcp-server-api/src/main/java/org/apache/camel/component/mcp/server/McpServerBridge.java:
##########
@@ -453,8 +569,8 @@ private McpResourceReadResult read(AiResourceSpec spec) {
                 return McpResourceReadResult.blob(binary.value());
             } else {
                 AiResourceResult.ExecutionError error = 
(AiResourceResult.ExecutionError) result;
-                // never leak raw route exception messages to remote MCP 
clients
-                LOG.warn("MCP resource '{}' read failed: {}", spec.getUri(), 
error.message(), error.cause());
+                // Keep details in the server-side log; the MCP client still 
receives a generic error.
+                LOG.warn("MCP resource '{}' read failed: {}", spec.getName(), 
error.message());

Review Comment:
   Addressed



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