Cursor Delegate

io.github.andreilungeanu由 GitHub 账号 andreilungeanu 发布v2.8.0更新于 Nov 8, 2026

Bridge AI coding hosts to cursor-agent over the Agent Client Protocol.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

把 MCP 客户端接到 Cursor 的命令行代理,让助手把代码实现外包出去并拿回结构化结果供审阅。

可以做什么
  • 把写好的任务说明交给 Cursor 命令行代理,一次性返回最终答复、改动文件、会话 ID 和计划组成的 JSON
  • 先出计划,审阅后在同一会话中实施
  • 就代码库提问
  • 恢复会话以回答 Cursor 返回的澄清问题,而不是阻塞等待
  • 用 doctor 工具诊断配置问题
适用场景
适合让前沿助手负责理解任务、写说明和审阅改动,而由另一个 Cursor 命令行代理执行多文件编辑;也适合希望实现环节使用 Cursor 模型额度而非其他订阅的场景。
运行要求
以 stdio 方式在本机运行,通常通过 npx 启动。需要 Node.js 20+ 以及已安装并登录的 Cursor 命令行(cursor-agent login)。未声明 API 密钥或环境变量;各编辑器的配置方式不同。
安装前请注意
被委派的代理会修改所指定工作目录中的文件,接受前应审阅差异。它依赖你已有的 Cursor 命令行登录与套餐,用量可能计入 Cursor 模型额度。仅限桌面端,不提供网页版。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cursor Delegate,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Cursor Delegate

Stop burning your frontier agent's limits on boilerplate.

Delegate edits to Cursor's CLI agent — your agent writes the brief and reviews the diff.

[npm version] [npm downloads] [MCP Registry] [cursor-delegate-mcp MCP server] [node] [license: MIT] [tests]

[Cursor Delegate logo]

Use your best coding agent where its judgment matters most: understanding the task, shaping the plan, and reviewing the result.

Cursor Delegate is the MCP bridge that lets Claude Code, ChatGPT/Codex, Copilot — or any MCP client — hand implementation to Cursor's CLI agent, then get a clean, structured result back for review.


[Demo]

🧠 Frontier quality, kept

Your assistant does what frontier models are for: understands the task, writes a precise brief, reviews the finished diff. Composer 2.5 runs the implementation loop under that brief. The bundled skill puts the review step in the loop — the agent that scoped the work reads the changed files back before reporting.

⚡ Done faster

Composer 2.5 is built for throughput on multi-file edits. The whole delegation is one call — brief in, result out — so you review a finished diff instead of babysitting edits landing file by file.

🔋 Your limits stop being the bottleneck

Composer and Grok draw from the Cursor Models usage pool, separate from third-party model usage on supported Cursor plans. Your Claude or Codex subscription handles the brief and review while Cursor runs the implementation. If you pay per token on API, implementation moves onto the Cursor capacity you already have.

[You and your agent plan and review; the MCP delegate tool hands the brief to cursor-agent (Composer 2.5), which implements and edits your workspace; a clean result comes back with what changed, which files, and the plan, for your agent to review]

[Delegate result payload]

Features

  • 🤝 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.
  • 💬 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.
  • 📦 Clean, named results — final answer, changed files, session id, and the plan, returned as one compact JSON payload. Nothing to scrape.
  • 📋 Plan first — plan mode: Cursor drafts a plan, you review it, then the same session implements it.
  • 🔍 Ask anything — ask mode: Q&A over your codebase.
  • 🩺 Self-diagnosing — a doctor tool that tells you exactly what's missing if setup isn't right.
  • 🔌 Portable — plain stdio MCP, so it runs anywhere: VS Code, JetBrains, Windsurf, Visual Studio, OpenCode, Antigravity, and more.

plan and ask are instructions to the agent, and workspace is its working directory — Security and the delegate reference spell out what the bridge enforces and what it reports back.

Install

You need Node.js 20+ and the Cursor CLI, logged in (cursor-agent login).

Claude Code

shell
/plugin marketplace add andreilungeanu/cursor-delegate-mcp/plugin install cursor-delegate@cursor-delegate-mcp

