@context-engine-bridge/context-engine-mcp-bridge 0.0.36 → 0.0.37
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 +3 -3
package/package.json
CHANGED
package/src/mcpServer.js
CHANGED
|
@@ -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
|
-
|
|
1300
|
+
result = await _enrichWithLsp(result, lspConn, workspace);
|
|
1302
1301
|
} else if (includeLsp) {
|
|
1303
1302
|
try {
|
|
1304
|
-
const tb = Array.isArray(
|
|
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;
|