Retrieved article excerpt
Open article · Retrieved 2026-10-22T22:27:25.780615+00:00
[CATT logo: an orange cartoon cat at a desk, smiling over its shoulder, with CATT spelled in code on the monitor](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/assets/catt-logo.svg)
# Consumer Agent Testing Tool (CATT)
Consumer Agent Testing Tool (CATT) tests how an assistant uses your service.
Run a scripted or model-driven agent against an MCP server, an MCP app, a
website or an HTTP API. Check what the service did, inspect the evidence, and
compare results across builds.
**Muse and Instinct are supported surrogate emulation targets.** Muse remains
the default. Both use the [shared connector testing contract](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/surrogate-contract.md),
including routing, memory, payments, browser/HTTP tasks and scheduling.
See the [Instinct research](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/instinct-emulation.md) for its sources and
limits. The model that drives a trial is separate from the assistant being emulated.
[Contributing](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/CONTRIBUTING.md) | [Security](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/SECURITY.md) | [Changelog](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/CHANGELOG.md) | [MIT license](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/LICENSE)
> **A test host.** CATT is a surrogate: it approximates an assistant's
> host, not its private implementation. A passing test does not certify
> compatibility with Muse or any hosted assistant. Each Muse-specific behavior
> has a recorded basis: `documented`, `unofficial`, `assumed` or `unknown`.
> This project is not affiliated with or endorsed by Meta, Instinct, OpenAI or Anthropic.
## What you can test today
| Lane | Command | What it checks | Status and scope |
| --- | --- | --- | --- |
| MCP connectors | `connector-run SCENARIO` | Use the server's tools, apply account and approval rules, protect private values, and check the service's recorded outcome and the agent's answer. | Muse and Instinct surrogates: `--emulation-target muse|instinct`. See [connector lane](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/connector-lane.md). |
| Connector extensions | `connector-run SCENARIO` with `extensions:` | Routes, memory, custom API clients, browser actions, wallet cards, background jobs, untrusted content, channel limits and simulated users. | Supported with the lane. `user_simulator` is exploratory and cannot run in scripted tests or decision contracts. See [extensions](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/connector-extensions.md). |
| Scenario scaffolding | `scaffold URL --output FILE`, `scaffold --from-run RUN --output FILE` | Read a tool catalog or turn an agent run into scripted calls. Calls no service tools. Replace every `TODO(scaffold)` before running. | Supported. One Streamable HTTP connector; no OpenAPI input. |
| Muse connector readiness | `check URL --suite muse-guidelines` | Review the catalog and optional manifest against the pinned connector guidelines without calling tools. | Documented constraints, not admission. See [readiness checks](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/readiness-checks.md). |
| Shared surrogate readiness | `check URL --suite surrogate --emulation-target instinct` | Check the catalog, allowlist, schema syntax and selected projection without calling tools. | CATT's contract for either target; see [shared contract](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/surrogate-contract.md). |
| Personal Agent Protocol | `check ORIGIN --suite poppy` | Read `poppy.json`. With a manifest, probe sessions, sign-in and one declared operation on the company's hosts. | Draft 0.1; no production Muse evidence. |
| Muse gadget registration | `check FILE --suite gadget` | Check a `link.register` message and command specs against the pinned SDK limits. Opens no connection. | Documented limits, not admission. The SDK's terms say it is not a developer platform. |
| MCP protocol contracts | `check TARGET` | Check schemas, version negotiation, sessions and operation contracts; run the pinned conformance suite. | Supported. Generic MCP evidence; see [readiness checks](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/readiness-checks.md). |
| Embedded MCP apps | `surface-run SCENARIO` | Render the app in Chromium and check forms, tool calls, resources and service responses. An agent driver chooses from the scenario's scripted steps. | Supported. Generic MCP Apps host, not Muse. See [host scope](https://github.com/Coverage-Cat/consumer-agent-testing-tool#what-the-mcp-apps-host-implements). |
| Websites | `browse POLICY`, `run --surface browser` | Act on accessibility snapshots under request rules. Takeover pauses the run (exit 3); the CLI has no handback. | Native Chromium, without OS isolation. Browser scenarios use only the packaged reservation portal. |
| HTTP APIs | `run --surface api-tools`, `inspect`, `check` | Bind approval to each proposed call and check backend outcomes. | Supported with a mapping. Your API also needs a loopback deployment and private control adapter. See [API scenarios](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/api-scenarios.md) and [API trials](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/api-behavior.md). |
| Evidence | `report`, `export`, `replay`, `diff` | Inspect reports, redact exports, verify playback and compare runs. | Supported. Playback and diff require sealed runs. |
| Development extensions | `--development-extensions COMMAND` | CLI binaries, isolated browsers, cloud workers, local Glimmer, generated OpenAPI and Prism mocks. | Outside the supported release. See [development extensions](https://github.com/Coverage-Cat/consumer-agent-testing-tool#development-extensions). |
The connector lane records the basis for each Muse-specific behavior. Tool classes
and approval prompts follow documented guidelines. The `muse-cli` projection and
template client follow unofficial mirrors; the native projection is an assumed
generic baseline. The neutral `cli` projection supports both targets as a CATT
treatment. Instinct runs have a separate source record and label the
shared host algorithms as assumptions. Native/CLI MCP is CATT's test adapter;
no public Instinct MCP integration contract was found.
Run the local booking example under Instinct without a model or account:
```
uv run consumer-agent-testing-tool connector-run examples/connector/instinct-booking.yaml \
--driver scripted --script examples/connector/fixture-booking.calls.json \
--start "python -m consumer_agent_testing_tool.connector_fixture --port {port} --variant good --auth none"
```
Set `emulation_target: instinct` in your scenario or pass
`--emulation-target instinct`. Both targets use `native` or `cli` projection and the generic
MCP client. Instinct defaults to plain-text replies and does not run Muse guideline
checks. Its local wallet fixture covers payment behavior; live payment rails,
trusted-network protocol, Vault and Files remain outside the
[shared contract](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/surrogate-contract.md).
Three quickstarts follow. The [connector lane](https://github.com/Coverage-Cat/consumer-agent-testing-tool#quickstart-connector-lane) and
the [popular MCP server](https://github.com/Coverage-Cat/consumer-agent-testing-tool#quickstart-a-popular-mcp-server) quickstarts run on
loopback with no account; the [Coverage Cat sandbox](https://github.com/Coverage-Cat/consumer-agent-testing-tool#quickstart-coverage-cat-sandbox)
quickstart calls a hosted sandbox. [Test your own service](https://github.com/Coverage-Cat/consumer-agent-testing-tool#test-your-own-service)
turns them into a workflow, and the [documentation index](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/docs/README.md) lists
every page.
## Setup
You need Python 3.12 or newer (CI tests 3.12 on Linux and 3.14 on macOS),
[uv](https://docs.astral.sh/uv/), and Node.js 20 or newer with npm (the
installed packages declare `>=20`; tested with 25.9). The recorded release
evidence covers macOS. From a clone of this repository, install the Python and
Node dependencies and the Chromium build the browser lanes use:
```
uv sync --extra openrouter --extra dev
npm --prefix tooling ci --ignore-scripts
npm --prefix tooling/payment-ui ci --ignore-scripts
PLAYWRIGHT_BROWSERS_PATH="$PWD/.cache/ms-playwright" node tooling/payment-ui/node_modules/playwright/cli.js install chromium
```
The connector lane, the readiness checks and the scripted runs need only
`uv sync`. Node and Chromium are for the MCP Apps and browser lanes.
On Linux (Debian or Ubuntu), install Chromium with its system libraries
instead. Linux is not covered by the recorded release evidence: the commands
below match the [CI workflow](https://github.com/Coverage-Cat/consumer-agent-testing-tool/blob/main/.github/workflows/ci.yml) but have not been
qualified here.
```
sudo apt-get update && sudo apt-get install -y nodejs npm # or Node 20+ from nodesource or nvm
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --extra openrouter --extra dev
npm --prefix tooling ci --ignore-scripts
npm --prefix tooling/payment-ui ci --ignore-scripts
PLAYWRIGHT_BROWSERS_PATH="$PWD/.cache/ms-playwright" \
node tooling/payment-ui/node_modules/playwright/cli.js install --with-deps chromium
```
Three features rely on macOS Seatbelt (`sandbox-exec`) and report unsupported
or blocked on Linux rather than running unconfined: the `--offline` readiness
mode, the network-denied validator workers behind `run --surface api-tools`, and
the local-model memory profile. The connector lane, the scripted runs, the
readiness checks and the Docker-backed stdio targets do not depend on it.
Check the setup with `doctor`:
```
uv run consumer-agent-testing-tool doctor
```
It checks Node against the floors the installed packages declare, the
`tooling/payment-ui` packages against their pinned versions, and Chromium and
its headless shell under `.cache/ms-playwright`. It reports the optional
protocol tooling, and checks Docker only for development lanes or configured
stdio MCP and CLI targets. It makes no model requests, even when an existing
configuration or `--model-profile` selects a model. Each failed or blocked check
prints one line on stderr with its reason and, for a setup problem, the command
that fixes it.
To explicitly run the provider preflight, which sends two short model requests
and may incur charges, add `--model-preflight`:
```
uv run consumer-agent-testing-tool doctor --config agent.yaml --model-preflight
```
Scripted runs need no model account, and the scripted commands in all three
quickstarts need no configuration file. Agent runs need a model profile and an
API key; [Model providers](https://github.com/Coverage-Cat/consumer-agent-testing-tool#model-providers) shows how to create one. Supply
credentials through environment variables, and keep them out of scenarios and
shared evidence. `consumer-agent-testing-tool.yaml`, the default settings file,
is local and git-ignored, and no profile is shipped.
## Quickstart: connector lane
This quickstart stays on loopback and needs no account. Complete
[Setup](https://github.com/Coverage-Cat/consumer-agent-testing-tool#setup), then start the Cedar Stays-like test service in a second
terminal. It prints one JSON line with its URLs when it is ready; Ctrl-C stops
it:
```
uv run python -m consumer_agent_testing_tool.connector_fixture --port 8765 --variant good --auth none
```
Replay the example's scripted calls, with no model:
```
uv run consumer-agent-testing-tool connector-run examples/connector/fixture-bookin