mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
feat(mcp): log include MCP request with error (#6778)
This commit is contained in:
@@ -142,9 +142,9 @@ class DiscoveredMCPToolInvocation extends BaseToolInvocation<
|
||||
if (this.isMCPToolError(rawResponseParts)) {
|
||||
const errorMessage = `MCP tool '${
|
||||
this.serverToolName
|
||||
}' reported tool error with response: ${JSON.stringify(
|
||||
rawResponseParts,
|
||||
)}`;
|
||||
}' reported tool error for function call: ${safeJsonStringify(
|
||||
functionCalls[0],
|
||||
)} with response: ${safeJsonStringify(rawResponseParts)}`;
|
||||
return {
|
||||
llmContent: errorMessage,
|
||||
returnDisplay: `Error: MCP tool '${this.serverToolName}' reported an error.`,
|
||||
|
||||
Reference in New Issue
Block a user