cursor-delegate-mcp 2.1.1 → 2.2.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,21 @@ All notable changes to this project are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.2.0] - 2026-09-03
10
+
11
+ ### Added
12
+
13
+ - Registry and protocol icons: `server.json` `icons[]` and the MCP `initialize` payload
14
+ advertise the light and dark logos as HTTPS URLs (SEP-973). Codex `interface.logoDark`.
15
+
16
+ ### Changed
17
+
18
+ - README client list checked against vendor docs (3 Sep 2026): OpenCode and Google
19
+ Antigravity added; Kiro, Kilo Code, and Zed no longer share one portable snippet;
20
+ Visual Studio covers 2022 17.14+ and 2026. npm description/keywords and
21
+ `llms-install.md` match that list; OpenCode, Kilo Code, and Zed are called out
22
+ as not using `mcpServers`.
23
+
9
24
  ## [2.1.1] - 2026-09-03
10
25
 
11
26
  ### Fixed
package/README.md CHANGED
@@ -46,7 +46,7 @@ Composer and Grok run on their **own usage allowance** on every Cursor plan —
46
46
  - 📋 **Plan first** — `plan` mode: Cursor drafts a plan, you review it, then the same session implements it.
47
47
  - 🔍 **Ask anything** — `ask` mode: Q&A over your codebase.
48
48
  - 🩺 **Self-diagnosing** — a `doctor` tool that tells you exactly what's missing if setup isn't right.
49
- - 🔌 **Portable** — plain stdio MCP, so it runs anywhere: VS Code, JetBrains, Windsurf, Visual Studio, and more.
49
+ - 🔌 **Portable** — plain stdio MCP, so it runs anywhere: VS Code, JetBrains, Windsurf, Visual Studio, OpenCode, Antigravity, and more.
50
50
 
51
51
  `plan` and `ask` are instructions to the agent, and `workspace` is its working directory — [Security](SECURITY.md) and the [delegate reference](skills/delegate/reference.md) spell out what the bridge enforces and what it reports back.
52
52
 
@@ -145,7 +145,7 @@ Heads-up: Cascade caps you at 100 tools across all servers.
145
145
  </details>
146
146
 
147
147
  <details>
148
- <summary><strong>Visual Studio 2022</strong> — <code>%USERPROFILE%\.mcp.json</code></summary>
148
+ <summary><strong>Visual Studio 2022 / 2026</strong> — <code>%USERPROFILE%\.mcp.json</code></summary>
149
149
 
150
150
  ```json
151
151
  {
@@ -159,14 +159,103 @@ Heads-up: Cascade caps you at 100 tools across all servers.
159
159
  }
160
160
  ```
161
161
 
162
- Requires 17.14+. Note the top-level key is `servers`, not `mcpServers`.
162
+ Requires Visual Studio 2026, or 2022 17.14+. Note the top-level key is `servers`, not `mcpServers`. Visual Studio also discovers `.mcp.json` next to the solution, plus `.vscode/mcp.json`.
163
163
 
164
164
  </details>
165
165
 
166
166
  <details>
167
- <summary><strong>Kiro, Kilo Code, Zed</strong> — and any other stdio MCP client</summary>
167
+ <summary><strong>OpenCode</strong> — <code>~/.config/opencode/opencode.json</code> or project <code>opencode.json</code></summary>
168
168
 
169
- Use the portable definition above in the client's own MCP config file.
169
+ OpenCode does **not** use `mcpServers`. Local servers go under `mcp`, with `type: "local"` and `command` as one array:
170
+
171
+ ```json
172
+ {
173
+ "$schema": "https://opencode.ai/config.json",
174
+ "mcp": {
175
+ "cursor-delegate": {
176
+ "type": "local",
177
+ "command": ["npx", "-y", "cursor-delegate-mcp"],
178
+ "enabled": true
179
+ }
180
+ }
181
+ }
182
+ ```
183
+
184
+ </details>
185
+
186
+ <details>
187
+ <summary><strong>Google Antigravity</strong> — <code>~/.gemini/config/mcp_config.json</code> or workspace <code>.agents/mcp_config.json</code></summary>
188
+
189
+ ```json
190
+ {
191
+ "mcpServers": {
192
+ "cursor-delegate": {
193
+ "command": "npx",
194
+ "args": ["-y", "cursor-delegate-mcp"]
195
+ }
196
+ }
197
+ }
198
+ ```
199
+
200
+ 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.
201
+
202
+ </details>
203
+
204
+ <details>
205
+ <summary><strong>Kiro</strong> — <code>.kiro/settings/mcp.json</code> or <code>~/.kiro/settings/mcp.json</code></summary>
206
+
207
+ ```json
208
+ {
209
+ "mcpServers": {
210
+ "cursor-delegate": {
211
+ "command": "npx",
212
+ "args": ["-y", "cursor-delegate-mcp"]
213
+ }
214
+ }
215
+ }
216
+ ```
217
+
218
+ Workspace file wins when both exist.
219
+
220
+ </details>
221
+
222
+ <details>
223
+ <summary><strong>Kilo Code</strong> — <code>kilo.jsonc</code> (<code>mcp</code> key, not <code>mcpServers</code>)</summary>
224
+
225
+ Same shape as OpenCode: `type: "local"` and `command` as one array.
226
+
227
+ ```json
228
+ {
229
+ "mcp": {
230
+ "cursor-delegate": {
231
+ "type": "local",
232
+ "command": ["npx", "-y", "cursor-delegate-mcp"],
233
+ "enabled": true
234
+ }
235
+ }
236
+ }
237
+ ```
238
+
239
+ In the VS Code extension: **Settings → MCP → Add Server → Local (stdio)**. On Windows, if `npx` is not found, use command `cmd` with arguments `/c`, `npx`, `-y`, `cursor-delegate-mcp`.
240
+
241
+ </details>
242
+
243
+ <details>
244
+ <summary><strong>Zed</strong> — Settings → AI → MCP Servers, or <code>context_servers</code> in Zed settings</summary>
245
+
246
+ ```json
247
+ {
248
+ "context_servers": {
249
+ "cursor-delegate": {
250
+ "command": "npx",
251
+ "args": ["-y", "cursor-delegate-mcp"],
252
+ "env": {}
253
+ }
254
+ }
255
+ }
256
+ ```
257
+
258
+ Zed's native agent uses this. External ACP agents in Zed read their own MCP config unless you forward Zed's servers.
170
259
 
