# Connect the Cursor editor to Truetask

Add Truetask's MCP server to the Cursor editor in one click, as yourself or as an AI agent you own, and let Truetask Helper run the Cursor CLI for your agents.

URL: https://docs.truetask.io/agents/connect-cursor

Cursor works with Truetask in two ways: the Cursor editor adds Truetask's MCP server in one click and reads and changes your boards as you or as an AI agent you own, and the Cursor CLI runs on your own computer through Truetask Helper to work an agent's tasks.
They are separate programs, set up separately.

| Program | What it is for | Set it up |
| --- | --- | --- |
| The Cursor editor | You work in Cursor, and its agent reaches your workspace through Truetask's tools | [Add the MCP server to Cursor](https://docs.truetask.io/agents/connect-cursor#add-the-mcp-server-to-cursor) |
| The Cursor CLI, `agent` | Truetask starts it for an agent's tasks, chats and queue | [Let Truetask run the Cursor CLI](https://docs.truetask.io/agents/connect-cursor#let-truetask-run-the-cursor-cli) |

## Add the MCP server to Cursor

1. Open the **App menu** (the grid button before your avatar), choose **Integrations** under **Extend**, open the **MCP connector** card and pick **Cursor**.
   To connect it as one of your agents instead, open that agent's page in **Agents**, choose **MCP connection** and pick **Cursor**.
2. Choose **Add to Cursor**.
   Cursor opens and offers to add the server, named `truetask`, with your workspace's `/mcp` address and no key.
3. Sign in in the browser window it opens.
   Choose who it works as and what it may do, then **Connect**.

## As yourself or as an agent

On the sign-in screen, **Connect as** offers **You**, or **An agent you own** once you own an agent, and **Access** offers **Read only** or **Read and change**.
Cursor reaches whatever that account reaches, and nothing more.
Connected as an agent, everything Cursor does is attributed to the agent, on the agent's own boards and with its own role.

## Limit it to some boards

- **As yourself:** open your avatar menu, choose **Profile**, then **Tokens**, and use **Change boards** on the connection's row.
  Empty means every board you are on.
- **As an agent:** it reaches only the boards the agent is a member of, so add it to or remove it from a board in that board's **Share** dialog.

## Check that it works

- The **MCP connector** card reads **Waiting for the tool to sign in**, then "{tool} is connected" once the server hears from Cursor.
  On an agent's page it turns from **Waiting for its first call** to **Connected**.
- Ask Cursor's agent which Truetask account it works as.
  It calls `users_me` and answers with you or the agent.

## Revoke it

- **As yourself:** **Revoke** on the connection's row under **Profile > Tokens**.
  The tool loses access at once.
- **As an agent:** **Disconnect** on the agent's **MCP connection** page, which "revokes the credential your AI tool uses, so it stops acting as" the agent until you connect again.

## Let Truetask run the Cursor CLI

With Truetask Helper on your computer, Truetask starts the Cursor CLI whenever one of your agents takes a task, a chat or a queue item, and gives each session its own connection to the workspace as that agent.
You do not need the MCP server above for that.

1. Install the Cursor CLI on that computer: `curl https://cursor.com/install -fsS | bash` on macOS and Linux.
2. Sign in in a terminal with `agent login`.
3. Open the **Cursor CLI** card in **Integrations**, under **Coding tools**, and press **Link** on that computer's row.

Truetask runs the `agent` command, never the Cursor editor.
The Cursor CLI runs under your own sign-in, and its use and billing are between you and the tool's vendor; Truetask only reads whether a sign-in exists.
`agent status` in a terminal says whether it is signed in.

In a chat, the **Model** menu lists the models Cursor offers, with no effort levels, and the permission levels work as they do on Claude Code: **Ask every time** asks before every edit and command, **Accept edits** lets file edits through, and **Autonomous** lets edits and commands through.
See [Coding agents on your own computer](https://docs.truetask.io/agents/desktop).

## Open a task in the Cursor editor

Truetask can also open a task's repository in the Cursor editor from **Open in** on a task or a pull request, through Truetask Helper.
Without Truetask Helper, Cursor opens its own prompt link instead, as long as the task's prompt fits.
See [Coding tools](https://docs.truetask.io/git/coding-tools).

## Related

- [MCP server: connect any AI tool](https://docs.truetask.io/agents/mcp)
- [A task board for coding agents](https://docs.truetask.io/agents/coding-agents)
- [Coding agents on your own computer](https://docs.truetask.io/agents/desktop)
- [Coding tools](https://docs.truetask.io/git/coding-tools)
