Prerequisites
- A Cursor account with Cloud Agents enabled
- A Cursor user API key from account settings
- GitHub repositories the Cursor GitHub App can access (or use
open_as_cursor_github_app) - project_contributor access in AgentRuntime
Connect in AgentRuntime
1
Create a Cursor API key
In Cursor, open Settings → API and generate a user API key. Store it securely — treat it like a password.
2
Create a connection
Go to Connections and click New custom connection to create an API key connection with
APIKey. Set APIBase only if Cursor provides a non-default endpoint.3
Add cursor MCP instance
Go to MCP, click Add instance for cursor, wire your connection on Instance config, set the profile active, and save.
4
List existing agents
Run mcp_call →
list_agents to confirm the key works before launching production agents.Cloud agents run on Cursor infrastructure and modify GitHub repositories. Use human_task approval before
launch_agent in production repos.What you can build
- Bug-fix delegation — Issue triage LLM step →
launch_agentwith repro steps and target repo → pollfind_agent_status→ notify on PR creation. - Refactor batches — Scheduled workflow launches agents per module with
branch_nameandauto_create_pr. - Follow-up loops — Initial agent run → review output →
add_followup_instructionwith corrections. - Agent housekeeping —
list_agents→delete_agentfor stale or failed runs.
Tools
Example
Launch an agent to implement a feature from a workflow input:Configuration
Troubleshooting
Related
- Integrations quickstart
- Human tasks — approval before launching agents
- Connector catalog
- Troubleshooting