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.
- package/build/index.js +5 -3
- 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
|
|
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: ${
|
|
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)
|