Skip to content
VS Code

playwright report mcp for VS Code

io.github.hubertgajewski/playwright-report-mcp

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

client:VS Code transport:stdio runtime:npm

Install playwright report mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pw-allowed-dirs",
      "description": "PW_ALLOWED_DIRS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pw-results-file",
      "description": "PW_RESULTS_FILE",
      "password": true
    }
  ],
  "servers": {
    "playwright-report-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "playwright-report-mcp"
      ],
      "env": {
        "PW_ALLOWED_DIRS": "${input:pw-allowed-dirs}",
        "PW_RESULTS_FILE": "${input:pw-results-file}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

playwright report mcp in other clients