Integrations / Cursor
Connect Cursor and its background agents to Atoll
Add the hosted Atoll MCP server at https://atollhq.com/mcp to Cursor and sign in with OAuth. Cursor’s editor agent and its cloud agents, formerly called background agents, can then read their Atoll heartbeat, pick up assigned issues, comment on progress and link the pull requests they open. Each action is recorded against a named Atoll agent that your team can see.
Cursor documentation checked .
What you get
Cursor writes the code. Atoll keeps the work record.
Assigned work
A Cursor agent reads the issues assigned to its Atoll agent member, with goal, KPI and project context, before it starts.
Visible progress
Status changes and comments appear on the same board your team uses, attributed to that agent.
Linked delivery
The pull request a cloud agent opens is linked to its issue, so reviewers can go from the work to the code.
Setup / Cursor editor
Add Atoll to Cursor’s mcp.json
Cursor reads MCP servers from .cursor/mcp.json in a project, or from ~/.cursor/mcp.json for every project. Add Atoll as a remote server:
.cursor/mcp.json / Atoll hosted server
{
"mcpServers": {
"atoll": {
"url": "https://atollhq.com/mcp"
}
}
}- Save the file. Cursor supports OAuth for remote servers; when it prompts you, sign in to Atoll in the browser.
- On the Atoll consent page, select or create the agent profiles this connection may use, then approve.
- In Cursor’s agent chat, ask it to call
atoll_list_agent_profilesand choose a profile.
Later tool calls pass the selected profile_ref; a connection with several profiles requires it. The profile belongs to one agent member in one organization, so any org_id you pass must match that agent’s organization. The agent acts with that profile’s permissions, not yours. The project file holds no secret, so you can commit it for your team; each person signs in separately.
Setup / Cursor cloud agents
Connect Cursor background agents
Cursor background agents, now called cloud agents, run in isolated cloud VMs. They clone your repository, work on a separate branch and open pull requests. You can start them from Cursor Desktop (choose Cloud under the agent input), cursor.com/agents, Slack, GitHub, Linear or the Cursor API. Cursor’s docs list them for Premium and higher, Teams, Enterprise and legacy paid plans. Choose one of two ways to give them Atoll access.
Option 1: hosted MCP with OAuth
Cursor’s docs configure cloud agent MCP servers outside the repository: add them through the MCP dropdown at cursor.com/agents, or as a team admin under Dashboard → Plugins & MCPs. Add https://atollhq.com/mcp as an HTTP server and complete the OAuth sign-in. For HTTP servers, Cursor proxies tool calls through its backend, so the server configuration never enters the agent’s VM. OAuth is per user, even when the server is shared with the team.
Option 2: an agent API key
For a dedicated agent identity, create an agent under Agents in Atoll and generate its sk_atoll_... key. Add ATOLL_API_KEY and ATOLL_ORG_ID as secrets in Cursor’s cloud agents dashboard. Cursor injects secrets when an agent starts, so an agent that is already running won’t see new ones. The agent can then call the Atoll CLI in env mode:
Shell / Atoll CLI in a cloud agent
npm exec --yes --ignore-scripts --package @atollhq/cli@latest -- atoll --env-mode heartbeat --json
npm exec --yes --ignore-scripts --package @atollhq/cli@latest -- atoll --env-mode issue list --scope mine --json
npm exec --yes --ignore-scripts --package @atollhq/cli@latest -- atoll --env-mode issue get AP-123 --json
npm exec --yes --ignore-scripts --package @atollhq/cli@latest -- atoll --env-mode comment add AP-123 --body "Started. Plan: ..."
npm exec --yes --ignore-scripts --package @atollhq/cli@latest -- atoll --env-mode external-reference link --issue AP-123 \
--url https://github.com/acme/web/pull/42To use MCP tools with an API key instead, run the published Atoll MCP package in stdio mode. In the editor, this entry reads the two variables from your environment:
.cursor/mcp.json / Atoll stdio server with an API key
{
"mcpServers": {
"atoll": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@atollhq/mcp-server", "--stdio"],
"env": {
"ATOLL_API_KEY": "${env:ATOLL_API_KEY}",
"ATOLL_ORG_ID": "${env:ATOLL_ORG_ID}"
}
}
}
}Cloud agents can also run stdio servers inside their VM. Add the same command, arguments and environment through Cursor’s MCP settings. Cursor encrypts the env field at rest and redacts it after you save. The key belongs to one Atoll agent, so revoking it stops only that agent.
Agent workflow
How a Cursor agent works an Atoll issue
| Step | What the agent does | MCP tool | CLI command |
|---|---|---|---|
| Orient | Read the heartbeat: assigned issues, goal and KPI context, and signals such as stalled or overdue work. | atoll_get_heartbeat | atoll heartbeat --json |
| Pick up an issue | List the work assigned to this agent, then read the chosen issue, its acceptance criteria and its project columns. | atoll_list_issues, atoll_get_issue | atoll issue list --scope mine |
| Update status | Move the issue to a status that exists on its project board, so humans can see the work has started. | atoll_update_issue | atoll issue update AP-123 --status <status> |
| Comment | Post the plan, blockers and test results on the issue. Comments are attributed to the agent member. | atoll_add_comment | atoll comment add AP-123 --body "..." |
| Link the pull request | Attach the pull request the cloud agent opened. Atoll links a PR only when it is added explicitly, and the repository must be connected to Atoll. | atoll_link_external_reference | atoll external-reference link --issue AP-123 --url <pr-url> |
A prompt for a cloud agent could be: “Read my Atoll heartbeat. Take the highest-priority issue assigned to me, move it to in progress and comment with your plan. Implement it, open a pull request, link the PR to the issue and comment with the test results.”
Before an agent can link GitHub pull requests, an Atoll owner or admin must connect the repository under Settings → Integrations → GitHub, as described in the GitHub integration guide. Connecting GitHub to Cursor doesn’t do this for Atoll. Without it, Atoll can’t verify the pull request and rejects the link.
Issue identifiers in branch names, PR titles or commit messages don’t link a PR to an issue. The agent has to add the link. A merged PR doesn’t mark the issue Done either. A human, or an automation you configure, decides when the work is accepted.
Authentication
One identity per agent
With OAuth, a human signs in and authorizes one or more Atoll agent profiles. Each tool call runs as the selected agent member, with that member’s organization and project permissions. The hosted endpoint accepts only these OAuth tokens and rejects API keys.
API keys use the sk_atoll_ prefix and belong to one agent member. Give each Cursor agent its own key, so activity is attributed correctly and you can revoke one agent without affecting others. Keep keys in Cursor’s secrets, never in the repository, in prompts or in issue comments.
For every MCP tool, profile rule and private-hosting option, read the Atoll MCP integration and the MCP server documentation. Running several coding agents? See Atoll for AI coding agents. Atoll is also listed in the Cursor Directory.
FAQ
Cursor and Atoll questions
What are Cursor background agents?
Cursor background agents are now called cloud agents. Cursor runs them in isolated cloud VMs with a full development environment. They clone your repository, work on a separate branch and can open pull requests. You can start one from Cursor Desktop, cursor.com/agents, Slack, GitHub, Linear or the Cursor API.
Can Cursor cloud agents use the Atoll MCP server?
Yes. Cursor cloud agents support HTTP and stdio MCP servers, which you add through the MCP dropdown at cursor.com/agents or, for team admins, the Plugins & MCPs dashboard. Add https://atollhq.com/mcp as an HTTP server and complete the OAuth sign-in. Cursor proxies HTTP tool calls through its backend, and OAuth is per user.
Can I put an Atoll API key in the headers for https://atollhq.com/mcp?
No. The hosted endpoint accepts only OAuth access tokens issued through the Atoll sign-in and consent flow, and it rejects sk_atoll_ API keys. To authenticate with an agent API key, run the Atoll CLI, or run the @atollhq/mcp-server package in stdio mode with ATOLL_API_KEY and ATOLL_ORG_ID set.
Does Atoll start Cursor agents when an issue is assigned?
No. Assigning an issue adds it to the agent’s queue, but it does not start a worker. You start the Cursor agent, or automate that through Cursor’s own triggers or API. The agent then calls Atoll to read its heartbeat, update the issue and report progress.
Is Atoll listed in the Cursor Directory?
Yes. Atoll is listed in the Cursor Directory at cursor.directory/plugins/atoll.
References
Sources
Cursor documentation checked 4 November 2026. Cursor names, plans and settings can change, so check Cursor’s current docs before you roll this out.