cursor-agent-sync-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cursor-agent-sync-mcpAdd a slugify() utility with tests to src/lib and run npm test"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cursor-agent-sync-mcp
MCP-сервер, который позволяет Claude Code (или любому другому MCP-клиенту)
делегировать выполнение ограниченных задач по написанию кода локальному
cursor-agent CLI. Один инструмент —
cursor_execute — синхронно запускает cursor-agent -p --output-format json --force, дожидается завершения и возвращает компактный отчёт: текст
ответа, git diff --stat, git status --short, код возврата и
sessionID.
В отличие от orchestrate-cursor-agent-mcp (spawn/check/reply/kill через
файловый IPC), здесь один вызов тула блокируется до готового результата —
не нужно отдельными командами проверять статус и убивать процесс. Ценой
этого теряется многотуровый диалог с subagent'ом: задача должна быть
полностью самодостаточной.
Требования
cursor-agentCLI, установленный и авторизованный (cursor-agent status).Node.js 18+.
Related MCP server: cursor-agent-bridge
Установка
Вариант 1 — из npm (рекомендуется)
Пакет опубликован как cursor-agent-sync-mcp
— полностью публичный, ставится без авторизации:
npm install -g cursor-agent-sync-mcpВариант 2 — из исходников
git clone git@github.com:yuriisamohvalov-creator/cursor-mcp.git ~/tools/cursor-mcp
cd ~/tools/cursor-mcp
npm installВариант 3 — из GitHub Packages
Тот же пакет также зеркалирован в GitHub Packages под именем
@yuriisamohvalov-creator/cursor-agent-sync-mcp.
Важно: в отличие от npmjs.org, GitHub Packages требует аутентификации
даже для доступа к пакету (репозиторий приватный) — понадобится .npmrc
со scoped-registry и GitHub-токеном с правом read:packages:
# ~/.npmrc или в проекте
echo "@yuriisamohvalov-creator:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm login --registry=https://npm.pkg.github.com --scope=@yuriisamohvalov-creator
npm install -g @yuriisamohvalov-creator/cursor-agent-sync-mcpПодключение к Claude Code
При установке из npm (npm install -g cursor-agent-sync-mcp) бинарник
уже в PATH:
claude mcp add --scope user cursor -- cursor-agent-sync-mcpПри установке из исходников:
NODE_BIN="$(which node)"
claude mcp add --scope user cursor -- "$NODE_BIN" "$HOME/tools/cursor-mcp/server.mjs"Проверка:
claude mcp get cursor
# Status: ✔ ConnectedПосле подключения новой сессии Claude Code (или рестарта текущей)
инструмент доступен как mcp__cursor__cursor_execute.
Использование инструмента
{
"task": "Add a slugify() helper in src/lib/slug.ts with tests. Acceptance: kebab-case, trims whitespace. Verify with `npm test -- slug`.",
"cwd": "/absolute/path/to/project",
"model": "gpt-5", // опционально
"timeoutMs": 900000 // опционально, по умолчанию 15 минут
}Ответ:
{
"ok": true,
"exitCode": 0,
"sessionID": "...",
"text": "...финальный ответ модели...",
"diffStat": "...git diff --stat...",
"statusShort": "...git status --short..."
}Ограничения
Одна задача — один синхронный запуск
cursor-agent, без параллелизма в рамках одного вызова инструмента и без уточняющих вопросов в процессе (флаг--forceзаставляет агента додумывать самому, если чего-то не хватает).Долгая задача блокирует вызывающую сессию на всё время выполнения — контролируйте через
timeoutMs.Не подменяет ревью: вызывающая сторона должна самостоятельно проверять
diffStat/statusShort, а не доверять только полюok.
Лицензия
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Local-first, governed memory and session continuity for AI coding agents. No cloud, no telemetry.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
Generate and validate a .specs/ bundle for your repo, then hand it to your AI coding agent
Related MCP Servers
- AlicenseCqualityCmaintenanceWraps the cursor-agent CLI to provide cost-effective tools for repository analysis, code search, planning, and editing. Offloads heavy thinking tasks from the host AI to reduce token usage while maintaining precise, scoped workspace operations.75 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients like Claude Code to delegate coding tasks to the local Cursor Agent CLI, with persistent per-workspace sessions that resume across calls.12 npmMIT
- AlicenseAqualityAmaintenanceEnables MCP clients like Claude Code and Codex to delegate coding tasks to Cursor's CLI agent, which implements changes in the workspace and returns clean, structured results for review.3181 npm4MIT
- AlicenseAqualityCmaintenanceEnables Codex to delegate coding tasks to an OpenCode CLI locally, returning structured results such as exit codes, session summaries, tool calls, and git diffs.2MIT