@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.
@@ -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
- throw McpErrorHandler.formatError(error);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utaba/ucm-mcp-server",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Universal Context Manager MCP Server - AI-native artifact management",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ucm-mcp-server",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Universal Context Manager MCP Server - AI-native artifact management",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",