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)
Transportstdio (runs on your machine)Streamable HTTP
Authenticationnpx endform@latest login or ENDFORM_API_KEYBrowser OAuth in your MCP host
Tools availableAll 17 tools (data, suite runs, and live tests)10 cloud tools (analytics, samples, inspection, replays, quarantine, organizations)
Screenshots and tracesReturns reports and can download traces/screenshots to outputDirectoryReturns reports and inline screenshots with no filesystem access needed
Inline replay playerReturns dashboard replay URLRenders interactive side-by-side replay in MCP Apps hosts, plus dashboard URL
Best forCoding agents working inside a local checkoutWeb, 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 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/mcp

Then run /mcp in Claude Code, select endform-remote, and sign in.

Authentication and organization selection

  • Local credentials: The local server uses your npx endform@latest login session by default. If ENDFORM_API_KEY is set in the environment, it takes precedence over the saved login.
  • CI and headless agents: Pass ENDFORM_API_KEY to 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 organizationId in endform.config.ts), the agent calls organization_list first and passes organizationId on follow-up tool calls.

Tools

Full input schemas, return shapes, and examples live in the Actions reference pages linked below.

ToolServerWhat it doesReference
suite_run_startLocal onlyStarts a Playwright suite run on Endform and returns a run handleSuite runs
suite_run_statusLocal onlyPolls progress, counts, and outcome of a started suite runSuite runs
suite_run_stopLocal onlyStops a running suite run earlySuite runs
live_test_startLocal onlyRuns one test on a remote browser and pauses it at a source lineLive tests
live_test_runLocal onlyEvaluates Playwright code against page in a paused live sessionLive tests
live_test_statusLocal onlyChecks whether a live session is starting, paused, or stoppedLive tests
live_test_stopLocal onlyStops a live session and releases its remote browserLive tests
test_attempt_inspectLocal & remoteSummarizes a recorded attempt, diffs against a reference run, and lists step span IDs (outputDirectory download on local)Test attempt info
test_attempt_stepLocal & remoteDrills into specific step spans for errors, screenshots, and detailsTest attempt info
test_attempt_replayLocal & remoteOpens an interactive side-by-side replay (or returns a dashboard URL)Test attempt info
analytics_queryLocal & remoteAggregates pass rates, counts, and durations over timeAnalytics
samples_queryLocal & remoteLists concrete suite runs or test runs with errors and attempt IDsSamples
quarantine_listLocal & remoteLists active and historical quarantine rulesQuarantine
quarantine_createLocal & remoteCreates a quarantine rule for a flaky testQuarantine
quarantine_updateLocal & remoteUpdates an existing quarantine rule's reason or scopeQuarantine
quarantine_deactivateLocal & remoteDeactivates a quarantine rule once the test is fixedQuarantine
organization_listLocal & remoteLists Endform organizations available to the authenticated accountManagement 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

Last updated