@exorcist-98/mcp-server 0.3.4 → 0.3.6

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/README.md CHANGED
@@ -37,7 +37,7 @@ out of results unless you ask for it, and is then marked as untrusted.
37
37
  ```json
38
38
  {
39
39
  "mcpServers": {
40
- "exorcist": { "command": "npx", "args": ["-y", "@exorcist-98/mcp-server@0.3.4"] }
40
+ "exorcist": { "command": "npx", "args": ["-y", "@exorcist-98/mcp-server@0.3.6"] }
41
41
  }
42
42
  }
43
43
  ```
package/dist/index.mjs CHANGED
@@ -32139,21 +32139,25 @@ function envFamilyOwners(name) {
32139
32139
  return null;
32140
32140
  }
32141
32141
  var PATH_VAR = /(?:CONFIG|_FILES?|_DIR|_HOME|_PATH|_PLUGINS?|CACHEDIR|_CERT\w*|_CA\w*)$/;
32142
+ var PROGRAM_VAR = /(?:EDITOR|PAGER|BROWSER|_CMD|_COMMAND|_HELPER|_PROGRAM|_EXEC|_SHELL|_ARGS(?:_\w+)?)$/u;
32142
32143
  var ENDPOINT_VAR = /(?:_HOST|_URL|_ENDPOINT|_SERVER)$/;
32143
32144
  function unlockedValueRisk(name, value, cwd, dynamic) {
32144
32145
  const runtime = dynamic || /[$`]/.test(value);
32145
32146
  const say = `${name} is set to a path inside the project, or to a value built at run time, and a tool config can name a program to run or a daemon to reach`;
32146
32147
  if (runtime) return say;
32147
- if (PATH_VAR.test(name) && anyInside(value, cwd)) return say;
32148
- for (const part of value.split(/[\s:,;=]+/u)) {
32149
- if (part !== "" && (/^[./~]/u.test(part) || part.includes("/")) && insideProject(part, cwd)) return say;
32150
- }
32151
32148
  if (ENDPOINT_VAR.test(name)) {
32152
32149
  const m = /^(?:unix|npipe|file):\/\/(.*)$/.exec(value);
32153
32150
  const target = m === null ? value : m[1];
32154
- if ((m !== null || /^[./~]/.test(target)) && insideProject(target, cwd)) return say;
32151
+ return (m !== null || /^[./~]/.test(target)) && insideProject(target, cwd) ? say : null;
32155
32152
  }
32156
- return null;
32153
+ let v = value.trim();
32154
+ if (v.startsWith("~")) v = expandTilde(v, cwd) ?? v;
32155
+ const one = `${name} takes one plain word here: an absolute path outside the project, or a name with no dot, slash or tilde (a value that could be a file in the project is refused)`;
32156
+ if (v === "") return null;
32157
+ if (/[\s:,;=]/u.test(v)) return one;
32158
+ if (isAbsolute5(v)) return insideProject(v, cwd) ? say : null;
32159
+ if (PATH_VAR.test(name) || PROGRAM_VAR.test(name)) return /^[A-Za-z0-9_-]+$/u.test(v) && !PATH_VAR.test(name) ? null : one;
32160
+ return /[./\\~]/u.test(v) ? one : null;
32157
32161
  }
32158
32162
  function envAssignRisk(name, value, cwd, dynamic = false, known, prog) {
32159
32163
  const owners = envFamilyOwners(name);
@@ -36401,7 +36405,7 @@ Tell the user. They can undo this with: exorcist vault restore ${r.value.id}`
36401
36405
  }
36402
36406
 
36403
36407
  // src/index.ts
36404
- var VERSION = "0.3.4";
36408
+ var VERSION = "0.3.6";
36405
36409
  var ctx = {
36406
36410
  cwd: process.cwd(),
36407
36411
  approved: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exorcist-98/mcp-server",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "MCP server for Exorcist 98: scan repos and MCP configs, explain findings, quarantine servers.",