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

# Set up deployment testing with your coding agent

> Connect your coding agent to the QA Wolf MCP and ask it to run your flows on every deploy. It reads your pipeline, picks the setup, and creates the loop.

> [!TIP]
>
> Your coding agent, such as Claude Code, Codex, or Cursor, is connected to QA Wolf. Follow [QA Wolf MCP](https://docs.qawolf.com/qawolf-mcp.md), or install the plugin for your agent from [qawolf/agent-plugins](https://github.com/qawolf/agent-plugins). Open the agent in the repository that deploys your application.

**1. Prompt your agent**

For every deploy:

```text wrap theme={null}
Set up QA Wolf to run my flows on every deploy. Read how this repository deploys, and show me the plan before you create or change anything.
```

For every pull request:

```text wrap theme={null}
Set up QA Wolf to run my flows on every pull request. Read how this repository deploys previews, and show me the plan before you create or change anything.
```

**2. Approve the agent's plan**

The agent says how your pipeline will report deploys, which flows or tag will run, and on which deploys. Confirm the environment names and, for PR testing, that each pull request gets its own preview name and URL.

**3. Connect your CI**

Go to **Settings → Integrations** to connect GitHub or GitLab.

**4. Confirm the first run**

Deploy, or wait for your next deploy. A run for it appears under **Runs** in QA Wolf.

## What your agent does

The QA Wolf MCP includes a skill for setting up loops, and your agent follows it:

* **Checks your workspace first:** It looks for loops that already cover the request. If the workspace still runs [legacy triggers](https://docs.qawolf.com/legacy-triggers/overview.md), it switches to the [migration](https://docs.qawolf.com/loops/migrate-from-legacy-triggers.md) instead, because the first new loop stops the legacy deployment triggers.
* **Reads your pipeline:** It looks for deploy jobs that create GitHub or GitLab deployments, an existing `deployment.reportStatus` call, and the version of `qawolf/notify-qawolf-on-deploy-action` or `fastlane-plugin-qawolf` you use. If no repository is open, it asks you instead.
* **Picks the best path your pipeline can reach:** It ranks the paths in this order.
  1. [GitHub](https://docs.qawolf.com/deployment-testing/github.md) or [GitLab](https://docs.qawolf.com/deployment-testing/gitlab.md) deployments, which may need no pipeline change at all.
  2. A `deployment.reportStatus` call from CI, through [GitHub Actions](https://docs.qawolf.com/deployment-testing/github-actions.md), the [Node.js SDK](https://docs.qawolf.com/deployment-testing/ci-sdk.md), or a [webhook](https://docs.qawolf.com/deployment-testing/webhook.md).
  3. A schedule, when the pipeline can't change.
* **Agrees with you on what runs:** It confirms a list of flows or a tag, and which deploys to run them on, before it creates anything. To read the loop before it runs, ask the agent to create it paused.
* **Creates the [loop](https://docs.qawolf.com/loops/overview.md):** It also tells you what to change in your pipeline, if anything.
* **Gates your release on the result, if you ask:** It sets up the gate after a real deploy has produced a run.

If a deploy doesn't start a run, ask your agent why. It reads the deployments QA Wolf received and each loop's verdict, and explains what didn't match.

## Set it up by hand

The other pages in this section cover the same setups step by step:

* [GitHub deployments](https://docs.qawolf.com/deployment-testing/github.md) and [GitHub Actions](https://docs.qawolf.com/deployment-testing/github-actions.md)
* [GitLab deployments](https://docs.qawolf.com/deployment-testing/gitlab.md)
* [Webhook](https://docs.qawolf.com/deployment-testing/webhook.md), [Node.js SDK](https://docs.qawolf.com/deployment-testing/ci-sdk.md), and [CircleCI](https://docs.qawolf.com/deployment-testing/circle-ci.md)
* [PR testing](https://docs.qawolf.com/deployment-testing/pr-testing.md)


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