cursor-delegate-mcp 2.6.0 → 2.8.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,60 @@ All notable changes to this project are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.8.0] - 2026-11-08
10
+
11
+ ### Added
12
+
13
+ - Antigravity plugin, listed as Delegate to Cursor:
14
+ `agy plugin install https://github.com/andreilungeanu/cursor-delegate-mcp`. It sets
15
+ `timeoutSeconds` to 21660 s, a minute past the hard cap; Antigravity otherwise ends a tool call
16
+ after 180 s.
17
+
18
+ ### Changed
19
+
20
+ - Copilot CLI installs from the plugin marketplace:
21
+ `copilot plugin marketplace add andreilungeanu/cursor-delegate-mcp`, then
22
+ `copilot plugin install cursor-delegate@cursor-delegate-mcp`. Copilot deprecates direct
23
+ repository installs. Copilot's manifest moved from the repository root to
24
+ `.github/plugin/plugin.json`.
25
+
26
+ ### Fixed
27
+
28
+ - The Copilot plugin's server starts. Copilot runs it inside the plugin folder, a copy of this
29
+ repository, where `npx -y cursor-delegate-mcp@X.Y.Z` matched the pin to the folder's own
30
+ `package.json` and failed with `'cursor-delegate-mcp' is not recognized`. The Copilot, Codex and
31
+ Antigravity configs pin `npm:cursor-delegate-mcp@X.Y.Z`, which npx always fetches. Existing
32
+ installs pick it up with `copilot plugin update cursor-delegate`.
33
+
34
+ ### Internal
35
+
36
+ - The test suite passes under Windows' default PowerShell execution policy and removes its
37
+ temporary plugin folders.
38
+
39
+ ## [2.7.0] - 2026-11-07
40
+
41
+ ### Changed
42
+
43
+ - The default hard cap on a single delegation (`CURSOR_DELEGATE_HARD_CAP_MS`) is 6 h, up from 1 h,
44
+ so long research and refactor runs fit in one call. Longer work continues in another run with
45
+ `resumeSessionId`.
46
+
47
+ ### Fixed
48
+
49
+ - Codex lets a `delegate` call run to the hard cap. Codex times an MCP tool call by wall clock,
50
+ 300 s by default, whatever progress the server reports; the Codex plugin now sets
51
+ `tool_timeout_sec` to 21660 s, a minute past the hard cap, so the bridge's `hard-cap` error
52
+ arrives first. A server added by hand under `[mcp_servers.cursor-delegate]` in Codex's
53
+ `config.toml` takes the same key. Reported in #20.
54
+
55
+ ### Security
56
+
57
+ - Lockfile bumps of `zod` to 4.6.7, `body-parser` to 2.4.0, `fast-uri` to 3.1.9, `ip-address` to
58
+ 10.7.6, `qs` to 6.17.1 and `@hono/node-server` to 2.1.6, clearing the high advisories
59
+ GHSA-mrhx-c7xc-m3w5 and GHSA-27r3-jxmh-p828, the moderate GHSA-rmxm-3fg6-px4f,
60
+ GHSA-w74x-v6f9-j3xg, GHSA-wjr9-j795-jxcr, GHSA-rxp7-6hxx-x8q5 and GHSA-6pq8-jhm2-2vcw, and the
61
+ low GHSA-333x-w4r6-6crp and GHSA-xhq7-xmqj-769h.
62
+
9
63
  ## [2.6.0] - 2026-10-22
10
64
 
11
65
  ### Fixed
package/README.md CHANGED
@@ -40,7 +40,7 @@ Composer and Grok draw from the **Cursor Models usage pool**, separate from thir
40
40
 
41
41
  ## Features
42
42
 
