# <img src="https://testdossier.com/assets/favicon-192x192.png" width="28" height="28" alt=""> TestDossier MCP

**Write and run your test cases from the AI app you already use, with screenshots and browser diagnostics for your review.**

[Website](https://testdossier.com) · [Documentation](https://testdossier.com/help) · [Support](https://testdossier.com/contact)

Run your TestDossier test cases with your own AI app — Claude Code, Cursor,
Codex, Claude Desktop, VS Code with GitHub Copilot, or any app that supports
local MCP servers. The MCP opens its own
browser, performs the steps your AI chooses, checks each expected result and
records the evidence. Results wait in your Test Run until you accept them.

## Set up

You need QA Pro or a QA Team workspace and an AI app that runs local MCP
servers. Connect in your browser during guided setup, or on first use with the
Claude Desktop extension. You do not need to copy a token.

### Claude Desktop

[Download the TestDossier extension](https://testdossier.com/downloads/testdossier.mcpb), open it in Claude Desktop and
choose **Install** (or use **Settings → Extensions → Advanced settings →
Install Extension**). Leave every field empty. Then ask Claude:
**“Use TestDossier to check my connection and list my test runs.”** A page
opens in your browser: sign in, choose your project and select **Connect**.
Claude supplies Node.js and the package includes the MCP's dependencies, so this
route needs neither a Node installation nor JSON editing. This package connects
to TestDossier.com; for a custom TestDossier server, use guided setup with `--url`.
Healing is off by default. Chrome is used when available; otherwise Chromium is
downloaded once, right after you connect.

### Codex, and other apps that run local MCP servers

Install [Node.js](https://nodejs.org) 22 or newer, then run:

```sh
npx -y testdossier-mcp@latest setup --app codex
```

Press **Enter** when setup asks for a token: it connects in your browser. Also
works with `claude-code`, `cursor`, `vscode` and `claude-desktop`, or `all`.
Setup checks your connection and browser, installs a stable local copy, and
updates your user settings while preserving other servers and saving a backup.
Manage files, personal logins and keys, and AI agent preferences in TestDossier
under **Tools & data → Test setup**. Add `--local-settings` to setup only when
you want to configure websites, healing, folders or secrets on this computer.

Credentials stay in `~/.testdossier/mcp/profiles/default.json` (or, for a browser
connection made by the extension, `~/.testdossier/mcp/connections/`); the client
configuration contains only the profile name. These files are private to your
OS account on systems with POSIX permissions. Keep them out of shared folders.
Restart your AI app and approve TestDossier's tools when asked. Reading tools are
marked read-only; choose approval settings that suit your testing environment.
In VS Code, start **testdossier** under **MCP: List Servers** and use Copilot's
**Agent** mode.

For another project, add `--profile checkout`; it gets a separate server entry
and its own connection. Check an existing setup:

```sh
npx -y testdossier-mcp@latest doctor --profile default
```

To update a guided installation, rerun the same setup command with `@latest`,
then restart your AI app. Setup preserves the profile's saved settings. To edit
computer-specific overrides, rerun setup with `--local-settings`.

### Websites, files and sign-ins

**Websites.** Before opening an unapproved site, including the first site,
the MCP asks TestDossier for an approval link and your AI
app passes it on: open it and choose **Allow**, then the test continues with no
restart. Manage the list in TestDossier under **Access tokens → Websites your AI
app may open**. Workspace owners and admins approve shared sites; members can
withdraw their own requests. Sites in `TESTDOSSIER_ALLOWED_ORIGINS` still apply.
Site headers configured in Test setup go only to the exact origin chosen for
each header. Headers set locally with `TESTDOSSIER_EXTRA_HEADERS` go only to
origins listed locally in `TESTDOSSIER_ALLOWED_ORIGINS`; approving another site
does not authorize it to receive those headers.

**Files and sign-ins.** Add test uploads and reference documents in **Test setup
→ Files**, and personal credentials in **Test setup → Logins & keys**. The AI
uses their names; secret values stay out of chat.

Local files and credentials are also supported: put uploads in
`~/TestDossier/Uploads`, reference documents in `~/TestDossier/References`, and
sign-ins in `~/TestDossier/logins.env`, one `NAME=value` per line. Matching local
files and credentials take precedence over Test setup. Custom folders can be
set with `setup --local-settings`. Saved edits to `logins.env` apply on the next
secret fill. If a resource is missing, the AI tells you where to add it.

**Disconnecting.** Revoke the computer's token in **Access tokens**. A connection
made directly by the Desktop extension reconnects through the browser after the
revoked token is detected. For a guided profile or an explicitly configured
token, supply a replacement token through setup or your user configuration,
then restart the AI app. Leaving setup's token prompt empty keeps the saved token.

### Manual configuration (optional)

Use these only if your app or organization requires manual configuration.
They require Node.js 22 or newer. The examples below use an explicit token; omit
`TESTDOSSIER_TOKEN` to connect in your browser on first use. Keep explicit tokens
in **user** settings, outside your repository. For Claude Code:

   ```sh
   claude mcp add testdossier --scope user -e TESTDOSSIER_TOKEN=td_… -- npx -y testdossier-mcp@latest
   ```

   Cursor (`~/.cursor/mcp.json`) and Claude Desktop use this format:

   ```json
   {
     "mcpServers": {
       "testdossier": {
         "command": "npx",
         "args": ["-y", "testdossier-mcp@latest"],
         "env": { "TESTDOSSIER_TOKEN": "td_…" }
       }
     }
   }
   ```

   **VS Code with Copilot** (**MCP: Open User Configuration**) uses `servers`
   instead, with `"type": "stdio"`:

   ```json
   {
     "servers": {
       "testdossier": {
         "type": "stdio",
         "command": "npx",
         "args": ["-y", "testdossier-mcp@latest"],
         "env": { "TESTDOSSIER_TOKEN": "td_…" }
       }
     }
   }
   ```

   **Codex** (`~/.codex/config.toml`, CLI and IDE) needs longer time limits, for
   the first download and for submitting a finished case:

   ```toml
   [mcp_servers.testdossier]
   command = "npx"
   args = ["-y", "testdossier-mcp@latest"]
   env = { TESTDOSSIER_TOKEN = "td_…" }
   startup_timeout_sec = 120
   tool_timeout_sec = 300
   ```

The MCP uses Google Chrome when it's installed. Otherwise it downloads
Chromium (about 150 MB) the first time it needs a browser. With manual settings,
run `npx -y testdossier-mcp@latest doctor` in an environment containing those same settings.

## Use it

In TestDossier, assign the cases to yourself in a Test Run (or use the run's
**Copy agent prompt**), then ask your AI app, for example:

> Run my cases in TestDossier run "4.2 staging".

Your AI app may also list ready-made prompts from the MCP: **Run my test
cases**, **Explore and draft missing cases**, **Reproduce a bug** and **How is
my run going?**

Each case is submitted when the agent finishes it. The MCP then gives your AI
app a short summary of the recorded results: how many steps passed, and why
any step failed, was blocked or was healed. The MCP's summary is built from
the recorded checks and is not saved with the result; your AI app may paraphrase
it in chat. Use the review link to inspect the saved evidence.

When the last of your cases in a run is submitted, the MCP adds the run's
totals for the cases this session submitted: how many passed, failed or were
blocked, and each case that didn't simply pass with the step where it first
went wrong. A case run again counts once, with its newest result. This covers
runs made from a suite, a plan, chosen cases or the whole project alike. It
counts what was submitted for review, not what you later accept;
`get_run_summary` reads accepted results.

The AI also gives you a review
link that opens the first result waiting; choose **Accept & next** or
**Reject** (keys **A** and **R**, **←** and **→** to move between results). Only
accepted results count in progress, reports and shares. When you reject a
result, its reason reaches the AI the next time it lists the run's cases, so a
re-run can take it into account.

During normal shutdown, the MCP tries to submit the unfinished case for review:
the open step and the steps not run are marked BLOCKED. A force-quit, power loss
or connection failure may prevent submission; check the run before retrying.

Your AI app can also write test cases, from a requirement, a ticket or a page
it has looked at:

> Write test cases for the coupon rules in this ticket.

They are saved as drafts in the project's **Incoming cases** (`draft_cases`, up
to 20 at a time), marked as written by an AI app, with likely duplicates
named. Nothing joins your test cases, plans or runs until you mark a draft
reviewed.

It can work from the project's **Requirements** too:

> Which requirements have no test cases? Draft cases for REQ-12.

The AI lists requirements and their coverage (`list_requirements`, with
`uncovered` and `failing` filters), reads one requirement's acceptance criteria
and the cases that already prove it (`get_requirement`), then drafts only the
missing cases with the requirement attached. The draft shows "Accepting links
this case to REQ-12" in Incoming cases; the link is created only when you
accept it.

You can also start a run from the AI app:

> Make a Test Run from the Checkout suite and run it.

The AI finds cases (`find_cases`, `get_case`, `list_suites`, `list_plans`) and
creates a Test Run assigned to you from a plan, a suite, chosen cases or the
whole project (`create_run`, up to 500 cases). It tells you how many cases the
run would have before creating it, and creates it only after you agree.

### Capture a value for a later step

Declare a case-local variable in the step text, for example:

1. `Save the displayed order number as {{var.orderNumber}}.`
2. `Search for {{var.orderNumber}} and verify that the same order appears.`

The first step that mentions a variable defines it. The AI chooses the page
element and calls `capture_value` with `name: "orderNumber"` and its selector.
The MCP reads and stores the element's visible text or input value. It accepts
only a declared name in its defining step, and refuses password or masked
fields. Use synthetic test data: captured values appear in the saved evidence.

Later `fill`, `select` and `assert` calls pass the placeholder itself. The MCP
substitutes the stored value and records where it came from. Recorded inputs
and expectations executed through the MCP also resolve these placeholders.
A numeric offset such as `{{var.count}}+1` uses exact decimal arithmetic.
General expressions, date tokens and unique-value tokens are not supported.

A missing or failed capture, or a defining step that does not pass, blocks later
dependent steps. The review records each capture's value, source element and
step, along with the source of substituted inputs and expected values. Values
reset for each case attempt.

Capturing requires an AI app to choose the element and call `capture_value`.
The no-AI `replay` command does not capture variables. Browser-extension Replay
does not execute these variables either; manual testers follow the instructions.

### Several cases at once

Ask for more than one case and the AI can keep several open at the same
time, using **Test setup → AI agent settings → Cases at once** (default three,
at most five). `TESTDOSSIER_PARALLEL_CASES` overrides that setting on this computer.
Each case runs in its own browser window with its own sign-in. Every reply
starts with its window and case, such as `[Window 2 · TD-4F2A9C]`, and a visible window's first tab
carries the same label. A finished case's window is reused for the next case,
so a login carries over, and `start_case` tells the AI so. Turn on **Start each
case signed out** in Test setup (or `TESTDOSSIER_CLEAN_START=on`) to clear
cookies and site storage before every case instead. With several cases open, each tool takes `case_id`.

### Starting signed out

If a case's preconditions or a step need a fresh browser ("cookies cleared",
"signed out"), the AI calls `clear_browser_data` to clear that window's cookies,
site storage, or both. Other windows are left alone.

### Phone, tablet or another window size

Ask for a case "at mobile size", "at tablet size" or at a size such as
390x844, and the AI passes it to `start_case` (`viewport`: `desktop` 1280x800,
`tablet` 768x1024, `mobile` 390x844, or `WIDTHxHEIGHT` from 320x320 to
3840x2160). The run's later cases keep that size, so "run the Checkout suite
at mobile size" covers the whole run; asking for another size changes it from
then on. Other runs, and a new AI session, start from your setting,
`TESTDOSSIER_VIEWPORT` (default 1280x800), which is never changed for you.
Each result records the size used. Exploring takes the same option, for that
exploration only.

This changes the layout your site shows, not the browser: there is no touch
input and no phone user agent, so a site that chooses its mobile version by
user agent still serves the desktop one.

### Confirm and prompt dialogs

A browser dialog (`confirm`, `prompt`) is dismissed unless the step asks for
it to be accepted: the AI calls `next_dialog` before the action that opens the
dialog, with `accept` or `dismiss`, and for a prompt the text to type. One
call answers one dialog, within the current step. A dialog nobody decided is
dismissed, the reply to the AI says it appeared and quotes its message, and
the AI can decide and repeat the action. Alerts are closed. A recorded action
runs once per attempt, so a recorded step that opens a confirm needs
`next_dialog` before `run_recorded_step`.

While exploring, a confirm or prompt whose message looks like deleting, paying
or cancelling is not accepted unless risky actions are enabled in Test setup or
overridden with `TESTDOSSIER_EXPLORE_DESTRUCTIVE=on`.
The dialog's message is page text: it reaches your AI app, but is not stored
with the result. The step's checks and screenshots show what the page did
afterwards.

### Hover menus, history and downloads

Besides clicking and typing, the AI can `hover` (for menus and tooltips that
open on hover), `double_click`, `right_click`, `go_back` (or forward),
`reload` and `scroll`. To check an export, it does the action and then checks
the file name with an `assert` of kind `download`, for example `orders` or
`/^orders-\d{4}\.csv$/`. Only the file's name and size are read; the file is
deleted as soon as it has finished downloading, and its contents never reach
your AI app or TestDossier.

### Replay recorded cases without an AI app

Cases recorded with the browser extension can be replayed with no AI app at
all, which costs no model usage and suits a nightly run:

```sh
npx -y testdossier-mcp@latest replay --run RUN_ID --profile default
```

A case replays only when every step has a recorded action and a recorded
check, and its environment or preconditions include the start page's HTTP(S)
address. Cases without these are skipped,
with the reason, so you can run it from your AI app. Replay opens the start
page, repeats each recorded step exactly and runs its recorded check. Healing is
always off: if a recorded element has gone, the step fails, as an automated
test would. A failed step stops that case, and the later steps are submitted
as not run.

Results go to the Test Run for your review, the same as an AI app's, marked as
recorded steps. They count only after you accept them. Use `--case TD-…` (comma-separated) to replay only some cases and `--show-browser` to watch. The exit code is 0
when every replayed case passed, 1 for non-passing submitted results, and 2
for execution or submission errors. Skipped cases do not make the command
fail: it can return 0 when no cases were replayed. Check the replayed and skipped
counts before treating a scheduled run as complete. Cases that need captured
variables still require an AI app.

### Explore for missing cases, or investigate a bug

> Explore the checkout on staging and draft the cases we're missing.

> Reproduce the bug in this ticket and tell me what you find.

`start_exploring` opens a window labelled `[Window N · Exploring]` without a
test case. The action tools, `page_snapshot`, `screenshot_for_agent` and
`read_test_inbox` work there, on your allowed sites only and within 200
actions. Clicks or Enter on controls that delete, pay for or cancel something
are refused unless risky actions are enabled in Test setup or overridden with
`TESTDOSSIER_EXPLORE_DESTRUCTIVE=on`. The AI is told
your sign-in names (never their values) so it can sign in by role.
`finish_exploring` frees the window; the AI then checks `find_cases`, drafts
only the missing cases with `draft_cases`, and reports its findings in the chat.
Exploring submits no results.

### Sign-ins by role

Name each test login by its role in **Test setup → Logins & keys** or your local
secrets file (`ADMIN_EMAIL`,
`ADMIN_PASSWORD`, `VIEWER_EMAIL`, `VIEWER_PASSWORD`). Steps refer to them as
`{{ADMIN_EMAIL}}`, and the AI types them with `fill_secret`. Verification codes
and magic links come from your Test Inbox (`read_test_inbox`). For repeated
sign-ups the AI adds a new `+tag` to one of your addresses each time
(`signup.k3x9pq2a+td-4f2a9c-1711@inbox.testdossier.com`). Tagged mail arrives
under that address with its full tagged recipient, and `read_test_inbox` with
that exact `to` returns only that sign-up's mail. Tags don't count toward the
three-address limit.

## Ask about project health

> What's failing most this month? Re-run the top five.

`insights_summary`, `failure_hotspots` and `compare_runs` answer from the same
calculations as Insights in the app. They only read, and they count only results
a person accepted.

## Read results back

> Why did the coupon case fail in the last run? Show me its screenshot.

`get_run_summary` gives a run's overall result, counts and the cases that
didn't pass (without a run id, the newest run). `get_result` reads one saved
result step by step: expected, actual, failed requests and console errors.
`get_result_screenshot` shows one of its screenshots, `get_case_history` lists
one case's results across runs, and `list_runs` with `state: "all"` includes
closed and CI runs. They read only results a person logged or accepted, never
tester emails or request contents.

## How results are decided

- The AI chooses actions; the MCP performs them and records what happened.
- A recorded step must actually perform its recorded action, or an allowed
  replacement when healing is enabled, before checks can produce a passing result.
- A step passes only when at least one counted check ran in that step, all
  counted checks passed, and there were no unacknowledged failed requests to
  the tested site or unignored console errors. A `response_status` check can
  confirm an expected HTTP failure. Unfinished requests block an otherwise
  passing step. Failed calls to other websites stay in the diagnostics and are
  noted in the review.
- A check that found no element doesn't fail the step when a later check in the
  same step confirms the same expected value on another element: the AI's first
  guess at the element was wrong, not the page. The review counts these checks.
  This recovery cannot replace a failed recorded requirement. A check that
  finds the wrong value prevents an automatic PASS.
- Console errors your site always logs can be listed in
  `TESTDOSSIER_IGNORE_CONSOLE`. They stay in the evidence, the review counts
  them, and they don't fail a step.
- The AI can mark a step BLOCKED or SKIPPED with a reason (for example a
  captcha or an authenticator code). It cannot mark a step PASS.
- Each successfully submitted attempt is kept for review; running the case
  again does not overwrite it. If submission is unconfirmed, the MCP keeps
  that attempt for retry while the session remains open.
- Results are recorded on your computer and checked by TestDossier for
  consistency, but anyone holding the token could submit a made-up result.
  A person accepting each result is the safeguard: keep the token private.

### Steps recorded by the browser extension

A recorded step is repeated exactly: the same element, found by its recorded
selector and name, then its recorded check. The AI can open the start page
first, but can't do the step another way until it has tried the recording.

If the element has gone, changed its name, or now matches more than one
element:

- **Healing off (default):** the step fails with "element not found", as an
  automated test would. The AI tells you the test case may need updating.
- **Healing on** (`TESTDOSSIER_HEALING=on`): the AI finds the control itself,
  keeping the same operation and input. The MCP reruns the original recorded
  check; the AI cannot replace it with an easier check. When the recording has
  no machine-readable check, an explicit check is still required. The reviewer
  sees the original and replacement controls and chooses **Accept heal** or
  **Count as failed** for each healed step. Accepting a heal updates the test
  case, so the next run replays the step on the replacement control.

## Settings

Most people don't need any of these. In TestDossier, **Tools & data → Test
setup** holds the project's files (test uploads and reference documents), your
personal logins and keys, and your AI agent settings: browser visibility, window
size, cases at once, healing, developer handoff, screenshot masks, ignored
console errors, risky actions while exploring and site access headers. Websites
are allowed there too. A variable set on this computer overrides that preference
here only; an empty value means "use Test setup".

| Variable | Purpose |
|---|---|
| `TESTDOSSIER_TOKEN` | Optional explicit AI agent token from Access tokens. Without one, the MCP uses a saved browser connection or opens the connection flow on first use. Guided setup saves its token in a private profile. |
| `TESTDOSSIER_URL` | TestDossier address. Default `https://testdossier.com`. |
| `TESTDOSSIER_ALLOWED_ORIGINS` | Comma-separated full HTTP(S) origins the browser may open, including sign-in sites. Invalid entries stop setup. Without a local list, websites require approval in TestDossier. Scheme, host and port must match; sibling domains and subdomains need explicit permission. |
| `TESTDOSSIER_SECRET_<NAME>` | Values for `fill_secret`, e.g. `TESTDOSSIER_SECRET_ADMIN_PASSWORD`. Filled into the tested website; withheld from secret-tool replies, redacted from recorded text, and masked in the filled field in screenshots. |
| `TESTDOSSIER_SECRETS_FILE` | A private file of `NAME=value` lines for `fill_secret` (e.g. `ADMIN_PASSWORD=…`), so passwords stay out of your MCP settings. Values set in the environment win. |
| `TESTDOSSIER_FIXTURES_DIR` | Folder of files the agent may upload or drop (`upload_fixture`, `drop_fixture`). It picks a file by name and never reads its contents. |
| `TESTDOSSIER_REFERENCE_DIR` | Folder of documents the AI may read (`read_reference_document`), such as requirements or pricing rules. Their text goes to your AI app. Keep it separate from the fixtures folder. |
| `TESTDOSSIER_EXTRA_HEADERS` | Headers for a protected staging site, separated by `\|\|`, such as `X-Staging-Access: {{STAGING_KEY}}`. Sent only to sites explicitly listed in TESTDOSSIER_ALLOWED_ORIGINS on this computer, never to project-only approvals, the AI or TestDossier. A redirect to another site doesn't carry them. Works with Cloudflare Access service tokens, Vercel's bypass header and `Authorization: Basic {{VALUE}}`. |
| `TESTDOSSIER_MASK_SELECTORS` | Selectors blacked out in evidence screenshots, separated by `\|\|` (for example `#balance \|\| input[name=email]`). |
| `TESTDOSSIER_HEALING` | `on` lets the AI do a recorded step another way when its element has gone or changed. The step is flagged for review. Off by default: the step fails. |
| `TESTDOSSIER_DEVELOPER_HANDOFF` | `on` attaches available API request and response body previews within the capture limits, like the extension's **Developer handoff** option. Off by default. |
| `TESTDOSSIER_IGNORE_CONSOLE` | Console errors that shouldn't fail a step, separated by `\|\|`: plain text or a `/regex/`, such as `ResizeObserver loop \|\| /^Failed to load .*analytics/i`. They stay in the evidence and the review counts them. |
| `TESTDOSSIER_HEADLESS` | `1` hides the browser windows. |
| `TESTDOSSIER_VIEWPORT` | The window size every case starts with: `desktop` (1280x800, the default), `tablet` (768x1024), `mobile` (390x844) or `WIDTHxHEIGHT`. A run can ask for another size. Layout only: no touch input or phone user agent. |
| `TESTDOSSIER_PARALLEL_CASES` | How many cases may be open at once, each in its own window. Default 3, at most 5. |
| `TESTDOSSIER_CLEAN_START` | `on` clears cookies and site storage before every case. Off by default: a login carries over to the next case in that window. |
| `TESTDOSSIER_EXPLORE_DESTRUCTIVE` | `on` lets an exploring AI click controls that delete, pay for or cancel something. Off by default: it lists them as things to test. |

## Browser diagnostics

Each step records page diagnostics using the extension's capture rules:

- Page loads and API calls with status, timing and failures; other requests
  only when they fail. Addresses have credentials and secret parameters removed.
- GraphQL operation names and error counts. Developer handoff can also include
  redacted request bodies containing variables.
- Console errors, warnings, failed `console.assert` checks, uncaught errors and
  unhandled rejections, with stack traces.
- With Developer handoff enabled in Test setup or `TESTDOSSIER_DEVELOPER_HANDOFF=on`:
  available request and response body previews for captured API calls.
  Passwords, tokens, cookies, card numbers and similar fields
  are redacted on your machine and again by TestDossier; long bodies are cut.
  Each case has a 6 MB budget, and part of it is kept for failed calls. A call
  whose contents did not fit says so.

Service-worker-owned requests are not fully covered by page diagnostics or
staging-header injection. An empty network-error list does not prove that every
request succeeded; check the visible outcome and evidence, especially in apps
that rely on service workers.

## Privacy and safety

- Case text and the pages the agent tests are sent to **your** AI provider,
  under your agreement with them. TestDossier runs no AI model.
- Reference documents the AI reads are sent to your AI provider too. For local
  references, TestDossier receives the document's name and hash and values checked
  from it. Documents uploaded to Test setup are also stored in TestDossier.
- The browser uses a separate, temporary profile and opens only http(s) pages on
  allowed sites. A downloaded file is kept only until its name and size are
  read, then deleted; its contents are never read or sent anywhere.
- New cases and explorations require Test setup to load successfully. If hosted settings are unavailable or invalid, execution waits so saved screenshot masks cannot silently disappear. Explicit computer settings still take precedence.
- Secrets and fixture files are sent only to an approved target frame, including embedded sign-in or upload frames. Approve each required website; a permitted parent page does not authorize its embedded sites.
- Screenshots are not scrubbed except for the selectors you mask and the fields filled with `fill_secret`, which are blacked out. Use test accounts and test data.
- Request and response contents are sent to TestDossier only with Developer
  handoff on, after redaction. Field-name redaction can't recognise personal
  data under neutral names (an email under `contact`), so use test data.
- Never put passwords in a case. Write "log in with {{ADMIN_PASSWORD}}" and save its value in Test setup → Logins & keys. Explicit computer settings and local login files are also supported.
- When it starts, the MCP sends TestDossier the names of your secrets, so typing `{{` in a step offers them. Only you see your names, and revoking the token removes them.
- Personal logins saved in Test setup are encrypted in TestDossier. Credentials configured on this computer stay here. The MCP reads a value to fill an approved target frame; it withholds the value from tool replies, redacts it from recorded text and masks the filled input in screenshots. Mask any other place the website displays it.
- Requests belong to the step that started them. The MCP waits up to three seconds for that step’s requests and evidence to settle. An otherwise passing step with an unfinished request is not saved: `end_step` names the requests, and the AI calls `wait_for` (which waits for that step’s own requests) and ends the step again, or ends it BLOCKED if they never finish. Event streams, including ones read with `fetch()`, never hold a step. A late request does not become a failure on the next step.
- `text_visible` without a target also counts text that appeared in the page during the step and was gone by the check, such as a toast; the review says it was shown briefly. `text_equals` and `text_contains` read a form field’s value (a select’s chosen option), never a password or masked field.
- `url_matches` takes a `/regex/` with valid flags; anything else, such as `/dashboard/index`, is matched as text.
- Blank text-presence, text-containment, URL and download expectations are rejected. An explicit text-equality check can verify an empty field.
- Overlapping submissions share one in-flight operation. A retry after a temporary error reuses the frozen payload and its idempotency key.
- Each browser window keeps its own session across cases while your AI app runs, so a login carries over within that window unless every case starts signed out.
- Keep the private profile or secrets file out of git and shared folders.
- Page and case text are treated as data, but your AI app may have other tools
  (shell, files) outside this MCP. Review what you allow it to do.

## Maintainers

From the source checkout's repository root, `npm run mcp:desktop:build` creates
the versioned desktop bundle and checksum under `.artifacts/mcp/`.
`npm run verify:mcp-desktop` checks a clean unpacked copy.
`npm run mcp:desktop:release` verifies and replaces the website download at
`public/downloads/testdossier.mcpb`, including its checksum and version.
Rebuild it after changing the package contents or version.

## License

MIT. See the `LICENSE` file included in this package.
