ReleaseMicrosoftMicrosoftpublished Sep 25, 2025seen Jun 26

microsoft/playwright-mcp v0.0.40

microsoft/playwright-mcp

Open original ↗

Captured source

source ↗
published Sep 25, 2025seen Jun 26captured 2whttp 200method plain

v0.0.40

Repository: microsoft/playwright-mcp

Tag: v0.0.40

Published: 2025-09-25T00:10:02Z

Prerelease: no

Release notes:

Features

  • https://github.com/microsoft/playwright/commit/c813e9cf5 feat(mcp): allow saving videos for sessions https://github.com/microsoft/playwright/issues/37531
# video is saved from the creation of the page to the closure of the context (browser_close call).
npx @playwright/mcp --save-video=800x600
  • https://github.com/microsoft/playwright/commit/fff065816 feat(mcp): add --init-script option https://github.com/microsoft/playwright/issues/37507
# the code in web-mocks.js will run on page initialization
npx @playwright/mcp --init-script=./web-mocks.js
  • https://github.com/microsoft/playwright/commit/1313fbd47 chore(mcp): introduce allowed-hosts https://github.com/microsoft/playwright/issues/37541
# Runs MCP server only accessible on 192.168.1.10, defense from DNS rebind
npx @playwright/mcp --allowed-hosts=192.168.1.10:8080 --port=8080

Bugfixes

  • https://github.com/microsoft/playwright/commit/da333232e fix(mcp): snapshot for ai fixes https://github.com/microsoft/playwright/issues/37527
  • https://github.com/microsoft/playwright/commit/499d084a5 fix(session): an extra check for session log https://github.com/microsoft/playwright/issues/37508
  • https://github.com/microsoft/playwright/commit/2f820cb20 fix(mcp): lax file path sanitization https://github.com/microsoft/playwright/issues/37502