@context-engine-bridge/context-engine-mcp-bridge 0.0.36 → 0.0.38

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 +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-engine-bridge/context-engine-mcp-bridge",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
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
@@ -1284,7 +1284,7 @@ async function createBridgeServer(options) {
1284
1284
  }
1285
1285
 
1286
1286
  try {
1287
- const result = await targetClient.callTool(
1287
+ let result = await targetClient.callTool(
1288
1288
  {
1289
1289
  name,
1290
1290
  arguments: args,
@@ -1292,16 +1292,15 @@ async function createBridgeServer(options) {
1292
1292
  undefined,
1293
1293
  { timeout: timeoutMs },
1294
1294
  );
1295
- let finalResult = maybeRemapToolResult(name, result, workspace);
1296
1295
  const lspConn = includeLsp && _readLspConnection(workspace);
1297
1296
  if (includeLsp) {
1298
1297
  debugLog("[ctxce] LSP gate: tool=" + name + " lsp=" + (lspConn ? "port:" + lspConn.port : "null"));
1299
1298
  }
1300
1299
  if (lspConn) {
1301
- finalResult = await _enrichWithLsp(finalResult, lspConn, workspace);
1300
+ result = await _enrichWithLsp(result, lspConn, workspace);
1302
1301
  } else if (includeLsp) {
1303
1302
  try {
1304
- const tb = Array.isArray(finalResult?.content) && finalResult.content.find(c => c.type === "text");
1303
+ const tb = Array.isArray(result?.content) && result.content.find(c => c.type === "text");
1305
1304
  if (tb?.text) {
1306
1305
  const p = JSON.parse(tb.text);
1307
1306
  const t = _lspTarget(p);
@@ -1310,6 +1309,7 @@ async function createBridgeServer(options) {
1310
1309
  }
1311
1310
  } catch (e) { debugLog("[ctxce] LSP not_available inject failed: " + String(e)); }
1312
1311
  }
1312
+ const finalResult = maybeRemapToolResult(name, result, workspace);
1313
1313
  return finalResult;
1314
1314
  } catch (err) {
1315
1315
  lastError = err;