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.
- package/build/index.js +7 -1
- 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 (
|
|
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
|
}
|