@context-engine-bridge/context-engine-mcp-bridge 0.0.54 → 0.0.55
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
|
@@ -1300,9 +1300,10 @@ async function createBridgeServer(options) {
|
|
|
1300
1300
|
await initializeRemoteClients(false);
|
|
1301
1301
|
|
|
1302
1302
|
const MAX_FANOUT_COLLECTIONS = 5;
|
|
1303
|
-
const primaryCollection = args && args.collection ? args.collection : "";
|
|
1303
|
+
const primaryCollection = args && typeof args.collection === "string" ? args.collection : "";
|
|
1304
|
+
const primaryLower = primaryCollection.toLowerCase();
|
|
1304
1305
|
const additionalCollections = _FANOUT_TOOLS.has(name)
|
|
1305
|
-
? _loadSessionCollections(workspace).filter(c => c !==
|
|
1306
|
+
? _loadSessionCollections(workspace).filter(c => c.toLowerCase() !== primaryLower).slice(0, MAX_FANOUT_COLLECTIONS)
|
|
1306
1307
|
: [];
|
|
1307
1308
|
const shouldFanOut = additionalCollections.length > 0 && indexerClient;
|
|
1308
1309
|
|