@context-engine-bridge/context-engine-mcp-bridge 0.0.63 → 0.0.65
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/package.json +1 -1
- package/src/mcpServer.js +3 -2
package/package.json
CHANGED
package/src/mcpServer.js
CHANGED
|
@@ -1293,7 +1293,7 @@ async function createBridgeServer(options) {
|
|
|
1293
1293
|
const fanOutCallTimeoutMs = Math.min(timeoutMs, 10000);
|
|
1294
1294
|
const fanOutDeadlineMs = Math.round(fanOutCallTimeoutMs * 0.8);
|
|
1295
1295
|
const fanOutPromises = additionalCollections.map(col => {
|
|
1296
|
-
const colArgs = { ...args, collection: col };
|
|
1296
|
+
const colArgs = { ...args, collection: col, output_format: "json", compact: false };
|
|
1297
1297
|
return targetClient.callTool(
|
|
1298
1298
|
{ name, arguments: colArgs },
|
|
1299
1299
|
undefined,
|
|
@@ -1788,8 +1788,9 @@ function _findWorkspaceDirByCollection(collection) {
|
|
|
1788
1788
|
for (const dir of dirs) {
|
|
1789
1789
|
if (dir === "." || dir === ".." || dir.includes("/") || dir.includes("\0")) continue;
|
|
1790
1790
|
const dirPath = path.join(wsRoot, dir);
|
|
1791
|
+
let realDir;
|
|
1791
1792
|
try {
|
|
1792
|
-
|
|
1793
|
+
realDir = fs.realpathSync(dirPath);
|
|
1793
1794
|
if (realDir !== realWsRoot && !realDir.startsWith(realWsRoot + path.sep)) continue;
|
|
1794
1795
|
if (!fs.lstatSync(realDir).isDirectory()) continue;
|
|
1795
1796
|
} catch (_) { continue; }
|