Update Playwright MCP server to use official Docker image#4876
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
✅ Agentic Changeset Generator completed successfully. |
|
See docs on using docker: |
|
@copilot apply comment above |
…t/mcp) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated to use the official Playwright MCP Docker image ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot continue work |
…lways Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed the changes:
Commit 7039f42. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
... Removed the version tag from the Docker image. Now using Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
✅ Agentic Changeset Generator completed successfully. |
|
Agentic Smoke Codex triggered by this pull request. |
|
❌ Agentic Smoke Copilot failed and wasn't able to produce a result. |
|
Agentic Smoke Claude triggered by this pull request. |
Claude Engine Smoke Test Results ✅1. GitHub MCP Testing ✅Successfully reviewed the last 2 merged pull requests: PR #4890 - "Fix broken integration tests by stripping YAML comment header before assertions"
PR #4888 - "Add PR description conciseness guideline to AGENTS.md"
2. File Writing Testing ✅Created test file:
3. Bash Tool Testing ✅Verified file creation using
4. Playwright MCP Testing ✅Navigated to https://github.com and verified:
Overall Smoke Test Status: PASSED ✅All four test categories completed successfully for Claude Sonnet 4.5 engine.
|
|
Smoke test results for the Codex engine:
Overall: ✅ All Codex smoke-test checks succeeded.
|
|
Agentic Smoke Claude triggered by this pull request. |
|
Agentic Smoke Codex triggered by this pull request. |
|
❌ Agentic Smoke Copilot failed and wasn't able to produce a result. |
|
✅ Agentic Changeset Generator completed successfully. |
Claude Engine Smoke Test ResultsTest SummaryAll smoke tests passed successfully for the Claude engine (Sonnet 4.5). Detailed Results✅ 1. GitHub MCP TestingStatus: PASSED Successfully reviewed the last 2 merged pull requests:
✅ 2. File Writing TestingStatus: PASSED Successfully created test file at ✅ 3. Bash Tool TestingStatus: PASSED Successfully verified file creation using $ cat /tmp/smoke-test-claude-sonnet-4-5.txt
Smoke test passed for Claude at Wed Nov 26 23:16:41 UTC 2025✅ 4. Playwright MCP TestingStatus: PASSED Successfully navigated to https://github.com and verified page title:
Overall Status🎉 All tests PASSED - Claude engine is functioning correctly!
|
|
Codex smoke test results:
All checks passed — Codex engine smoke test SUCCESS ✅
|
Switches Playwright MCP server configuration from running via
npxdirectly to using the official Microsoft Playwright MCP Docker image (mcr.microsoft.com/playwright/mcp) for consistent browser environment.Changes
mcp-config.go: UpdatedrenderPlaywrightMCPConfigWithOptionsandrenderPlaywrightMCPConfigTOMLto use Dockermcp_renderer.go: UpdatedrenderPlaywrightTOMLto use Dockerdocker.go: Added Playwright image tocollectDockerImagesfor predownloadingGenerated Configuration
Before:
{ "playwright": { "command": "npx", "args": ["@playwright/mcp@0.0.48", "--output-dir", "/tmp/gh-aw/mcp-logs/playwright"] } }After:
{ "playwright": { "command": "docker", "args": ["run", "-i", "--rm", "--init", "mcr.microsoft.com/playwright/mcp", "--output-dir", "/tmp/gh-aw/mcp-logs/playwright", "--allowed-hosts", "localhost;localhost:*;127.0.0.1;127.0.0.1:*"] } }Implementation Details
mcr.microsoft.com/playwright/mcp) as there is only one image available--initargument for proper signal handling--output-dirflag for MCP logs--pull=alwaysflag (image is predownloaded viadocker pullstep)Uses the official Playwright MCP Docker image as documented in the Playwright MCP repository.
Note
The Docker implementation only supports headless Chromium at the moment.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.