ReferenceSurfaces
MCP server
How to connect an agent to Endform's local or remote MCP server, authenticate, and see which tools each server exposes.
Endform provides two Model Context Protocol (MCP) servers: a local stdio server bundled with the CLI and a remote Streamable HTTP server hosted at https://endform.dev/mcp.
Both servers let coding agents query run history, inspect failures, compare attempts against reference runs, and manage quarantine rules. The local server also runs Playwright suites and interactive live tests against your local repository.
Local vs. remote MCP server
Local MCP (npx -y endform@latest mcp) | Remote MCP (https://endform.dev/mcp) | |
|---|---|---|
| Transport | stdio (runs on your machine) | Streamable HTTP |
| Authentication | npx endform@latest login or ENDFORM_API_KEY | Browser OAuth in your MCP host |
| Tools available | All 17 tools (data, suite runs, and live tests) | 10 cloud tools (analytics, samples, inspection, replays, quarantine, organizations) |
| Screenshots and traces | Returns reports and can download traces/screenshots to outputDirectory | Returns reports and inline screenshots with no filesystem access needed |
| Inline replay player | Returns dashboard replay URL | Renders interactive side-by-side replay in MCP Apps hosts, plus dashboard URL |
| Best for | Coding agents working inside a local checkout | Web, chat, and sandboxed agents that inspect CI runs without local repo execution |
Connect to the local MCP server
Run npx endform@latest login once before starting a session so the local server has credentials, or set ENDFORM_API_KEY in the server's environment.
claude mcp add --transport stdio --scope local endform -- npx -y endform@latest mcpAdd the server to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"endform": {
"type": "stdio",
"command": "npx",
"args": ["-y", "endform@latest", "mcp"]
}
}
}Add the server to .vscode/mcp.json:
{
"servers": {
"endform": {
"type": "stdio",
"command": "npx",
"args": ["-y", "endform@latest", "mcp"]
}
}
}Add the server to opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"endform": {
"type": "local",
"command": ["npx", "-y", "endform@latest", "mcp"],
"enabled": true
}
}
}Configure a stdio MCP server with:
- Command:
npx - Arguments:
["-y", "endform@latest", "mcp"]
Connect to the remote MCP server
The remote server runs at https://endform.dev/mcp and authenticates through OAuth in your browser. During OAuth approval, choose whether to grant access to all of your Endform organizations or a single organization.
claude mcp add --transport http endform-remote https://endform.dev/mcpThen run /mcp in Claude Code, select endform-remote, and sign in.
codex mcp add endform-remote --url https://endform.dev/mcp
codex mcp login endform-remoteAdd the server to .vscode/mcp.json:
{
"servers": {
"endform-remote": {
"type": "http",
"url": "https://endform.dev/mcp"
}
}
}Configure a Streamable HTTP MCP server pointing to:
https://endform.dev/mcpYour client discovers OAuth metadata automatically from Endform's well-known endpoints.
Authentication and organization selection
- Local credentials: The local server uses your
npx endform@latest loginsession by default. IfENDFORM_API_KEYis set in the environment, it takes precedence over the saved login. - CI and headless agents: Pass
ENDFORM_API_KEYto the local server environment when running an agent inside CI or another non-interactive environment. GitHub OIDC credentials are scoped to suite runs only and do not authorize MCP analytics or inspection calls. See CI authentication. - Multiple organizations: If your account belongs to more than one Endform organization (and the project does not set
organizationIdinendform.config.ts), the agent callsorganization_listfirst and passesorganizationIdon follow-up tool calls.
Tools
Full input schemas, return shapes, and examples live in the Actions reference pages linked below.
| Tool | Server | What it does | Reference |
|---|---|---|---|
suite_run_start | Local only | Starts a Playwright suite run on Endform and returns a run handle | Suite runs |
suite_run_status | Local only | Polls progress, counts, and outcome of a started suite run | Suite runs |
suite_run_stop | Local only | Stops a running suite run early | Suite runs |
live_test_start | Local only | Runs one test on a remote browser and pauses it at a source line | Live tests |
live_test_run | Local only | Evaluates Playwright code against page in a paused live session | Live tests |
live_test_status | Local only | Checks whether a live session is starting, paused, or stopped | Live tests |
live_test_stop | Local only | Stops a live session and releases its remote browser | Live tests |
test_attempt_inspect | Local & remote | Summarizes a recorded attempt, diffs against a reference run, and lists step span IDs (outputDirectory download on local) | Test attempt info |
test_attempt_step | Local & remote | Drills into specific step spans for errors, screenshots, and details | Test attempt info |
test_attempt_replay | Local & remote | Opens an interactive side-by-side replay (or returns a dashboard URL) | Test attempt info |
analytics_query | Local & remote | Aggregates pass rates, counts, and durations over time | Analytics |
samples_query | Local & remote | Lists concrete suite runs or test runs with errors and attempt IDs | Samples |
quarantine_list | Local & remote | Lists active and historical quarantine rules | Quarantine |
quarantine_create | Local & remote | Creates a quarantine rule for a flaky test | Quarantine |
quarantine_update | Local & remote | Updates an existing quarantine rule's reason or scope | Quarantine |
quarantine_deactivate | Local & remote | Deactivates a quarantine rule once the test is fixed | Quarantine |
organization_list | Local & remote | Lists Endform organizations available to the authenticated account | Management and access |
Inline replays (MCP Apps)
On the remote MCP server, test_attempt_replay renders an interactive replay player directly inside MCP hosts that support MCP Apps (such as Claude and Cursor), complete with synchronized playback against the reference run and highlighted steps. Hosts without MCP Apps receive a direct link to the same replay in the Endform dashboard.
Discovery endpoints
Clients that support automatic MCP and OAuth discovery can inspect Endform's metadata endpoints:
- MCP server card:
https://endform.dev/.well-known/mcp/server-card.json - OAuth protected resource metadata:
https://endform.dev/.well-known/oauth-protected-resource/mcp - OAuth authorization server metadata:
https://endform.dev/.well-known/oauth-authorization-server
Related pages
Last updated