playwright-report-mcp

v3.4.0
io.github.hubertgajewski/playwright-report-mcp Checked 2 days ago Published 2 months ago

Run Playwright tests and surface structured results for AI agents doing test failure analysis.

Values you need

VariableWhat it is
PW_ALLOWED_DIRSoptional path.delimiter-separated list of directories the per-call workingDirectory parameter may point at. Entries may be absolute or relative (resolved once against the server's launch cwd at startup). Defaults to '.' (authorizes only the launch directory).
PW_RESULTS_FILEoptional Absolute path override for the JSON reporter output file. Defaults to <workingDirectory>/test-results/results.json, computed per call.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add playwright-report-mcp -- npx -y playwright-report-mcp@3.4.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "playwright-report-mcp": {
      "args": [
        "-y",
        "playwright-report-mcp@3.4.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "playwright-report-mcp": {
      "args": [
        "-y",
        "playwright-report-mcp@3.4.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "playwright-report-mcp": {
      "args": [
        "-y",
        "playwright-report-mcp@3.4.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.playwright-report-mcp]
command = "npx"
args = ["-y", "playwright-report-mcp@3.4.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: run_tests, get_run_status, get_failed_tests, get_test_attachment, list_tests.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json