cursor-agent-bridge
Provides tools for inspecting and modifying Git repositories in configured workspaces, including reviewing changes with git status/diff and staging, committing, and pushing changes with user confirmation.
Click on "Install 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-bridgeDelegate to Cursor Agent: refactor the login flow in my project and show me the diff"
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.
Cybas Agents Bridge
⚠️ WARNING: This MCP server gives a connected AI agent the ability to read, edit, and (with durable authorization) run local commands in configured workspaces on your machine. Only connect trusted MCP clients. Never expose HTTP mode on a public network without authentication, Origin allowlisting,
CURSOR_ALLOWED_WORKSPACES, and a loopback bind (CURSOR_BRIDGE_HOST, default127.0.0.1) behind a tunnel.
An MCP server that lets Claude Code / ChatGPT (or any MCP client) hand off coding tasks to the local Cursor Agent CLI, with durable workstream authorization, named sessions, and async jobs.
Setup
{
"mcpServers": {
"cursor-agent-bridge": {
"command": "node",
"args": ["/path/to/cursor-agent-bridge/index.js"]
}
}
}Requires the cursor-agent CLI on PATH (or CURSOR_AGENT_PATH).
State directory defaults to ~/.cursor-agent-bridge (CURSOR_BRIDGE_STATE_DIR).
Do not store bridge state inside a public git repo.
Related MCP server: cursor-mcp-bridge
Tools (v3.1)
Tool | Purpose |
| Read-only operator guide for workflows, job states, recovery, auth, and sessions |
| Sync Cursor task; |
| Durable long-running jobs and restart-aware recovery |
| Named sessions ( |
| Durable workstream authz |
| Allowlist-primary local |
| Narrow |
| Structured read-only git inspection |
| Legacy convenience wrapper around inspect |
| Validate-only commit plan → immutable |
| Prefer |
| Push only; requires |
Typical workflow: authorize → delegate/job → git_inspect → commit_plan → show plan →
commit(plan_id) → inspect commit → approve push → push.
For long-running work, prefer cursor_agent_start_job. Save the returned job_id and
retrieve the result later with cursor_agent_job_result; do not continuously poll. If a
job is orphaned or legacy lost after an MCP/bridge restart, call cursor_agent_job_inspect
and retrieve its persisted result before retrying. These states do not prove that the
remote Cursor worker failed.
An agent that is near its context limit must return CONTEXT_NEAR_FULL; start a fresh
named session with new_session: true for the next unrelated task.
Commit plans
cursor_agent_commit_plan snapshots HEAD, branch, file content hashes, and dirty-set
without mutating the index. cursor_agent_commit({ plan_id, confirmed: true }) re-checks
HEAD/branch/hashes/empty index/expiry before staging.
Diagnosing HTTP 405
Bridge stderr logs safe request lines: method path … status=….
Restart the new bridge process behind the tunnel.
Trigger the ChatGPT connector once.
If you see
[http] … POST /mcp …the request reached Express.If ChatGPT reports 405 but no bridge log line appears, the 405 is upstream (Cloudflare / tunnel / wrong URL / Access), not the MCP transport.
If the log shows another method (e.g.
PUT/DELETE) withstatus=405, Express is correctly rejecting it (Allow: GET, POST, OPTIONS).OPTIONS /mcpis handled (204) for CORS preflight when Origin is allowlisted.
GET /healthz — liveness only (no secrets/paths).
Authorization model
Call cursor_agent_authorize with confirmed=true after human approval. The
bridge returns an authorization_id that later calls must present. Capabilities
are never silently broadened.
Level-2 local (recommended default):
capabilities:
files.read,files.write,process.local,git.read,git.stage_selected,git.commitnetwork=deny,ssh=deny
process.local does not enable Cursor --force --sandbox disabled. It is
allowlist-primary (python/node/git/npm/pytest/…). Prefer
cursor_agent_diagnostic_exec for narrow version/import checks. Unrestricted Cursor
(shell+network+SSH conflated by the CLI) requires network=allow and the
network capability (high risk).
Named sessions
Sessions are keyed by workspace + session_name. A fresh reviewer session
does not overwrite or resume builder.
HTTP mode
export CURSOR_BRIDGE_TOKEN=...
export CURSOR_ALLOWED_WORKSPACES=/abs/path/one,/abs/path/two
export CURSOR_BRIDGE_ALLOWED_ORIGINS=https://chatgpt.com
export CURSOR_BRIDGE_HOST=127.0.0.1 # default
PORT=8787 node index.js --httpSee start-http.example.sh. Copy to a gitignored local launcher and keep secrets
in .env.local / .http_token.
HTTP mode refuses to start if CURSOR_ALLOWED_WORKSPACES is empty.
Cloudflare Access: set CF_ACCESS_TEAM_DOMAIN, CF_ACCESS_AUD (required for
assertion audience enforcement), and optionally CF_ACCESS_ALLOWED_EMAIL.
GET /healthz — liveness only (no secrets/paths).
Important limitations
Cursor CLI only exposes --sandbox enabled|disabled and --force. There is no
separate “local shell but no network/SSH” switch. The bridge therefore:
keeps commit/push as bridge-owned git actions;
runs Level-2 local commands through allowlisted
cursor_agent_local_execand a narrowercursor_agent_diagnostic_execprofile;documents that allowlisted interpreters may still open sockets.
Clients that already loaded the MCP server must reconnect to see schema changes.
Tests
npm testThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server wrapping the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent for file writing, bash commands, and codebase queries.
- AlicenseAqualityBmaintenanceMCP server that lets any agent or MCP host delegate tasks to the Cursor CLI agent for fast, headless execution. Supports task delegation, project discovery, file analysis, and follow-up sessions.3152MIT
- Alicense-qualityBmaintenanceA stdio MCP server that lets Codex Desktop/CLI delegate implementation tasks to Claude Code CLI with workspace validation, Git status checks, and session resume capabilities.4MIT
- AlicenseBqualityCmaintenanceMCP server connecting Claude/Cursor to Codex CLI, enabling code analysis via @ file references, multi-turn conversations, sandboxed edits, and structured change mode.1320223MIT
Related MCP Connectors
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cybas/cybas-agents-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server