@context-engine-bridge/context-engine-mcp-bridge 0.0.47 → 0.0.49

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 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-engine-bridge/context-engine-mcp-bridge",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
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
@@ -1310,15 +1310,16 @@ async function createBridgeServer(options) {
1310
1310
  undefined,
1311
1311
  { timeout: timeoutMs },
1312
1312
  );
1313
+ const finalResult = maybeRemapToolResult(name, result, workspace);
1313
1314
  const lspConn = includeLsp && _readLspConnection(workspace);
1314
1315
  if (includeLsp) {
1315
1316
  debugLog("[ctxce] LSP gate: tool=" + name + " lsp=" + (lspConn ? "port:" + lspConn.port : "null"));
1316
1317
  }
1317
1318
  if (lspConn) {
1318
- result = await _enrichWithLsp(result, lspConn, workspace);
1319
+ return await _enrichWithLsp(finalResult, lspConn, workspace);
1319
1320
  } else if (includeLsp) {
1320
1321
  try {
1321
- const tb = Array.isArray(result?.content) && result.content.find(c => c.type === "text");
1322
+ const tb = Array.isArray(finalResult?.content) && finalResult.content.find(c => c.type === "text");
1322
1323
  if (tb?.text) {
1323
1324
  const p = JSON.parse(tb.text);
1324
1325
  const d = _lspTarget(p);
@@ -1327,7 +1328,6 @@ async function createBridgeServer(options) {
1327
1328
  }
1328
1329
  } catch (e) { debugLog("[ctxce] LSP not_available inject failed: " + String(e)); }
1329
1330
  }
1330
- const finalResult = maybeRemapToolResult(name, result, workspace);
1331
1331
  return finalResult;
1332
1332
  } catch (err) {
1333
1333
  lastError = err;