@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.
- package/package.json +1 -1
- package/src/mcpServer.js +2 -1
package/package.json
CHANGED
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,
|
|
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
|
|