Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: MCP name check ignores case for settings

ogsamrat6080d2765fec
diff --git a/apps/server/src/mcp-allow/PARITY.sha256 b/apps/server/src/mcp-allow/PARITY.sha256
index f28dfa86..721b26c6 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.
-9e49d8bb16e36d089e01f916dc134f09489a738d416e2e0606214427fca4b16d mcp-allow.mjs
+dee394bcb7d3cc00312389c4a1a8a9901c085ecc4256f3b11a4d17b28eb62e7e mcp-allow.mjs
fe81f4d8eb0360fe47a086f59dace916f5138713073df7b1ffda7bf0dc846591 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 282e79b3..647a15f3 100644
--- a/apps/server/src/mcp-allow/mcp-allow.mjs
+++ b/apps/server/src/mcp-allow/mcp-allow.mjs
@@ -191,7 +191,7 @@ const PROTECTED_VALUE_NAME = /^(?:OPENCODE_SERVER_|OPENCODE_PASSWORD$)|^OMNIRUSH
const PROTECTED_VALUE_NOT = /_(?:URL|DIR|PATH|FILE|STORE|MS|MODULE|MODE)$/i;
export function protectedValues(engineEnv) {
return [...new Set(Object.entries(engineEnv ?? {})
- .filter(([k, v]) => typeof v === "string" && v.length >= 8 && PROTECTED_VALUE_NAME.test(k) && !(k.startsWith("OMNIRUSH_") && PROTECTED_VALUE_NOT.test(k)))
+ .filter(([k, v]) => typeof v === "string" && v.length >= 8 && PROTECTED_VALUE_NAME.test(k) && !(/^OMNIRUSH_/i.test(k) && PROTECTED_VALUE_NOT.test(k)))
.map(([, v]) => v))];
}