Matware E2E Runner
About
JSON-driven E2E test runner with parallel Chrome pool execution, visual verification, and 16 MCP tools.
Details
- Author
- fastslack
- Categories
- Developer Tools
Jump to
Setup
Install Matware E2E Runner in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/fastslack/mtw-e2e-runner
Follow the installation instructions in the repository README, then restart your MCP client.
JSON-driven E2E test runner with parallel Chrome pool execution, visual verification, and 16 MCP tools.
The AI-native E2E test runner that writes, runs, and debugs tests for you.
E2E Runnerlets you test your web app without writing test code. Tests are plain JSON β and you don't even have to write that yourself:just ask Claude Code.
π¬ Write a test by asking β then watch it run
The live dashboard while a suite runs β every step streams a screenshot into the feed, in real time.
With the built-inMCP server, creating a test is a conversation β no docs, no syntax to memorize:
You:Create an E2E test for the login flow and run it.
Claude Code:writes the test, runs it in a real browser, and reports back ββ
login-flowpassed in 2.3s Β· screenshot saved Β· no network errors.
Behind the scenes Claude just wrote and ran this. A test isjust JSONβ an ordered list of what a user does:
No imports, nodescribe/it, no build step. If you can read it you can write it β or just ask.
claude plugin marketplace add fastslack/mtw-e2e-runner claude plugin install e2e-runner@matware
Now say"create a test for X and run it"β Claude gets 17 MCP tools, slash commands, and specialized agents.
Using a different agent (Cursor, Codex, Copilot,40+ more)? Install the skill:npx skills add fastslack/mtw-e2e-runner
npm install --save-dev @matware/e2e-runner npx e2e-runner init # scaffolds e2e/ with a sample test + config
Then pick how to run the browser.You don't need Dockerunless you want the parallel pool:
Option 1 Β· Use the Chrome you already have β no Docker β
Launch any Chromium browser with a debugging port, then point the runner at it:
google-chrome --headless=new --remote-debugging-port=9222 & # or brave / chromium / msedge CHROME_POOL_URL=http://localhost:9222 POOL_DRIVER=cdp npx e2e-runner run --all
Or bake it intoe2e.config.jsso you never repeat it:
export default { baseUrl: 'http://localhost:3000', // your app β plain localhost, no docker hostname poolUrls: ['http://localhost:9222'], poolDriver: 'cdp', };
Nothing to install beyond npm, andbaseUrlis justlocalhost(the browser is on your machine).
Option 2 Β· Obscura β one tiny binary, no Docker
A single ~30 MB binary with built-in anti-detection. Install once, run it, point the runner at it:
obscura serve --port 9222 --stealth & CHROME_POOL_URL=http://localhost:9222 POOL_DRIVER=obscura npx e2e-runner run --all
npx e2e-runner pool start(withpoolDriver: 'obscura'in your config) prints the exact install command for your OS.
Option 3 Β· Docker pool β parallel, for CI & big suites
A shared, queue-managed Chrome pool that runs many tests at once:
npx e2e-runner run --all # the first run auto-starts the Docker pool for you
Requires Docker. SetbaseUrl: 'http://host.docker.internal:3000'so the containerized Chrome can reach your app.
With the Docker pool, Chrome runs inside a container, solocalhostthere means the container β not your machine.host.docker.internalbridges to your host. On Linux (Docker Engine, not Docker Desktop) add--add-host=host.docker.internal:host-gateway, or use your LAN IP. Options 1 & 2 don't have this β the browser is local, so plainlocalhostjust works.
Opene2e/tests/sample.jsonβ a flow is an ordered list of actions:
[ { "name": "homepage loads", "actions": [ { "type": "goto", "value": "/" }, { "type": "assert_text", "text": "Welcome" }, { "type": "screenshot", "value": "home.png" } ]} ]
Run it withnpx e2e-runner run --all. Results β pass/fail, timing, screenshots, network errors β print to your terminal and to theweb dashboardif it's open.
cp node_modules/@matware/e2e-runner/opencode.json ./ mkdir -p .opencode && cp -r node_modules/@matware/e2e-runner/.opencode/ .opencode/
Each install method updates separately β bump the one(s) you use:
# npm dependency (per project) npm install --save-dev @matware/e2e-runner@latest # Claude Code plugin claude plugin update e2e-runner@matware # MCP-only install (npx caches the package β pin @latest to force a refresh) claude mcp add --transport stdio --scope user e2e-runner \ -- npx -y -p @matware/e2e-runner@latest e2e-runner-mcp
[!NOTE] Two gotchas:(1)npxprefers a copy found in the project'snode_modulesover its own cache β if a project pins an old version, the MCP server and dashboard run that old version, so update the project dependency too.(2)Already-running processes keep the old code in memory: after updating, restart the dashboard and reconnect the MCP server (/mcpβe2e-runnerβ Reconnect, or restart your session).
π§ͺZero-code testsβ JSON files that anyone on your team can read and write. No JavaScript, no compilation, no framework lock-in.
π€AI-powered testingβ Claude Code creates, executes, and debugs tests natively through 17 MCP tools. Ask it to "test the checkout flow" and it builds the JSON, runs it, and reports back.
πIssue-to-Test pipelineβ Paste a GitHub or GitLab issue URL. The runner fetches it, generates E2E tests, runs them, and tells you:bug confirmedornot reproducible.
ποΈVisual verificationβ Describe what the page should look like in plain English. The AI captures a screenshot and judges pass/fail against your description. No pixel-diffing setup needed.
π§ Learning systemβ Tracks test stability across runs. Detects flaky tests, unstable selectors, slow APIs, and error patterns β then surfaces actionable insights.
β‘Parallel executionβ Run N tests simultaneously against a shared browser pool (browserless, raw CDP, Lightpanda, Obscura, or Steel). Serial mode available for tests that share state.
π―Pluggable browser driversβ Pick the engine that fits each test: real Chrome via browserless, Lightpanda or Obscura for fast lightweight runs, Steel for managed sessions. Setdriverper test or override the whole run with--driver.
πReal-time dashboardβ Live execution view, run history with pass-rate charts, screenshot gallery with hash-based search, expandable network request logs.
πSmart retriesβ Test-level and action-level retries with configurable delays. Flaky tests are detected and flagged automatically.
π¦Reusable modulesβ Extract common flows (login, navigation, setup) into parameterized modules and reference them with$use.
ποΈCI-readyβ JUnit XML output, exit code 1 on failure, auto-captured error screenshots. Drop-in GitHub Actions example included.
πMulti-projectβ One dashboard aggregates test results from all your projects. One Chrome pool serves them all.
π³Portableβ Chrome runs in Docker, tests are JSON files in your repo. Works on any machine with Node.js and Docker.
Everything about authoring tests β the file format, the full action vocabulary, retries, state isolation, and reuse. Expand what you need:
Each.jsonfile ine2e/tests/contains an array of tests. Each test has anameand sequentialactions:
[ { "name": "homepage-loads", "actions": [ { "type": "goto", "value": "/" }, { "type": "assert_visible", "selector": "body" }, { "type": "assert_url", "value": "/" }, { "type": "screenshot", "value": "homepage.png" } ] } ]
Suite files can have numeric prefixes for ordering (01-auth.json,02-dashboard.json). The--suiteflag matches with or without the prefix, so--suite authfinds01-auth.json.
Click by textβ whenclickusestextinstead ofselector, it searches across common interactive and content elements:
button, a, [role="button"], [role="tab"], [role="menuitem"], [role="option"], [role="listitem"], div[class="cursor"], span, li, td, th, label, p, h1-h6
These actions handle common patterns in React/MUI apps that normally require verboseevaluateboilerplate:
// Before: 5 lines of evaluate boilerplate { "type": "evaluate", "value": "const input = document.querySelector('#search'); const nativeSet = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value').set; nativeSet.call(input, 'term'); input.dispatchEvent(new Event('input', {bubbles: true})); input.dispatchEvent(new Event('change', {bubbles: true}));" } // After: 1 action { "type": "type_react", "selector": "#search", "value": "term" }
All subsequent actions run in the active tab:
{ "type": "click", "text": "Open report" } { "type": "wait_for_tab", "text": "report" } { "type": "assert_text", "text": "Quarterly results" } { "type": "close_tab" }
Test-level retryβ retry an entire test on failure. Set globally via config or per-test:
{ "name": "flaky-test", "retries": 3, "timeout": 15000, "actions": [...] }
Tests that pass after retry are flagged asflakyin the report and learning system.
Action-level retryβ retry a single action without rerunning the entire test. Useful for timing-sensitive clicks and waits:
{ "type": "click", "selector": "#dynamic-btn", "retries": 3 } { "type": "wait", "selector": ".lazy-loaded", "retries": 2 }
Set globally:actionRetriesin config,--action-retries <n>CLI, orACTION_RETRIESenv var. Delay between retries:actionRetryDelay(default 500ms).
Tests that share state (e.g., two tests modifying the same record) can race when running in parallel. Mark them as serial:
{ "name": "create-patient", "serial": true, "actions": [...] } { "name": "verify-patient-list", "serial": true, "actions": [...] }
Serial tests run one at a timeafterall parallel tests finish β preventing interference without slowing down independent tests.
The simplest approach β log in via the UI like a real user:
For SPAs with JWT, skip the login form by injecting the token directly:
{ "type": "set_storage", "value": "accessToken=eyJhbGciOiJIUzI1NiIs..." }
// e2e.config.js export default { authToken: 'eyJhbGciOiJIUzI1NiIs...', authStorageKey: 'accessToken', };
Each test runs in afresh browser context, so auth state is automatically clean between tests.
Extract common flows into parameterized modules:
{ "name": "dashboard-loads", "actions": [ { "$use": "login", "params": { "email": "user@test.com", "password": "secret" } }, { "type": "assert_text", "text": "Dashboard" } ] }
Modules support parameter validation (required params fail fast), conditional blocks ({{#param}}...{{/param}}), nested composition, and cycle detection.
Run actions at lifecycle points. Define globally in config or per-suite:
{ "hooks": { "beforeAll": [{ "type": "goto", "value": "/setup" }], "beforeEach": [{ "type": "goto", "value": "/" }], "afterEach": [{ "type": "screenshot", "value": "after.png" }], "afterAll": [] }, "tests": [...] }
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