Then just ask:

Delegate to Cursor: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.

That's the whole loop — Claude writes the brief, Cursor grinds through the files, Claude walks you through the diff.

ChatGPT desktop / Codex

shell
codex plugin marketplace add andreilungeanu/cursor-delegate-mcpcodex plugin add cursor-delegate@cursor-delegate-mcp

GitHub Copilot CLI

shell
copilot plugin install andreilungeanu/cursor-delegate-mcp

Any other MCP client

json
{  "mcpServers": {    "cursor-delegate": {      "command": "npx",      "args": ["-y", "cursor-delegate-mcp"]    }  }}

Client-specific config locations

VS Code — one-click install, or .vscode/mcp.json

[Install in VS Code] [Install in VS Code Insiders]

Or add it manually:

json
{  "servers": {    "cursor-delegate": {      "type": "stdio",      "command": "npx",      "args": ["-y", "cursor-delegate-mcp"]    }  }}

Or run Chat: Install Plugin From Source with this repository's URL.

JetBrains AI Assistant — Settings → Tools → AI Assistant → MCP

Under Settings → Tools → AI Assistant → Model Context Protocol (MCP), add a server with command npx and arguments -y cursor-delegate-mcp.

Windsurf — ~/.codeium/windsurf/mcp_config.json

Same mcpServers block as the generic snippet above. Cascade caps you at 100 tools across all servers.

Visual Studio 2022 / 2026 — %USERPROFILE%\.mcp.json

Same servers + type: "stdio" shape as VS Code. 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.

OpenCode — ~/.config/opencode/opencode.json or project opencode.json

OpenCode does not use mcpServers. Local servers go under mcp, with type: "local" and command as one array:

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "cursor-delegate": {      "type": "local",      "command": ["npx", "-y", "cursor-delegate-mcp"],      "enabled": true    }  }}
Google Antigravity — ~/.gemini/config/mcp_config.json or workspace .agents/mcp_config.json

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.

Kiro — .kiro/settings/mcp.json or ~/.kiro/settings/mcp.json

Same mcpServers block as the generic snippet above. Workspace file wins when both exist.

Kilo Code — kilo.jsonc (mcp key, not mcpServers)

Same shape as OpenCode: type: "local" and command as one array. 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.

Zed — Settings → AI → MCP Servers, or context_servers in Zed settings
json
{  "context_servers": {    "cursor-delegate": {      "command": "npx",      "args": ["-y", "cursor-delegate-mcp"],      "env": {}    }  }}

Zed's native agent uses this. External ACP agents in Zed read their own MCP config unless you forward Zed's servers.

License

MIT © Andrei Lungeanu

Technical reference · Security · Privacy · Terms · Changelog

来源:README.md,提交 78cadda

工具

3

delegate

Delegate coding task to Cursor

Delegate a coding task to cursor-agent over ACP. Never shell out to cursor-agent — use this tool only. Auto-approves every permission the agent requests, in any mode and anywhere on disk. Clarifying questions arrive as prose in result — resume with resumeSessionId to answer. Keep model (composer-2.5), fast and effort at their defaults unless the user explicitly asks. See the delegate skill.

输入参数fastmodespec必填modeleffortcontextworkspace必填contextFilesresumeSessionId

cancel

Cancel Cursor delegation

Best-effort cancel of an in-flight delegation by sessionId. session/cancel is advisory — the agent may finish the turn anyway, and the delegate result then carries cancelRequested. Status: cancelled, killed (agent process observed to exit), not-running (turn already ended, still resumable), not-found (id not in this process's recent session history).

输入参数forcesessionId必填

doctor

Diagnose Cursor delegation setup

Setup diagnostics: plugin version, MCP client capabilities, cursor-agent launcher resolution. Run when delegation fails or agent.found is false.

输入参数deep

版本历史

5
  1. v2.7.0Nov 7, 2026
  2. v2.6.0Oct 22, 2026
  3. v2.5.2Oct 15, 2026
  4. v2.4.0Oct 5, 2026
  5. v2.3.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分