GuidesUsing Endform

Working with agents

Connect your coding agent to Endform so it can run suites, inspect recorded failures and replays, and debug tests interactively inside a live browser.

An agent connected to Endform can run your Playwright suite, read what a failed CI attempt did compared to a passing reference run, pause a failing test inside a live remote browser to try fixes without restarting, and manage quarantine rules.

Add Endform to your agent

Install the Endform plugin (which bundles the agent skill and an MCP server) or configure the skill and MCP server separately:

Install the Endform plugin (includes the agent skill and the remote MCP server):

claude plugin marketplace add endformdev/skills
claude plugin install endform@endformdev

Run /mcp in Claude Code, select endform, and sign in.

To let Claude Code also run suites and live tests against your local repository, add the local MCP server and sign in to the CLI:

npx endform@latest login
claude mcp add --transport stdio --scope local endform -- npx -y endform@latest mcp

Debug a failing test inside a live browser

When a test fails deep inside a multi-step flow, guessing a selector fix and rerunning the test from scratch wastes minutes on every attempt. With a live test, your agent runs that single test on a remote browser, pauses it right before the failing line, inspects the DOM, tries candidate fixes directly against page, and verifies the edited test with 20 parallel repeats:

Pause a failing test, inspect the page, and verify the fix
You
The bike-booking test keeps timing out on the confirm button in CI. Can you pause right before that click, check what is on screen, fix the locator, and verify it passes 20 times in a row?

I'll start a live session paused at line 31 of tests/bookings.spec.ts, inspect the buttons rendered on the page, update the locator, and verify with 20 parallel runs.

MCP toollive_test_startLocal MCP
{
  "testFileFilters": [
    "tests/bookings.spec.ts:18"
  ],
  "line": 31
}
MCP toollive_test_runLocal MCP
{
  "sessionId": "<sessionId>",
  "code": "console.log(await page.getByRole(\"button\").allInnerTexts());"
}
MCP toollive_test_runLocal MCP
{
  "sessionId": "<sessionId>",
  "code": "await page.getByRole(\"button\", { name: \"Confirm booking\" }).click();"
}
MCP toollive_test_stopLocal MCP
{
  "sessionId": "<sessionId>"
}
MCP toolsuite_run_startLocal MCP
{
  "directory": "/repo",
  "testFileFilters": [
    "tests/bookings.spec.ts:18"
  ],
  "repeatEach": 20,
  "retries": 0
}

At line 31 the modal renders "Confirm booking" instead of "Book now", which is why the old locator timed out. I confirmed the click works in the paused browser, stopped the live session, updated tests/bookings.spec.ts, and ran 20 repeats with retries disabled: all 20 passed in parallel.

Live tests run from your local repository (via the local MCP server or CLI), do not affect suite analytics or CI concurrency, and stay paused for up to 12 minutes 30 seconds after the checkpoint until stopped. See the Live tests reference.

Investigate failures, flakes, and replays

Even without running a browser locally, an agent connected to either the local or remote MCP server can diagnose recorded CI failures in seconds:

  1. Find the attempt with samples_query or rank unstable tests with analytics_query.
  2. Diff against a passing reference run with test_attempt_inspect to see the exact step where behavior diverged.
  3. Inspect individual steps with test_attempt_step for error messages, logs, and screenshots.
  4. Show visual proof with test_attempt_replay (renders an interactive side-by-side replay directly inside MCP Apps hosts such as Claude and Cursor, and returns a dashboard URL everywhere else).

Try prompts like these in your agent:

Debug a pull request failure
The checkout test failed on my branch. Inspect the latest failing
attempt on Endform, compare it with the reference run on main,
tell me whether my branch caused it, and fix it.
Find and fix the flakiest tests
Query Endform analytics for the 3 flakiest tests on main over the
last 7 days, inspect their recent failing attempts, and explain
the root cause of each flake.
Quarantine a known flake
Quarantine the failing settings test on Endform with a reason
linking to issue #412 so it stops blocking PRs while we fix
the race condition.

See Triage failed tests, Replays, and Common flakes for end-to-end investigation workflows.

Docs built for agents

Every page in the Endform documentation has a plain markdown twin at the same URL ending in .md (for example, https://endform.dev/docs/using-endform/ci.md), plus an index at https://endform.dev/docs/llms.txt. You can paste any Endform docs link directly into an agent prompt and it will read the exact markdown source without HTML noise.

Last updated