# Test Your AI Agent from Claude Code, Codex or Cursor

**If you build an AI agent with a coding agent such as Claude Code, Codex or Cursor, that coding agent can test the agent for you. It connects to Firedrill through the CLI or the remote MCP server, builds a simulated world for your agent, runs it, reads the report, fixes what failed and runs it again.**

By Firedrill · December 4, 2026.

## How does it work?

Your coding agent operates Firedrill for you. The AI agent you are building is the one being tested.

1. **Connect.** Your coding agent signs in through the `firedrill-run` CLI or the remote MCP server at `https://mcp.firedrill.run`. You approve access in your browser.
2. **Describe your agent.** It reads your repository and registers how your agent starts, which tools it calls and what it needs. Your source code is not uploaded.
3. **Build the world.** It proposes simulated apps, starting data, simulated people and scenarios. You review the plan and the credit estimate before anything runs.
4. **Run.** Your agent runs on your machine against the simulated world.
5. **Read and fix.** Your coding agent reads the report, changes your agent and runs the same scenarios again to compare.

## Set it up in one prompt

Give your coding agent this prompt:

> Set up Firedrill for this project. Fetch https://firedrill.run/agent-setup.md and follow it.

## Set it up by hand

**Claude Code** (remote MCP):

```sh
claude mcp add --scope project --transport http firedrill https://mcp.firedrill.run
```

Then open `/mcp` in Claude Code and authorize Firedrill.

**Codex** (remote MCP):

```sh
codex mcp add firedrill --url https://mcp.firedrill.run
codex mcp login firedrill
```

**Any client, from the terminal** (CLI):

```sh
npx firedrill-run init
```

The [agent quickstart](https://firedrill.run/agents) has configuration for Cursor, VS Code and other MCP clients.

**The Firedrill skill** gives your coding agent setup, drill and report instructions:

```sh
npx skills add firedrill-tools/firedrill-skills
```

## CLI or MCP: which should your coding agent use?

| | CLI | Remote MCP |
| --- | --- | --- |
| Runs your agent on your machine | Yes | No |
| Manages worlds, scenarios and reports | Yes | Yes |
| Signs in with | Device authorization in your browser | Your MCP client's browser sign-in |
| Best for | Running drills from your repository | Preparing worlds and reading reports from chat |

Most setups use both: MCP to plan and read, the CLI to run your agent locally. CLI sign-in and MCP sign-in are separate approvals.

## What stays on your machine?

Your agent, its code and its model calls. Firedrill keeps the worlds, scenarios, simulated apps and reports in the cloud. Real accounts are never used unless you approve a specific one.

## What can you ask your coding agent to do?

- "Test the refund flow of my support agent with two customers who have the same name."
- "Run my agent against a Stripe outage and tell me what it said to the customer."
- "Rerun last week's failing scenarios after this prompt change and compare."

## Related guides

- [How to test an AI agent before production](https://firedrill.run/guides/how-to-test-ai-agents)
- [What is AI agent simulation?](https://firedrill.run/guides/ai-agent-simulation)
- [Run your agent: the full guide for coding agents](https://firedrill.run/run-your-agent.md)
