secondbrainos-mcp-server 1.4.5 → 1.4.6

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.
Files changed (2) hide show
  1. package/build/index.js +5 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -192,16 +192,18 @@ class SecondBrainOSServer {
192
192
  isError: true
193
193
  };
194
194
  }
195
- else if (error instanceof Error) {
195
+ else {
196
+ const msg = error instanceof Error
197
+ ? error.message
198
+ : (typeof error === 'object' ? JSON.stringify(error) : String(error));
196
199
  return {
197
200
  content: [{
198
201
  type: 'text',
199
- text: `Error calling function: ${error.message}`
202
+ text: `Error calling function: ${msg}`
200
203
  }],
201
204
  isError: true
202
205
  };
203
206
  }
204
- throw error;
205
207
  }
206
208
  });
207
209
  // List available prompts (user's workflows + agents)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secondbrainos-mcp-server",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Second Brain OS MCP Server for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "build/index.js",