@utaba/ucm-mcp-server 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/McpHandler.js +12 -1
- package/package.json +1 -1
- package/package.json.backup +1 -1
|
@@ -62,7 +62,18 @@ export class McpHandler {
|
|
|
62
62
|
}
|
|
63
63
|
catch (error) {
|
|
64
64
|
this.logger.error('MCP-Handler', `Tool execution failed for ${name}`, '', error);
|
|
65
|
-
|
|
65
|
+
// Format the error message for Claude Desktop to display properly
|
|
66
|
+
const formattedError = McpErrorHandler.formatError(error);
|
|
67
|
+
// Instead of throwing, return the error as content so Claude Desktop displays it
|
|
68
|
+
return {
|
|
69
|
+
content: [
|
|
70
|
+
{
|
|
71
|
+
type: 'text',
|
|
72
|
+
text: `Error: ${formattedError.message}`
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
isError: true
|
|
76
|
+
};
|
|
66
77
|
}
|
|
67
78
|
}
|
|
68
79
|
}
|
package/package.json
CHANGED