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@endformdevRun /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 mcpInstall the Endform plugin (includes the agent skill and the local MCP server):
codex plugin marketplace add endformdev/skills
codex plugin add endform@endformdevSign in once with the CLI so the local server has credentials:
npx endform@latest loginInstall the Endform agent skill:
npx skills add endformdev/skills --skill endform -a cursorSign in with npx endform@latest login and add the local MCP server to .cursor/mcp.json:
{
"mcpServers": {
"endform": {
"type": "stdio",
"command": "npx",
"args": ["-y", "endform@latest", "mcp"]
}
}
}Enable chat.plugins.enabled in VS Code settings, open the Command Palette, run Chat: Install Plugin From Source, and enter:
https://github.com/endformdev/skillsThe plugin installs both the Endform agent skill and the local MCP server. Sign in once with the CLI so the local server has credentials:
npx endform@latest loginInstall the agent skill and sign in with the CLI:
npx skills add endformdev/skills --skill endform
npx endform@latest loginThen add the local MCP server in your agent's MCP settings:
{
"mcpServers": {
"endform": {
"command": "npx",
"args": ["-y", "endform@latest", "mcp"]
}
}
}For web, chat, or sandboxed agents that connect over HTTP instead, point your client at https://endform.dev/mcp. See Agent skill and MCP server for Antigravity, OpenCode, and CI API-key setup.
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:
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.
live_test_startLocal MCP{
"testFileFilters": [
"tests/bookings.spec.ts:18"
],
"line": 31
}live_test_runLocal MCP{
"sessionId": "<sessionId>",
"code": "console.log(await page.getByRole(\"button\").allInnerTexts());"
}live_test_runLocal MCP{
"sessionId": "<sessionId>",
"code": "await page.getByRole(\"button\", { name: \"Confirm booking\" }).click();"
}live_test_stopLocal MCP{
"sessionId": "<sessionId>"
}suite_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.
npx endform@latest npx endform@latest <sessionId> npx endform@latest <sessionId>npx endform@latest test Hover or click any highlighted flag to see what it does.
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:
- Find the attempt with
samples_queryor rank unstable tests withanalytics_query. - Diff against a passing reference run with
test_attempt_inspectto see the exact step where behavior diverged. - Inspect individual steps with
test_attempt_stepfor error messages, logs, and screenshots. - 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:
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.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 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.
- Local MCP (
npx -y endform@latest mcp): Runs on your machine, authenticates vianpx endform@latest login(orENDFORM_API_KEY), and exposes all 17 tools including running Playwright suites and live tests against your local checkout. - Remote MCP (
https://endform.dev/mcp): Hosted over Streamable HTTP with browser OAuth, exposes the 10 cloud tools (analytics, samples, attempt inspection with inline screenshots, inline MCP App replays, and quarantine) without needing a local repository.
See the MCP server reference for the full comparison, client configs, and 17-tool index.
Full client configurations, OAuth and API key auth, and all 17 MCP tools.
Agent skillPlugin installs, direct slash commands, and included task guides.
Live testsCLI and MCP schemas for pausing tests and running code against the live page.
Triage failed testsStep-by-step workflow for diagnosing failures and managing quarantine rules.
Last updated