@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mcpServer.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-engine-bridge/context-engine-mcp-bridge",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "Context Engine MCP bridge (http/stdio proxy combining indexer + memory servers)",
5
5
  "bin": {
6
6
  "ctxce": "bin/ctxce.js",
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 !== primaryCollection).slice(0, MAX_FANOUT_COLLECTIONS)
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