@context-engine-bridge/context-engine-mcp-bridge 0.0.58 → 0.0.59

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 +8 -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.58",
3
+ "version": "0.0.59",
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
@@ -1257,8 +1257,9 @@ async function createBridgeServer(options) {
1257
1257
  : [];
1258
1258
  const shouldFanOut = additionalCollections.length > 0 && indexerClient;
1259
1259
 
1260
+ debugLog(`[ctxce] Fan-out check: tool=${name}, inFanoutSet=${_FANOUT_TOOLS.has(name)}, workspace=${workspace}, hint=${fanOutCollectionHint}, additional=[${additionalCollections.join(",")}], shouldFanOut=${shouldFanOut}`);
1260
1261
  if (shouldFanOut) {
1261
- debugLog(`[ctxce] Fan-out: ${name} across ${additionalCollections.length} additional collection(s)`);
1262
+ debugLog(`[ctxce] Fan-out: ${name} across ${additionalCollections.length} additional collection(s): ${additionalCollections.join(", ")}`);
1262
1263
  }
1263
1264
 
1264
1265
  const timeoutMs = getBridgeToolTimeoutMs();
@@ -1902,6 +1903,12 @@ function _mergeResults(primaryText, additionalTexts) {
1902
1903
  }
1903
1904
 
1904
1905
  primary._cross_collection = true;
1906
+ primary._fanout_debug = {
1907
+ additional_texts_count: additionalTexts.length,
1908
+ additional_ok_count: additionalTexts.filter(t => { try { return JSON.parse(t).ok; } catch(_) { return false; } }).length,
1909
+ final_results_count: Array.isArray(primary.results) ? primary.results.length : 0,
1910
+ original_limit: originalLimit || null,
1911
+ };
1905
1912
  return JSON.stringify(primary);
1906
1913
  } catch (_) {
1907
1914
  return primaryText;