Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: MCP runners skip the install log wrapper

Samrat Talukdar87bbe6d14516
diff --git a/apps/server/src/mcp-allow/PARITY.sha256 b/apps/server/src/mcp-allow/PARITY.sha256
index 802bb9d0..8b9b26fc 100644
--- a/apps/server/src/mcp-allow/PARITY.sha256
+++ b/apps/server/src/mcp-allow/PARITY.sha256
@@ -1,4 +1,4 @@
# The MCP allowlist module: the same files in omnirush-cli (src/mcp/) and omnirush-gui (apps/server/src/mcp-allow/).
# A change to one must be ported to the other and this list updated in both.
-048b83dc8e5e66215a12d88f93b0ea60ca18f65a61eb6010a6e27c499070b37a mcp-allow.mjs
+fcd4fb27e77050003719ea06f2f1cb4dceb4c7d981c2c8ef881bb1d86581e620 mcp-allow.mjs
3a548e530931a24d040fb804aae72607339b38791dafb63b4be02b9cf2933dd3 mcp-allow.d.mts
diff --git a/apps/server/src/mcp-allow/mcp-allow.mjs b/apps/server/src/mcp-allow/mcp-allow.mjs
index e7069e80..48c6b3a6 100644
--- a/apps/server/src/mcp-allow/mcp-allow.mjs
+++ b/apps/server/src/mcp-allow/mcp-allow.mjs
@@ -307,6 +307,9 @@ export function resolveRunner(runner, { root = null, platform = process.platform
const folder = dir.trim().replace(/^"(.*)"$/, "$1");
if (!folder || !lib.isAbsolute(folder) || (platform === "win32" && !/^[A-Za-z]:[\\/]|^\\\\/.test(folder))) continue;
if (root && insideRootReal(root, folder, platform)) continue;
+ // The app's own package-manager wrappers (the install log's folder holds an `omnirush-pkg` file) look the
+ // real tool up on PATH again, relative entries included: skip them for the tool itself.
+ if (exists(lib.join(folder, "omnirush-pkg")) || exists(lib.join(folder, "omnirush-pkg.exe"))) continue;
for (const ext of exts) {
const file = lib.join(folder, `${runner}${ext}`);
if (exists(file)) return file;