secondbrainos-mcp-server 1.4.1 → 1.4.2

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 +7 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -476,7 +476,13 @@ class SecondBrainOSServer {
476
476
  async interceptFilePathArgs(args) {
477
477
  const result = { ...args };
478
478
  for (const [key, value] of Object.entries(result)) {
479
- if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
479
+ if (Array.isArray(value)) {
480
+ result[key] = await Promise.all(value.map(async (item) => typeof item === 'object' && item !== null
481
+ ? this.interceptFilePathArgs(item)
482
+ : item));
483
+ continue;
484
+ }
485
+ if (typeof value === 'object' && value !== null) {
480
486
  result[key] = await this.interceptFilePathArgs(value);
481
487
  continue;
482
488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secondbrainos-mcp-server",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Second Brain OS MCP Server for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "build/index.js",