cursor-delegate-mcp 2.6.0 → 2.7.0

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,30 @@ All notable changes to this project are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.7.0] - 2026-11-07
10
+
11
+ ### Changed
12
+
13
+ - The default hard cap on a single delegation (`CURSOR_DELEGATE_HARD_CAP_MS`) is 6 h, up from 1 h,
14
+ so long research and refactor runs fit in one call. Longer work continues in another run with
15
+ `resumeSessionId`.
16
+
17
+ ### Fixed
18
+
19
+ - Codex lets a `delegate` call run to the hard cap. Codex times an MCP tool call by wall clock,
20
+ 300 s by default, whatever progress the server reports; the Codex plugin now sets
21
+ `tool_timeout_sec` to 21660 s, a minute past the hard cap, so the bridge's `hard-cap` error
22
+ arrives first. A server added by hand under `[mcp_servers.cursor-delegate]` in Codex's
23
+ `config.toml` takes the same key. Reported in #20.
24
+
25
+ ### Security
26
+
27
+ - Lockfile bumps of `zod` to 4.6.7, `body-parser` to 2.4.0, `fast-uri` to 3.1.9, `ip-address` to
28
+ 10.7.6, `qs` to 6.17.1 and `@hono/node-server` to 2.1.6, clearing the high advisories
29
+ GHSA-mrhx-c7xc-m3w5 and GHSA-27r3-jxmh-p828, the moderate GHSA-rmxm-3fg6-px4f,
30
+ GHSA-w74x-v6f9-j3xg, GHSA-wjr9-j795-jxcr, GHSA-rxp7-6hxx-x8q5 and GHSA-6pq8-jhm2-2vcw, and the
31
+ low GHSA-333x-w4r6-6crp and GHSA-xhq7-xmqj-769h.
32
+
9
33
  ## [2.6.0] - 2026-10-22
10
34
 
11
35
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-delegate-mcp",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
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/delegate.js CHANGED
@@ -7,7 +7,7 @@ import { statSync, realpathSync } from "node:fs";
7
7
  // run before the spawn.
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { AcpClient } from "./acp-client.js";
10
- import { SessionSupervisor } from "./session-supervisor.js";
10
+ import { DEFAULT_HARD_CAP_MS, SessionSupervisor } from "./session-supervisor.js";
11
11
  import { normalizeAgentReportedFiles } from "./agent-reported-files.js";
12
12
  import { makeTurnState } from "./turn-state.js";
13
13
  import { makeError } from "./errors.js";
@@ -289,7 +289,7 @@ export async function runDelegate({
289
289
  assertWorkspace(workspace);
290
290
  assertSpec(spec);
291
291
  const promptText = spec;
292
- const capMs = hardCapMs ?? timeoutMs ?? envMs("CURSOR_DELEGATE_HARD_CAP_MS", 3600000);
292
+ const capMs = hardCapMs ?? timeoutMs ?? envMs("CURSOR_DELEGATE_HARD_CAP_MS", DEFAULT_HARD_CAP_MS);
293
293
  const shakeMs = handshakeMs ?? envMs("CURSOR_DELEGATE_HANDSHAKE_MS", DEFAULT_HANDSHAKE_MS);
294
294
  const turnIdleMs = idleMs ?? envMs("CURSOR_DELEGATE_IDLE_MS", 0);
295
295
  const state = makeTurnState({ onProgress, progressThrottleMs });
@@ -1,9 +1,11 @@
1
1
  import { makeError } from "./errors.js";
2
2
 
3
+ export const DEFAULT_HARD_CAP_MS = 6 * 60 * 60 * 1000;
4
+
3
5
  export class SessionSupervisor {
4
6
  constructor(client, {
5
7
  handshakeMs = 60000,
6
- hardCapMs = 3600000,
8
+ hardCapMs = DEFAULT_HARD_CAP_MS,
7
9
  idleMs = 0,
8
10
  } = {}) {
9
11
  this.client = client;