171
260
  </details>
172
261
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "cursor-delegate-mcp",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "mcpName": "io.github.andreilungeanu/cursor-delegate-mcp",
5
5
  "type": "module",
6
- "description": "Delegate multi-file coding work from Claude Code, Codex, or Copilot to Cursor's CLI agent — structured results, plan mode, and changed files.",
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.",
7
7
  "license": "MIT",
8
8
  "author": "Andrei Lungeanu <andrei@lungeanu.ro>",
9
9
  "repository": {
@@ -25,6 +25,9 @@
25
25
  "chatgpt",
26
26
  "github-copilot",
27
27
  "vscode",
28
+ "opencode",
29
+ "antigravity",
30
+ "windsurf",
28
31
  "composer",
29
32
  "composer-2.5",
30
33
  "delegation",
package/src/acp-client.js CHANGED
@@ -189,8 +189,15 @@ export class AcpClient extends EventEmitter {
189
189
  }));
190
190
  const observed = await Promise.race([exited, bounded]);
191
191
  clearTimeout(timer);
192
- // Pending RPCs are left to the exit handler, which rejects them with agent-exit. Rejecting
193
- // them here too would settle the same promises twice for no new information.
192
+ // The exit handler rejects in-flight RPCs with stderr. Doing that here on a confirmed
193
+ // exit would race it and the first settlement would drop the forensics. A stop that
194
+ // did not see the child die never gets that handler, so settle those RPCs only when
195
+ // the process is still alive and emitExit has not run.
196
+ if (!observed && !this._exitEmitted && isChildAlive(child)) {
197
+ try {
198
+ this.peer?.rejectAllPending(makeError("agent-exit", "agent process did not exit after stop"));
199
+ } catch {}
200
+ }
194
201
  try { this.peer?.close(); } catch {}
195
202
  return observed;
196
203
  }
package/src/server.js CHANGED
@@ -11,6 +11,13 @@ import { VERSION, readPackageVersion } from "./version.js";
11
11
  import { DETACHED } from "./proc.js";
12
12
  import { PLAN_PRIORITIES, PLAN_STATUSES, TODO_STATUSES } from "./acp-enums.js";
13
13
 
14
+ const ICON_BASE = `https://raw.githubusercontent.com/andreilungeanu/cursor-delegate-mcp/v${VERSION}/assets`;
15
+ /** @type {Array<{ src: string, mimeType: string, sizes: string[], theme: "light" | "dark" }>} */
16
+ const SERVER_ICONS = [
17
+ { src: `${ICON_BASE}/logo-light.png`, mimeType: "image/png", sizes: ["1024x1024"], theme: "light" },
18
+ { src: `${ICON_BASE}/logo-dark.png`, mimeType: "image/png", sizes: ["1024x1024"], theme: "dark" },
19
+ ];
20
+
14
21
  const nodeMajor = Number(process.versions.node.split(".")[0]);
15
22
  if (nodeMajor < 20) {
16
23
  console.error(`cursor-delegate-mcp requires Node 20+ (found ${process.versions.node})`);
@@ -266,7 +273,7 @@ export function buildServer({ runDelegate: runDelegateInjected, runDoctor: runDo
266
273
  const runDelegate = runDelegateInjected || runDelegateDefault;
267
274
  const runDoctor = runDoctorInjected || runDoctorDefault;
268
275
  const server = new McpServer(
269
- { name: "cursor-delegate-mcp", version: VERSION },
276
+ { name: "cursor-delegate-mcp", version: VERSION, icons: SERVER_ICONS },
270
277
  { instructions: SERVER_INSTRUCTIONS }
271
278
  );
272
279