playwright-report-mcp

v0.1.0
@yahya_mahmudiy/playwright-report-mcp Checked 3 days ago Published 1 month ago

MCP server that reads Playwright JSON reports and returns compact JSON answers (summary, failures, slowest tests, run comparison) so an AI agent never has to…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_summary

Totals for a Playwright JSON report: total, passed, failed, flaky, skipped and run duration in milliseconds.

ParameterTypeDescription
reportPath *stringPath to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory.

list_failures

Failed tests in a Playwright JSON report: full name, title, project and a trimmed error message for each.

ParameterTypeDescription
reportPath *stringPath to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory.
includeFlakybooleanAlso list tests that failed and then passed on retry
maxErrorCharsintegerMaximum characters of each error message

slowest_test

The N slowest tests in a Playwright JSON report, with their execution times in milliseconds.

ParameterTypeDescription
reportPath *stringPath to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory.
limitintegerHow many tests to return (N)

compare_reports

Compare two Playwright JSON reports (baseline vs current): newly failed, newly passed, still failing, added and removed tests, plus per-test execution time changes.

ParameterTypeDescription
baselinePath *stringPath to the baseline (earlier) Playwright JSON report
currentPath *stringPath to the current (later) Playwright JSON report
limitintegerMaximum execution time changes to return
maxErrorCharsintegerMaximum characters of each error message
minDurationDeltaMsintegerOnly report execution time changes of at least this many milliseconds

get_execution_times

Execution time in milliseconds of every test in a Playwright JSON report.

ParameterTypeDescription
reportPath *stringPath to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory.
limitintegerMaximum tests to return
sortstringOrdering of the tests; 'report' keeps the order of the report file

get_test_details

Everything the report holds about one test, looked up by name: status, location, every attempt with its error, code snippet and attachments.

ParameterTypeDescription
name *stringTest title or full name ('file › describe › title'); a case-insensitive fragment also matches
reportPath *stringPath to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory.
projectstringRestrict the lookup to one Playwright project, e.g. chromium