cursor-delegate-mcp 2.5.2 → 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 +38 -0
- package/package.json +1 -1
- package/src/delegate.js +2 -2
- package/src/session-supervisor.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,44 @@ 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
|
+
|
|
33
|
+
## [2.6.0] - 2026-10-22
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- `/cursor-delegate:delegate` loads the delegate skill. Claude Code loaded a slash command of the same
|
|
38
|
+
name instead, and that command only pointed back to the skill, so the workflow never reached the
|
|
39
|
+
caller. The command is removed; the skill takes the task as its argument.
|
|
40
|
+
|
|
41
|
+
### Security
|
|
42
|
+
|
|
43
|
+
- Lockfile bumps of the MCP SDK to 1.32.1 and `hono` to 4.13.13, clearing the high advisories
|
|
44
|
+
GHSA-22jm-h49p-29qw and GHSA-46jr-4wx8-v453 and the moderate GHSA-6prh-2h8m-c8cw,
|
|
45
|
+
GHSA-rvq5-wwqv-78pq and GHSA-5r4p-p66f-jhc7.
|
|
46
|
+
|
|
9
47
|
## [2.5.2] - 2026-10-15
|
|
10
48
|
|
|
11
49
|
2.5.1 was tagged but not published: its release run failed the dependency audit. Its fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cursor-delegate-mcp",
|
|
3
|
-
"version": "2.
|
|
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",
|
|
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 =
|
|
8
|
+
hardCapMs = DEFAULT_HARD_CAP_MS,
|
|
7
9
|
idleMs = 0,
|
|
8
10
|
} = {}) {
|
|
9
11
|
this.client = client;
|