> For the complete documentation index, see [llms.txt](https://notara.gitbook.io/notara-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notara.gitbook.io/notara-docs/connectors/cursor.md).

# Cursor

Launch and manage Cursor background agents — trigger AI coding tasks on a GitHub repository and get a PR back — from Slack.

## What It Enables

| Tool                     | Capability    | Description                                                  |
| ------------------------ | ------------- | ------------------------------------------------------------ |
| `launch_agent`           | `write`       | Launch a Cursor background agent to write code and open a PR |
| `get_agent_status`       | `read`        | Check the current status of a running agent                  |
| `list_agents`            | `read`        | List recent and running agents                               |
| `add_followup`           | `write`       | Send additional instructions to a running agent              |
| `stop_agent`             | `destructive` | Pause a running agent (can be resumed with add\_followup)    |
| `delete_agent`           | `destructive` | Permanently delete a Cursor agent                            |
| `get_agent_conversation` | `read`        | Get the full conversation history of an agent                |
| `list_repositories`      | `read`        | List accessible GitHub repositories (rate-limited: 1/min)    |
| `get_cursor_info`        | `read`        | Get information about the API key in use                     |

`launch_agent` and `add_followup` require approval by default. `stop_agent` and `delete_agent` require destructive confirmation.

## Setup

**Required:** Cursor API key

**Where to find it:** [cursor.com/settings → API](https://www.cursor.com/settings)

1. In the Notara dashboard, go to **Tools**.
2. Click the **Cursor** tile.
3. In your Cursor account settings, generate an API key.
4. Paste the key into the credential field and click **Verify & Save**.

Your API key is encrypted at rest with AES-256-GCM.

## Example Prompts

> "Launch a Cursor agent on github.com/acme/api to add rate limiting to the /users endpoint."

> "What's the status of Cursor agent abc123?"

> "List all running Cursor agents."


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notara.gitbook.io/notara-docs/connectors/cursor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
