cursor-delegate-mcp 2.5.0 → 2.5.2

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/CHANGELOG.md CHANGED
@@ -6,6 +6,29 @@ All notable changes to this project are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.5.2] - 2026-10-15
10
+
11
+ 2.5.1 was tagged but not published: its release run failed the dependency audit. Its fix
12
+ ships in this release.
13
+
14
+ ### Security
15
+
16
+ - Lockfile bump of `proxy-addr` to 2.0.8, clearing the critical audit advisory
17
+ GHSA-jqcg-44mw-7w3h in the MCP SDK's dependencies.
18
+
19
+ ### Internal
20
+
21
+ - The release workflow also retries the MCP Registry publish on registry 5xx responses.
22
+ 2.5.0 reached npm but not the MCP Registry after a 504.
23
+
24
+ ## [2.5.1] - 2026-10-15
25
+
26
+ ### Fixed
27
+
28
+ - Hooks run on Windows under a Git Bash host. cursor-agent writes hooks as PowerShell but ran
29
+ them in Git Bash when it inherited `MSYSTEM` or `SHELL`, so every hooked tool call failed as
30
+ blocked. On win32 both are dropped from the agent's environment; it uses PowerShell.
31
+
9
32
  ## [2.5.0] - 2026-10-05
10
33
 
11
34
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-delegate-mcp",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "mcpName": "io.github.andreilungeanu/cursor-delegate-mcp",
5
5
  "type": "module",
6
6
  "description": "Delegate multi-file coding work from Claude Code, Codex, Copilot, or any MCP client to Cursor's CLI agent — structured results, plan mode, and changed files.",
package/src/spawn.js CHANGED
@@ -9,6 +9,17 @@ export function splitArgs(raw) {
9
9
  return args;
10
10
  }
11
11
 
12
+ // On Windows cursor-agent writes every hook command as PowerShell, but runs it in Git Bash when
13
+ // it finds MSYSTEM, or a SHELL naming Git Bash, in its environment. A host running in Git Bash
14
+ // (Claude Code on Windows) passes both down, bash rejects the PowerShell line, and the agent
15
+ // reports every hooked tool call as blocked. Dropped, the agent falls back to PowerShell, the
16
+ // shell it uses when started outside Git Bash.
17
+ const WIN32_DROPPED_ENV = new Set(["MSYSTEM", "SHELL"]);
18
+
19
+ function agentEnv(env = process.env) {
20
+ return Object.fromEntries(Object.entries(env).filter(([key]) => !WIN32_DROPPED_ENV.has(key.toUpperCase())));
21
+ }
22
+
12
23
  // shell:true on win32 is what lets a .cmd/.ps1 launcher resolve at all, and it means the
13
24
  // command and args are parsed by cmd.exe. Safe only because both come from the environment,
14
25
  // which is already as trusted as this process: anything that can set them can run code here
@@ -19,5 +30,6 @@ export function resolveAcpSpawn() {
19
30
  const args = process.env.ACP_AGENT_ARGS
20
31
  ? splitArgs(process.env.ACP_AGENT_ARGS)
21
32
  : ["acp"];
22
- return { command, args, options: { shell: process.platform === "win32" } };
33
+ const win32 = process.platform === "win32";
34
+ return { command, args, options: { shell: win32, ...(win32 ? { env: agentEnv() } : {}) } };
23
35
  }