cursor-agent-bridge
Provides tools to review workspace changes via git status and diff, and to stage, commit, and push changes to a Git repository.
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-bridgeFix the failing test in the checkout flow"
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-server
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
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to spawn and control Codex CLI and Claude Code sessions on the host machine, with session management and filesystem access.4MIT
- FlicenseNot gradedqualityDmaintenanceAn 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.
- FlicenseAqualityBmaintenanceEnables MCP clients to invoke Cursor SDK's agent runtime, run coding agents, list models, and continue conversations.4
- FlicenseNot gradedqualityCmaintenanceEnables ISLI agents and MCP clients to dispatch natural-language coding and terminal tasks to a locally-installed Claude Code CLI, supporting both one-shot execution and persistent sessions with workspace and security controls.
Related MCP Connectors
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
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-private'
If you have feedback or need assistance with the MCP directory API, please join our Discord server