Skip to content

docs(report): note the file: protocol block in Path A (Playwright MCP)#77

Merged
dadachi merged 1 commit into
mainfrom
docs/playwright-file-protocol-caveat
May 22, 2026
Merged

docs(report): note the file: protocol block in Path A (Playwright MCP)#77
dadachi merged 1 commit into
mainfrom
docs/playwright-file-protocol-caveat

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented May 22, 2026

What

Adds a caveat to docs/validation-report.md §10 Path A documenting that @playwright/mcp blocks the file: protocol by default — so the documented browser_navigate file://…/validation-report.html step fails with "Access to 'file:' protocol is blocked."

Why

Hit this empirically while running Path A to visually verify a validation-report.html. The doc as written can't be followed literally. The fix documents the verified workaround (serve the output dir over a throwaway local python3 -m http.server and navigate to http://127.0.0.1:<port>/…), notes that the self-contained report needs only a plain static server, and flags that browser_take_screenshot's saved PNG lands in the MCP server's cwd (project root), not the output dir.

Scope

Docs only — one paragraph + a code block. No code, no pipeline change.

🤖 Generated with Claude Code

@playwright/mcp blocks file:// URLs by default, so the documented
`browser_navigate file://…/validation-report.html` step fails. Add the
verified workaround (serve the output dir over a throwaway local HTTP
server) plus a note that the saved PNG lands in the MCP server's cwd.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit e937dcb into main May 22, 2026
1 check passed
@dadachi dadachi deleted the docs/playwright-file-protocol-caveat branch May 22, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant