@context-engine-bridge/context-engine-mcp-bridge 0.0.56 → 0.0.57

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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-engine-bridge/context-engine-mcp-bridge",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
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
@@ -1251,8 +1251,9 @@ async function createBridgeServer(options) {
1251
1251
 
1252
1252
  const primaryCollection = args && typeof args.collection === "string" ? args.collection : "";
1253
1253
  const primaryLower = primaryCollection.toLowerCase();
1254
+ const fanOutCollectionHint = defaultCollection || primaryCollection || null;
1254
1255
  const additionalCollections = _FANOUT_TOOLS.has(name)
1255
- ? _loadSessionCollections(workspace, defaultCollection).filter(c => c.toLowerCase() !== primaryLower).slice(0, MAX_FANOUT_COLLECTIONS)
1256
+ ? _loadSessionCollections(workspace, fanOutCollectionHint).filter(c => c.toLowerCase() !== primaryLower).slice(0, MAX_FANOUT_COLLECTIONS)
1256
1257
  : [];
1257
1258
  const shouldFanOut = additionalCollections.length > 0 && indexerClient;
1258
1259