mtw-e2e-runner
This MCP server lets an AI agent create, run, inspect, and manage E2E browser tests for the mtw-e2e-runner project.
Run all suites, a specific suite, or a JSON test file, with retries, concurrency, base URL, network-error failure, and visual-verification strictness controls.
List available test suites and create new JSON test suites or reusable parameterized modules.
Check Chrome pool and app environment pool status, including capacity, sessions, forks, ports, and drivers.
Capture screenshots of any URL, retrieve screenshots by hash, and analyze page structure to discover selectors and suggest test scaffolds.
Start, stop, or restart the live web dashboard.
Fetch GitHub/GitLab issues and prepare or run issue-based E2E/API test generation, with optional auth token injection.
Query learning insights on flaky tests, selectors, pages, APIs, errors, and trends.
Query detailed network request/response logs for a run, with filters for status, method, URL, headers, and bodies.
Manage SQLite-backed project/suite variables usable as
{{var.KEY}}in tests.Manage the optional Neo4j knowledge graph container for learnings.
Manages a containerized Chrome pool for parallel browser test execution and ensuring consistent testing environments.
Supports an Issue-to-Test pipeline that fetches GitHub issue details to automatically generate and execute E2E tests for bug reproduction.
Provides CI-ready integration features including JUnit XML output and drop-in configuration examples for automated testing workflows.
Allows transforming GitLab issue reports into executable E2E tests to facilitate the reproduction and validation of reported bugs.
E2E Runner lets 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
With the built-in MCP 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 is just JSON β an ordered list of what a user does:
[
{ "name": "login-flow", "actions": [
{ "type": "goto", "value": "/login" },
{ "type": "type", "selector": "#email", "value": "user@test.com" },
{ "type": "type", "selector": "#password", "value": "secret" },
{ "type": "click", "text": "Sign In" },
{ "type": "assert_text", "text": "Welcome back" },
{ "type": "screenshot", "value": "logged-in.png" }
]}
]No imports, no describe/it, no build step. If you can read it you can write it β or just ask.
Connect it to Claude Code (2 commands):
claude plugin marketplace add fastslack/mtw-e2e-runner
claude plugin install e2e-runner@matwareNow 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 -y skills@1.9.0 add fastslack/mtw-e2e-runner
Related MCP server: easy-ui-mcp
π Contents
Section | What's inside | |
π | npm setup Β· run with your own Chrome (no Docker), Obscura, or a Docker pool | |
β¨ | feature overview at a glance | |
βοΈ | test format Β· full action catalog Β· retries Β· serial Β· modules Β· auth Β· hooks | |
π€ | Claude Code Β· OpenCode Β· 17 MCP tools Β· visual verification Β· issue-to-test | |
π | live dashboard Β· learning system Β· network logs Β· screenshot capture | |
π | browserless Β· cdp Β· lightpanda Β· obscura Β· moli Β· steel | |
βοΈ | commands Β· flags Β· |
π Install β it's tiny
npm install --save-dev @matware/e2e-runner@1.6.0
npx -y @matware/e2e-runner@1.6.0 init # scaffolds e2e/ with a sample test + configThen pick how to run the browser. You don't need Docker unless 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 -y @matware/e2e-runner@1.6.0 run --allOr bake it into e2e.config.js so 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, and baseUrl is just localhost (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 -y @matware/e2e-runner@1.6.0 run --allnpx -y @matware/e2e-runner@1.6.0 pool start (with poolDriver: '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 -y @matware/e2e-runner@1.6.0 run --all # the first run auto-starts the Docker pool for youRequires Docker. Set baseUrl: 'http://host.docker.internal:3000' so the containerized Chrome can reach your app.
With the Docker pool, Chrome runs inside a container, so localhost there means the container β not your machine. host.docker.internal bridges 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 plain localhost just works.
Write your first test
Open e2e/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 with npx -y @matware/e2e-runner@1.6.0 run --all. Results β pass/fail, timing, screenshots, network errors β print to your terminal and to the web dashboard if it's open.
cp node_modules/@matware/e2e-runner/opencode.json ./
mkdir -p .opencode && cp -r node_modules/@matware/e2e-runner/.opencode/* .opencode/See OPENCODE.md for details.
Updating
Each install method updates separately β bump the one(s) you use:
# npm dependency (per project)
npm install --save-dev @matware/e2e-runner@1.6.0
# Claude Code plugin
claude plugin update e2e-runner@matware
# MCP-only install (pinned to an exact version β bump it to upgrade)
claude mcp add --transport stdio --scope user e2e-runner \
-- npx -y -p @matware/e2e-runner@1.6.0 e2e-runner-mcpTwo gotchas:(1) npx prefers a copy found in the project's node_modules over 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).
β¨ What you get
π§ͺ 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 confirmed or not 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, Moli, 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, Obscura or Moli for fast lightweight runs, Steel for managed sessions. Set driver per 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.
βοΈ Writing tests
Everything about authoring tests β the file format, the full action vocabulary, retries, state isolation, and reuse. Expand what you need:
Each .json file in e2e/tests/ contains an array of tests. Each test has a name and sequential actions:
[
{
"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 --suite flag matches with or without the prefix, so --suite auth finds 01-auth.json.
Action | Fields | Description |
|
| Navigate to URL (relative to |
|
| Click by CSS selector or visible text content. Text mode also takes |
|
| Clear field and type text |
|
| Wait for element/text to appear, for |
|
| Capture a screenshot |
|
| Select a dropdown option |
|
| Clear an input field |
|
| Press a keyboard key ( |
|
| Scroll to element or by pixel amount |
|
| Hover over an element |
|
| Execute JavaScript in the browser context |
|
| Browser navigation ( |
| β | Clear all cookies for the current page |
| optional | Wait until the network has been idle for |
|
| Set a |
|
| Run a GraphQL query/mutation via in-page |
Click by text β when click uses text instead of selector, 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{ "type": "click", "text": "Sign In" }Action | Fields | Description |
|
| Assert text exists anywhere on the page (substring) |
|
| Assert text does NOT appear anywhere on the page β opposite of |
|
| Assert text inside a scoped container. |
|
| Assert element's text contains (or exactly matches) the expected text |
|
| Assert current URL path or full URL. Paths ( |
|
| Assert element exists and is visible |
|
| Assert element is hidden or doesn't exist |
|
| Check attribute: |
|
| Assert element has a CSS class |
|
| Assert input/select/textarea |
|
| Assert element text matches a regex pattern |
|
| Assert element count: exact ( |
| β | Fail if any network requests failed (e.g. |
|
| Assert a |
|
| Visual regression: compare a screenshot against a golden reference. The first run saves the golden; later runs fail if more pixels differ than the threshold (default 2%) and write a diff image |
|
| Extract element text (non-assertion, never fails). Result: |
These actions handle common patterns in React/MUI apps that normally require verbose evaluate boilerplate:
Action | Fields | Description |
|
| Type into React controlled inputs using the native value setter. Dispatches |
|
| Click element whose textContent matches a regex (case-insensitive). Default: first match. Use |
|
| Click a |
|
| Open a MUI Autocomplete/Select, optionally type |
|
| Focus an autocomplete input by its label text. Supports MUI and generic |
|
| Click a chip/tag element by text. Searches |
|
| Click an icon by |
|
| Click a menu item by text across |
|
| Click a child element inside the smallest container matching |
// 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" }Action | Fields | Description |
|
| Open a new tab and navigate to the URL (relative to |
|
| Switch the active tab by label, numeric index, or title/URL match (regex or substring). |
| optional | Wait for a new tab/popup opened by the app ( |
|
| Assert the number of open tabs: exact ( |
| optional | Close the current (or named) tab and switch back to the last remaining one |
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 as flaky in 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: actionRetries in config, --action-retries <n> CLI, or ACTION_RETRIES env 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 time after all parallel tests finish β preventing interference without slowing down independent tests.
The simplest approach β log in via the UI like a real user:
{
"hooks": {
"beforeEach": [
{ "type": "goto", "value": "/login" },
{ "type": "type", "selector": "#email", "value": "test@example.com" },
{ "type": "type", "selector": "#password", "value": "test-password" },
{ "type": "click", "text": "Sign In" },
{ "type": "wait", "selector": ".dashboard" }
]
},
"tests": [...]
}For SPAs with JWT, skip the login form by injecting the token directly:
{ "type": "set_storage", "value": "accessToken=eyJhbGciOiJIUzI1NiIs..." }Or set it globally in config:
// e2e.config.js
export default {
authToken: 'eyJhbGciOiJIUzI1NiIs...',
authStorageKey: 'accessToken',
};Each test runs in a fresh browser context, so auth state is automatically clean between tests.
More strategies: Cookie-based auth, HTTP header injection, OAuth/SSO bypasses, reusable auth modules, and role-based testing β see docs/authentication.md
Extract common flows into parameterized modules:
// e2e/modules/login.json
{
"$module": "login",
"description": "Log in via the UI login form",
"params": {
"email": { "required": true, "description": "User email" },
"password": { "required": true, "description": "User password" }
},
"actions": [
{ "type": "goto", "value": "/login" },
{ "type": "type", "selector": "#email", "value": "{{email}}" },
{ "type": "type", "selector": "#password", "value": "{{password}}" },
{ "type": "click", "text": "Sign In" },
{ "type": "wait", "value": "2000" }
]
}Use in tests:
{
"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": [...]
}Important:
beforeAllruns on a separate browser page that is closed before tests start. UsebeforeEachfor state that tests need (cookies, localStorage, auth tokens).
Skip exploratory or draft tests from --all runs:
// e2e.config.js
export default {
exclude: ['explore-*', 'debug-*', 'draft-*'],
};Individual suite runs (--suite) are not affected by exclude patterns.
π€ AI integration
The whole point: your agent writes, runs, and verifies tests for you.
claude plugin marketplace add fastslack/mtw-e2e-runner
claude plugin install e2e-runner@matwareThis gives Claude 17 MCP tools, a workflow skill, 4 slash commands (/e2e-runner:run, /e2e-runner:create-test, /e2e-runner:verify-issue, /e2e-runner:capture), and 3 specialized agents (test-analyzer, test-creator, test-improver).
MCP-only install (tools only, no skill/commands/agents):
claude mcp add --transport stdio --scope user e2e-runner \
-- npx -y -p @matware/e2e-runner@1.6.0 e2e-runner-mcpcp node_modules/@matware/e2e-runner/opencode.json ./
mkdir -p .opencode && cp -r node_modules/@matware/e2e-runner/.opencode/* .opencode/See OPENCODE.md for details.
Tool | Description |
| Run tests (all, by suite, or by file) |
| List available test suites |
| Create a new test JSON file |
| Create a reusable module |
| Check Chrome pool health |
| Inspect the app environment pool (forks, ports, drivers) |
| Retrieve a screenshot by hash |
| Capture screenshot of any URL |
| Extract page structure (interactive elements, forms, headings) and emit test scaffolds |
| Start web dashboard |
| Stop web dashboard |
| Restart the dashboard (new project dir/port, clear stale sessions) |
| Fetch issue and generate tests |
| Query network logs for a run |
| Query stability insights |
| Manage SQLite-backed |
| Manage Neo4j knowledge graph |
Pool start/stop are CLI-only β not exposed via MCP.
Describe what the page should look like β AI judges pass/fail from screenshots:
{
"name": "dashboard-loads",
"expect": "Patient list with at least 3 rows, no error messages, sidebar with navigation links",
"actions": [
{ "type": "goto", "value": "/dashboard" },
{ "type": "wait", "selector": ".patient-list" }
]
}After test actions complete, the runner auto-captures a verification screenshot. The MCP response includes the screenshot hash β Claude Code retrieves it and visually verifies against your expect description. No API key required.
Turn GitHub and GitLab issues into executable E2E tests. Paste an issue URL and get runnable tests β automatically.
How it works:
Fetch β Pulls issue details (title, body, labels) via
ghorglabCLIGenerate β AI creates JSON test actions based on the issue description
Run β Optionally executes the tests immediately to verify if a bug is reproducible
# Fetch and display
e2e-runner issue https://github.com/owner/repo/issues/42
# Generate a test file via Claude API
e2e-runner issue https://github.com/owner/repo/issues/42 --generate
# Generate + run + report
e2e-runner issue https://github.com/owner/repo/issues/42 --verify
# -> "BUG CONFIRMED" or "NOT REPRODUCIBLE"In Claude Code, just ask:
"Fetch issue #42 and create E2E tests for it"
Bug verification logic: Generated tests assert the correct behavior. Test failure = bug confirmed. All tests pass = not reproducible.
Auth: GitHub requires gh CLI, GitLab requires glab CLI. Self-hosted GitLab is supported.
π Dashboard & insights
e2e-runner dashboard # Start on default port 8484
e2e-runner dashboard --port 9090 # Custom portLive execution β monitor tests in real-time with step-by-step progress, durations, and active worker count.
Test suites β browse all suites across projects. Run a single suite or all tests with one click.
Run history β track pass-rate trends with the built-in chart. Click any row to expand full detail.
Run detail β PASS/FAIL badges, screenshot thumbnails with copyable hashes (ss:77c28b5a), formatted console errors, and network request logs.
Screenshot gallery β browse all captured screenshots with hash search (action, error, and verification captures).
Pool status β Chrome pool health: available slots, running sessions, memory pressure.
The runner learns from every test run β building knowledge about your test suite over time. Query insights via the e2e_learnings MCP tool:
Query | Returns |
| Full health overview: pass rate, flaky tests, unstable selectors, API issues |
| Tests that pass only after retries |
| CSS selectors with high failure rates |
| Pages with console errors, network failures, load time issues |
| API endpoints with error rates and latency (auto-normalized: UUIDs, hashes, IDs) |
| Most frequent error patterns, categorized |
| Pass rate over time (auto-switches to hourly when all data is from one day) |
| Drill-down history for a specific test |
| Drill-down history for a specific page |
| Drill-down history for a specific selector |
Storage & export:
SQLite (
~/.e2e-runner/dashboard.db) β default, zero setupNeo4j knowledge graph β optional, for relationship-based analysis. Manage via
e2e_neo4jMCP tool ordocker composeMarkdown report (
e2e/learnings.md) β auto-generated after each run
Test narration: Each test run generates a human-readable narrative of what happened step by step, visible in the CLI output and the dashboard.
Explicit assertion β place assert_no_network_errors after critical page loads:
{ "type": "goto", "value": "/dashboard" },
{ "type": "wait", "selector": ".loaded" },
{ "type": "assert_no_network_errors" }Global flag β set failOnNetworkError: true to automatically fail any test with network errors:
e2e-runner run --all --fail-on-network-errorWhen disabled (default), the runner still collects and reports network errors β the MCP response includes a warning when tests pass but have network errors.
Full network logging β all XHR/fetch requests are captured with URL, method, status, duration, request/response headers, and response body (truncated at 50KB). Viewable in the dashboard with expandable request detail rows.
MCP drill-down flow:
1. e2e_run β compact networkSummary + runDbId
2. e2e_network_logs(runDbId) β all requests (url, method, status, duration)
3. e2e_network_logs(runDbId, errorsOnly: true) β only failed requests
4. e2e_network_logs(runDbId, includeHeaders: true) β with headers
5. e2e_network_logs(runDbId, includeBodies: true) β full request/response bodiesThe e2e_run response stays compact (~5KB) regardless of how many requests were captured. Use e2e_network_logs with the returned runDbId to drill into details on demand.
Capture screenshots of any URL on demand β no test suite required:
e2e-runner capture https://example.com
e2e-runner capture https://example.com --full-page --selector ".loaded" --delay 2000Via MCP, the e2e_capture tool supports authToken and authStorageKey for authenticated pages β it injects the token into localStorage before navigating.
Every screenshot gets a deterministic hash (ss:a3f2b1c9). Use e2e_screenshot to retrieve any screenshot by hash β it returns the image with metadata (test name, step, type).
π Browser drivers
The runner can talk to multiple browser engines through different drivers. The default is auto β it probes each pool URL and picks the right driver per pool.
Driver | Engine | Detection probe | When to use |
| Real Chromium via browserless |
| Default. Production-grade JS execution, screencast, full Chrome behavior |
| Generic CDP-compatible (raw Chrome, etc.) |
| Fallback for any CDP server that isn't one of the others |
| Lightpanda (Zig) |
| ~9Γ faster, ~16Γ less memory than headless Chrome β ideal for high-volume scrape-style tests |
| Obscura (Rust + V8) |
| ~30 MB RAM footprint, built-in anti-detection ( |
| Moli (Rust + V8) |
| Lightweight, structure-first engine with on-demand layout; real screenshots, |
|
| Managed session lifecycle, REST API for orchestration |
{
"tests": [
{
"name": "checkout flow (heavy JS, real Chrome)",
"driver": "browserless",
"actions": [...]
},
{
"name": "scrape product page (lightweight)",
"driver": "obscura",
"fallbackDriver": "cdp",
"actions": [...]
}
]
}driver is optional. If set, only pools whose detected driver matches become candidates. fallbackDriver is explicit opt-in β without it, a missing target driver fails the test with a clear message. Pool busyness does not trigger fallback; the runner waits inside the filtered set.
Force a driver for a whole run (CLI overrides win over per-test fields β useful for A/B benchmarks):
e2e-runner run --all --driver obscura
e2e-runner run --all --driver obscura --fallback-driver cdp# browserless (default) β managed by `pool start`
e2e-runner pool start
# Lightpanda β pool start uses templates/docker-compose-lightpanda.yml
e2e-runner pool start # with poolDriver: 'lightpanda' in config
# Obscura β install the binary and run it yourself
curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-x86_64-linux.tar.gz
tar xzf obscura-x86_64-linux.tar.gz
./obscura serve --port 9222 --stealth
# then point the runner at it: poolUrls: ['http://localhost:9222'], poolDriver: 'obscura'
# Moli β install the binary and run it with layout enabled (needed for clicks + screenshots)
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | sh
moli serve --layout --resource --port 9222
# then: poolUrls: ['http://localhost:9222'], poolDriver: 'moli' (or 'auto')
# Moli runs on the host, so use a host-reachable baseUrl (http://localhost:3000), not host.docker.internalβοΈ CLI, config & CI
# Run tests
e2e-runner run --all # All suites
e2e-runner run --suite auth # Single suite
e2e-runner run --tests path/to.json # Specific file
e2e-runner run --inline '<json>' # Inline JSON
# Pool management (CLI only, not MCP)
e2e-runner pool start # Start Chrome container
e2e-runner pool stop # Stop Chrome container
e2e-runner pool status # Check pool health
# Issue-to-test
e2e-runner issue <url> # Fetch issue
e2e-runner issue <url> --generate # Generate test via AI
e2e-runner issue <url> --verify # Generate + run + report
# Dashboard
e2e-runner dashboard # Start web dashboard
# Other
e2e-runner list # List available suites
e2e-runner capture <url> # On-demand screenshot
e2e-runner init # Scaffold projectFlag | Default | Description |
|
| Application base URL |
|
| Chrome pool WebSocket URL |
|
| Parallel test workers |
|
| Retry failed tests N times |
|
| Retry failed actions N times |
|
| Per-test timeout |
|
| Default action timeout |
|
| Report: |
|
| Environment profile |
|
| Fail tests with network errors |
| dir name | Project display name |
| (per-test) | Force pool driver for the run: |
| none | Explicit fallback if no pool with |
Create e2e.config.js in your project root:
export default {
baseUrl: 'http://host.docker.internal:3000',
concurrency: 4,
retries: 2,
actionRetries: 1,
testTimeout: 30000,
outputFormat: 'both',
failOnNetworkError: true,
exclude: ['explore-*', 'debug-*'],
hooks: {
beforeEach: [{ type: 'goto', value: '/' }],
},
environments: {
staging: { baseUrl: 'https://staging.example.com' },
production: { baseUrl: 'https://example.com', concurrency: 5 },
},
};Config priority (highest wins):
CLI flags
Environment variables
.envfile in the project root (KEY=VALUE, never overrides existingprocess.envvalues)Config file (
e2e.config.jsore2e.config.json)Defaults
When --env <name> is set, the matching profile overrides everything.
e2e-runner run --all --output junitjobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx -y @matware/e2e-runner@1.6.0 pool start
- run: npx -y @matware/e2e-runner@1.6.0 run --all --output junit
- uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: e2e/screenshots/junit.xmlimport { createRunner } from '@matware/e2e-runner';
const runner = await createRunner({ baseUrl: 'http://localhost:3000' });
const report = await runner.runAll();
const report = await runner.runSuite('auth');
const report = await runner.runFile('e2e/tests/login.json');
const report = await runner.runTests([
{ name: 'quick-check', actions: [{ type: 'goto', value: '/' }] },
]);Embedding the runner in another program? Use the stable, side-effect-free entry instead β versioned results (schemaVersion: 1, JSON Schema included), no dashboard DB / learnings / LLM calls, no native addons:
import { runSuite, inspectPage } from '@matware/e2e-runner/embed';
const result = await runSuite(tests, { baseUrl, poolUrl, screenshotsDir, vars, env });
const page = await inspectPage('http://app:3000/login', { poolUrl, screenshotsDir });See docs/embedding.md.
Requirements
Node.js >= 20
Docker β only for Option 3 (the parallel Chrome pool). Options 1 & 2 don't need it.
License
Copyright 2026 Matias Aguirre (fastslack) β Matware
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Available Tools
17 toolse2e_analyzeA
Analyze a page's structure and return all interactive elements (forms, buttons, links, navigation, tables, modals, etc.) with their CSS selectors, plus suggested test scaffolds. One call replaces the entire screenshotβguess-selectorsβretry cycle.
Inputs: url (required), cwd, delay, scope, +6 more.
e2e_app_pool_statusA
Get the status of the app environment pool. Shows active forks, allocated ports, per-fork details (driver, baseUrl, test name, fork time). Only relevant when appPool is enabled in config.
Inputs: cwd.
e2e_captureA
Capture a screenshot of any URL on demand. Connects to the Chrome pool, navigates to the URL, takes a screenshot, and returns the image with its ss:HASH.
Inputs: url (required), cwd, delay, filename, +5 more.
e2e_create_moduleA
Create a reusable module for E2E tests. Modules encapsulate repeated action sequences referenced via { "$use": "module-name", "params": {...} }.
Good module candidates: auth setup, page navigation, tab clicking, opening sidebars/drawers, form fill sequences, cleanup routines. Modules can compose β a module can $use other modules. Params use {{paramName}} mustache syntax in action fields. Extract a module when you see the same 2+ action sequence in multiple tests.
Inputs: name (required), actions (required), cwd, params, +1 more.
e2e_create_testA
Create a new E2E test JSON file. Prefer built-in actions over evaluate β more robust and readable. Full catalog: the e2e-testing skill / references/action-types.md.
Action cheat-sheet:
Click: click (by text), click_regex, click_menu_item, click_option, click_chip, click_icon, click_in_context; in a dialog use click with scope:"dialog" (+ last/visible).
Select (MUI): select_combobox (open+optional filter+pick), select, focus_autocomplete.
Assert text: assert_text (present), assert_no_text (absent), assert_text_in (scoped regex), assert_element_text, assert_matches.
Assert elements (selector, NOT text): assert_visible, assert_not_visible, assert_count, assert_attribute, assert_input_value, assert_url.
Nav/wait: goto, navigate (SPA), wait {text|selector|gone|value(ms)}, wait_network_idle.
Form: type, type_react (React inputs; optional blur/waitAfter), clear, press.
Field rules: assert_text/assert_no_text use "text" (whole page); assert_visible/assert_not_visible use "selector"; for text absence use assert_no_text. Use evaluate only for computed styles, complex logic, GraphQL (window.__e2eGql), or app state.
Modules: { "$use": "module-name", "params": {...} } references reusable modules in e2e/modules/ (they compose). Run e2e_list to see available modules.
Inputs: name (required), tests (required), cwd, hooks.
e2e_dashboard_restartA
Restart the E2E Runner web dashboard. Stops the current instance and starts a new one, optionally with a new cwd or port. Useful when switching projects or when the dashboard was started from another session.
Inputs: cwd, port.
e2e_dashboard_startB
Start the E2E Runner web dashboard. Provides a real-time UI for running tests, viewing results, screenshots, history, and pool status.
Inputs: cwd, port.
e2e_dashboard_stopB
Stop the E2E Runner web dashboard.
Inputs: no named parameters.
e2e_issueA
Fetch a GitHub/GitLab issue and prepare E2E test generation. Returns issue details and a prompt for test creation. Use mode "verify" to auto-generate and run tests (requires ANTHROPIC_API_KEY).
Inputs: url (required), cwd, mode, testType, +2 more.
e2e_learningsB
Query the E2E learning system for insights about test stability, flaky tests, selector health, page health, API health, error patterns, and trends. Builds knowledge across runs.
Inputs: query (required), cwd, days.
e2e_listA
List all available E2E test suites with their test names and counts.
Inputs: cwd.
e2e_neo4jC
Manage the Neo4j knowledge graph container for E2E learnings. Requires Docker.
Inputs: action (required), cwd.
e2e_network_logsA
Query network request/response logs for a specific test run. Returns filtered logs from SQLite. Use the runDbId from e2e_run results to drill down into network details on demand.
Inputs: runDbId (required), method, testName, statusMax, +5 more.
e2e_pool_statusB
Get the status of the Chrome pool (browserless/chrome). Shows availability, running sessions, capacity, and queued requests.
Inputs: cwd.
e2e_runB
Run E2E browser tests. Specify "all" to run every suite, "suite" for a specific suite, or "file" for a JSON file path. Returns structured results with pass/fail status, duration, and error details.
Inputs: all, cwd, file, suite, +5 more.
e2e_screenshotA
Retrieve a screenshot by its hash (e.g. ss:a3f2b1c9). Returns the image. Hashes are shown in the dashboard next to screenshots.
Inputs: hash (required).
e2e_varsB
Manage project variables stored in SQLite. Variables can be referenced in test JSON as {{var.KEY}}. Supports project-wide and per-suite scoping.
Inputs: action (required), cwd, key, scope, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 17 tools
Most tools target clearly distinct capabilities: running tests, listing suites, creating tests/modules, analyzing pages, capturing screenshots, and querying logs are all separable. Two near-pairs require reading descriptions to distinguish β e2e_pool_status (Chrome pool) vs e2e_app_pool_status (app environment pool), and e2e_screenshot (retrieve by hash) vs e2e_capture (new capture). These are clarified in the text but are the only points of friction.
The e2e_ prefix is applied consistently across all 17 tools, which helps grouping. However, the suffix convention is mixed: some are verb_noun (e2e_run, e2e_create_test, e2e_dashboard_start) while others are bare nouns with no clear action (e2e_vars, e2e_learnings, e2e_neo4j, e2e_issue, e2e_screenshot), making the intended action ambiguous from the name alone.
17 tools is on the heavier side but each maps to a genuine, non-redundant capability of an E2E runner (execution, test/module authoring, page analysis, pools, dashboard control, learnings, logs, variables). The dashboard start/stop/restart trio and dual pool-status tools add some bulk but remain justified. Slightly over the ideal band rather than mis-scoped.
The surface covers the full workflow: authoring tests and modules, running and listing suites, analyzing pages, capturing screenshots, inspecting pools, logs, learnings, and variables. Gaps exist around lifecycle management β there is no explicit update/delete for tests or modules, and no run-history browse beyond learnings trends β but agents can work around these.
Maintenance
Related MCP Connectors
Run multi-step tasks in a real Chrome browser: persistent environments, live view, human takeover.
Write, run and check natural-language browser tests of your web app from your AI assistant.
Browser-based QA for AI-built software. Test pages with real browsers via agents.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Related MCP Servers
- AlicenseAqualityDmaintenanceRun real Playwright E2E tests from your AI coding agent.421 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to drive Playwright-based browser automation for UI testing, returning JSON/HTML reports with screenshots without server-side LLM or test scripts. https://easy-ui-mcp.vercel.app/16261MIT
- AlicenseAqualityCmaintenanceAI-native browser testing, directly from your coding agent.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to autonomously interact with and test web applications in a real browser, providing DOM/Accessibility tree extraction, runtime telemetry, screenshot capture, and Markdown test reports.38 npm1MIT