> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ironbee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> IronBee (ironbee.ai) is an AI QA engineer: it verifies code changes against the running app and keeps the evidence. It is not related to the IronBee open-source web application firewall.
> The console is at https://console.ironbee.ai.
> Install the CLI with `npm install -g @ironbee-ai/cli`, sign in with `ironbee login`, and set up a project with `ironbee install`.
> In GitHub workflows, use the action as `ironbee-ai/ironbee-action@v1` and pass the `IRONBEE_API_KEY` secret as the `ironbee_api_key` input.
> In GitLab pipelines, include the component `gitlab.com/ironbee-ai/ironbee-gitlab/verify@v1`; it reads the `IRONBEE_API_KEY` CI/CD variable by default.
> In Bitbucket Pipelines, run the pipe `docker://ghcr.io/ironbee-ai/ironbee-bitbucket:v1` and pass `IRONBEE_API_KEY: $IRONBEE_API_KEY` and `BITBUCKET_OAUTH_TOKEN: $BITBUCKET_OAUTH_TOKEN` under its `variables:`.
> Console scenarios (https://docs.ironbee.ai/console/scenarios) and CLI saved scenarios (https://docs.ironbee.ai/cli/guides/scenarios) are separate features.
> For plans and prices, link to https://ironbee.ai/pricing; the website is the source of truth for them.

# Cursor

> How IronBee integrates with Cursor - slash commands, rules, hooks, tools, and MCP activation.

When you run `ironbee install` in a project where [Cursor](https://cursor.com) is detected, IronBee writes the hooks, rules, and tools Cursor needs to verify your agent's work. The integration mirrors [Claude Code](https://docs.ironbee.ai/cli/clients/claude-code.md), with a few Cursor-specific details, including one manual step to activate the MCP server.

***

## What gets installed

| File | What it does |
| - | - |
| `.cursor/hooks.json` | Registers IronBee's lifecycle hooks |
| `.cursor/skills/ironbee-verification.md` | The verification skill the agent follows (enforce mode) |
| `.cursor/skills/ironbee-verify/SKILL.md` | The `/ironbee-verify` command |
| `.cursor/skills/ironbee-review/SKILL.md` | The `/ironbee-review` command, for a [code review](https://docs.ironbee.ai/cli/guides/code-review.md#from-a-coding-agent) of your working tree. Only you can run it |
| `.cursor/skills/ironbee-{manage,search,run,sync}-scenario/SKILL.md` | The [saved-scenario](https://docs.ironbee.ai/cli/guides/scenarios.md) commands (the main agent drives the scenario tools - Cursor has no sub-agent) |
| `.cursor/skills/ironbee-issue-track/SKILL.md` | The `/ironbee-issue-track` command - written only when an [issue tracker](https://docs.ironbee.ai/cli/guides/issue-tracking.md) is connected (the main agent drives the tracker tools) |
| `.cursor/rules/ironbee-verification.mdc` | An always-applied rule (`alwaysApply: true`), in enforce mode |
| `.cursor/mcp.json` | The devtools MCP server - a single **`ironbee-devtools`** entry that serves every enabled cycle's tools (`bdt_*` / `ndt_*` / `pdt_*` / `bedt_*` / `adt_*` / `tdt_*`), plus the shared `ibdt_*` family (batch execute, scenario run/CRUD, o11y trace helpers, issue-tracker tools) |
| `.cursor/permissions.json` | An allowlist so the agent isn't prompted on every devtools call or `ironbee` command (a single `ironbee-devtools:*` + `ironbee` in the terminal allowlist) |

These are merged into your existing Cursor config, not overwritten.

> [!NOTE]
>
> Unlike Claude Code and Codex, Cursor **doesn't use a verifier sub-agent** - the main agent drives the devtools tools directly. (Cursor's sub-agents run in a separate conversation that can't share the verification session, so there's nowhere to delegate to.) The [`verification.model`](https://docs.ironbee.ai/cli/configuration/configuration#verification) setting is therefore a no-op for Cursor.

***

## Activate the MCP server

> [!WARNING]
>
> Cursor sometimes doesn't pick up MCP servers added via `mcp.json` automatically. After installing, you usually need to activate it by hand.

After running `ironbee install`:

1. **Restart Cursor** so it loads the new hooks and MCP config.
2. Go to **Settings → Tools & MCP** and confirm the **`ironbee-devtools`** server is listed and on (it carries the tools for every cycle you enabled).
3. If the server shows as enabled but its tools aren't available, toggle it off and back on.

> [!NOTE]
>
> This is a known Cursor limitation: MCP servers added via config sometimes need a manual nudge.

***

## Slash commands

The `/ironbee-verify` and `/ironbee-review` commands from Claude Code are available in Cursor too:

* **`/ironbee-verify`**: run a verification cycle for the current changes. You can pass a **custom scenario** - inline text or a path to a scenario file - that defines exactly what to verify; when supplied it replaces the default "exercise the changed paths" flow. An optional leading `fix` switches it from the default verify-only behavior into a fix-and-re-verify loop - see [Verify-only vs. fix mode](https://docs.ironbee.ai/cli/guides/verification.md#verify-only-vs-fix-mode).
* **`/ironbee-review`**: review your working tree with `ironbee review` and report the findings. `fix` also fixes the blocking ones, `fix loop` reviews again after each fix pass, and `price` asks what the review would cost. A review spends your team's credits, so the model never invokes it on its own. See [From a coding agent](https://docs.ironbee.ai/cli/guides/code-review.md#from-a-coding-agent).

See [Claude Code → Slash commands](https://docs.ironbee.ai/cli/clients/claude-code.md#slash-commands) for the full breakdown; it behaves the same in Cursor, except Cursor's main agent runs the verification itself rather than delegating to a sub-agent. The same goes for `/ironbee-issue-track` when an [issue tracker is connected](https://docs.ironbee.ai/cli/guides/issue-tracking.md).

> [!NOTE]
>
> Cursor's CLI can try to hand an IronBee skill to a **sub-agent** via its `Task` tool - but a Cursor sub-agent runs in a separate conversation that can't share the verification session, so its evidence would silently never register. IronBee installs a hook that denies exactly those delegations (your own unrelated sub-agents pass through), keeping the verify, scenario, and issue-track skills on the main agent where their evidence counts.

***

## How verification is enforced

Cursor's stop hook can't hard-deny completion the way Claude's can, so IronBee uses Cursor's `followup_message` mechanism: when verification fails, it auto-submits a new prompt that pushes the agent back into the verification loop, mechanically preventing the task from finishing until it passes (up to Cursor's `loop_limit`, default 5).

> [!NOTE]
>
> Restart Cursor after installing, and remember the MCP activation step above; without it the agent won't have the devtools tools it needs to verify.

> [!NOTE]
>
> Cursor can also power IronBee's **LLM suggestions** - the `s` "suggest" key in the install platform picker and the [`ironbee checks suggest`](https://docs.ironbee.ai/cli/guides/verification#let-ironbee-suggest-your-checks) command - by running a one-shot headless prompt via `cursor-agent`. When Claude Code or Codex is also present, IronBee prefers those (`claude > codex > cursor`).

***

## What Cursor sessions ship

Cursor sessions ship the same events as Claude Code and Codex - session lifecycle, agent turns, tool calls, file changes, verification cycles, and verdicts - through the [Collector](https://docs.ironbee.ai/cli/configuration/configuration.md#collector).

IronBee also does one read-only lookup in Cursor's local SQLite store (`state.vscdb`): the signed-in user's cached email, so events can be attributed to you in the Console. Nothing is ever written there, and the read degrades silently when no SQLite driver is available. Point it elsewhere with [`IRONBEE_CURSOR_USER_DIR`](https://docs.ironbee.ai/cli/configuration/environment-variables#advanced) if your Cursor install isn't in the standard per-OS location.

> [!NOTE]
>
> IronBee 0.42 removed the Cursor usage-API integration (`ironbee cursor api-access`) that used to enrich sessions with per-request tokens and cost from `api2.cursor.sh`, together with the rest of the insights layer. The `cursor.apiAccess.*` config keys are inert and can be dropped from your config files.

***

## What's next?

> [card] [Claude Code](https://docs.ironbee.ai/cli/clients/claude-code.md)
>
> The same integration for Claude Code.

> [card] [Codex](https://docs.ironbee.ai/cli/clients/codex.md)
>
> The same integration for Codex.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.