43
- - 🤝 **Native plugins** — install into Claude Code, ChatGPT/Codex, or GitHub Copilot CLI and just say *"delegate this to Cursor"*. The shared skill teaches your agent how to delegate well.
43
+ - 🤝 **Native plugins** — install into Claude Code, ChatGPT/Codex, Google Antigravity, or GitHub Copilot CLI and just say *"delegate this to Cursor"*. The shared skill teaches your agent how to delegate well.
44
44
  - 💬 **No stalled runs** — if Cursor needs to clarify, it ends the turn and returns the question as a normal result. Your agent reads it and answers by resuming the same session — nothing blocks on a modal waiting for input.
45
45
  - 📦 **Clean, named results** — final answer, changed files, session id, and the plan, returned as one compact JSON payload. Nothing to scrape.
46
46
  - 📋 **Plan first** — `plan` mode: Cursor drafts a plan, you review it, then the same session implements it.
@@ -74,10 +74,21 @@ codex plugin marketplace add andreilungeanu/cursor-delegate-mcp
74
74
  codex plugin add cursor-delegate@cursor-delegate-mcp
75
75
  ```
76
76
 
77
+ ### Google Antigravity
78
+
79
+ ```shell
80
+ agy plugin install https://github.com/andreilungeanu/cursor-delegate-mcp
81
+ ```
82
+
83
+ Restart the Antigravity app to load it. If you added `cursor-delegate` to `mcp_config.json` by hand, remove that entry.
84
+
85
+ Without the CLI, use the manual config under [Client-specific config locations](#client-specific-config-locations).
86
+
77
87
  ### GitHub Copilot CLI
78
88
 
79
89
  ```shell
80
- copilot plugin install andreilungeanu/cursor-delegate-mcp
90
+ copilot plugin marketplace add andreilungeanu/cursor-delegate-mcp
91
+ copilot plugin install cursor-delegate@cursor-delegate-mcp
81
92
  ```
82
93
 
83
94
  ### Any other MCP client
@@ -161,9 +172,19 @@ OpenCode does **not** use `mcpServers`. Local servers go under `mcp`, with `type
161
172
  </details>
162
173
 
163
174
  <details>
164
- <summary><strong>Google Antigravity</strong> — <code>~/.gemini/config/mcp_config.json</code> or workspace <code>.agents/mcp_config.json</code></summary>
175
+ <summary><strong>Google Antigravity</strong> (without the plugin) — <code>~/.gemini/config/mcp_config.json</code> or workspace <code>.agents/mcp_config.json</code></summary>
165
176
 
166
- Same `mcpServers` block as the generic snippet above. In the IDE: **…** on the agent panel → **MCP Servers** → **Manage MCP Servers** → **View raw config**. Antigravity 2.0, IDE, and CLI share the Gemini config file. You may need to approve the server's tools on first run.
177
+ ```json
178
+ {
179
+ "mcpServers": {
180
+ "cursor-delegate": {
181
+ "command": "npx",
182
+ "args": ["-y", "cursor-delegate-mcp"],
183
+ "timeoutSeconds": 21660
184
+ }
185
+ }
186
+ }
187
+ ```
167
188
 
168
189
  </details>
169
190
 
@@ -181,25 +202,6 @@ Same shape as OpenCode: `type: "local"` and `command` as one array. In the VS Co
181
202
 
182
203
  </details>
183
204
 
184
- <details>
185
- <summary><strong>Zed</strong> — Settings → AI → MCP Servers, or <code>context_servers</code> in Zed settings</summary>
186
-
187
- ```json
188
- {
189
- "context_servers": {
190
- "cursor-delegate": {
191
- "command": "npx",
192
- "args": ["-y", "cursor-delegate-mcp"],
193
- "env": {}
194
- }
195
- }
196
- }
197
- ```
198
-
199
- Zed's native agent uses this. External ACP agents in Zed read their own MCP config unless you forward Zed's servers.
200
-
201
- </details>
202
-
203
205
  ## License
204
206
 
205
207
  MIT © [Andrei Lungeanu](https://github.com/andreilungeanu)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-delegate-mcp",
3
- "version": "2.6.0",
3
+ "version": "2.8.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;