feat: add --no-isolated flag to enable persistent browser profile
Adds --no-isolated CLI flag to switch from the default incognito-like isolated mode to a persistent browser profile. This enables features that require non-incognito mode, particularly: - Push API (pushManager.subscribe()) for push notifications - Service worker persistence across sessions - Full browser state retention Usage: npx playwright-mcp --no-isolated PLAYWRIGHT_MCP_ISOLATED=false npx playwright-mcp The default behavior (--isolated) remains unchanged for backward compatibility.
This commit is contained in:
parent
d31265d6b0
commit
dccba24345
2 changed files with 6 additions and 2 deletions
|
|
@ -177,7 +177,10 @@ Playwright MCP server supports following arguments. They can be provided in the
|
|||
Use 0.0.0.0 to bind to all interfaces.
|
||||
--ignore-https-errors ignore https errors
|
||||
--isolated keep the browser profile in memory, do not
|
||||
save it to disk.
|
||||
save it to disk. This is the default.
|
||||
--no-isolated use a persistent browser profile. Enables
|
||||
features like Push API that require
|
||||
non-incognito mode.
|
||||
--image-responses <mode> whether to send image responses to the client.
|
||||
Can be "allow" or "omit", Defaults to "allow".
|
||||
--no-snapshots disable automatic page snapshots after
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue