mcp-playwright-test-runner
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PW_TIMEOUT_MS | No | Run timeout in milliseconds; a run that exceeds it is killed and reported as timed_out. Defaults to 600000 (10 minutes). | |
| PLAYWRIGHT_CMD | No | The Playwright command to run. Defaults to `npx playwright`. | |
| PW_PROJECT_DIR | No | The Playwright project to test (equivalent to the --project-dir flag). Defaults to the current directory. | |
| MAX_STORED_RUNS | No | Number of runs kept in memory. Defaults to 20. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_testsA | List the tests Playwright can see in the configured project without running them. Use it to find out what exists, or to get exact titles before filtering a run with grep. |
| run_testsA | Run the Playwright suite, or a filtered part of it, and return a compact summary plus a run_id. Use get_results or get_failure_details with that run_id for detail. A run that goes past the timeout is killed. |
| get_resultsA | Read back a finished run: per-test status, duration, retry count and the first line of any error. Defaults to the most recent run. |
| get_failure_detailsA | Explain why tests failed: full error message, stack, location, captured stdout/stderr and the screenshot or trace paths Playwright saved. Defaults to every failure in the most recent run. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool maps to a distinct phase of the workflow: discovery, execution, result summarization, and failure diagnosis. The boundary between get_results and get_failure_details is explicitly clarified as summary versus detailed diagnostics.
All tools use a consistent snake_case verb_noun pattern: list_tests, run_tests, get_results, get_failure_details. The convention is predictable throughout.
Four tools exactly cover the core test-runner workflow without filler. Each tool earns its place and the surface is well-scoped.
The set covers test discovery, execution, result retrieval, and failure diagnosis. Minor gaps exist around explicitly canceling a run or listing run history, though timeout handling and run_id/default-latest behavior mitigate these.