From d47197f41fb79a6db8d8f593e7548918c0872b47 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 7 Jan 2026 09:45:30 -0800 Subject: [PATCH] chore: roll 1.58.0-alpha-2026-01-07 (#1300) --- README.md | 14 ++++++++++++++ config.d.ts | 6 ++++++ package-lock.json | 28 ++++++++++++++-------------- package.json | 6 +++--- 4 files changed, 37 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 36a4ec2..78a727a 100644 --- a/README.md +++ b/README.md @@ -308,6 +308,14 @@ Playwright MCP server supports following arguments. They can be provided in the Important: *does not* serve as a security boundary and *does not* affect redirects. + --allow-unrestricted-file-access allow access to files outside of the + workspace roots. Also allows + unrestricted access to file:// URLs. By + default access to file system is + restricted to workspace root directories + (or cwd if no roots are configured) + only, and navigation to file:// URLs is + blocked. --blocked-origins semicolon-separated list of origins to block the browser from requesting. Blocklist is evaluated before allowlist. @@ -665,6 +673,12 @@ npx @playwright/mcp@latest --config path/to/config.json */ mode?: 'incremental' | 'full' | 'none'; } + + /** + * Whether to allow file uploads from anywhere on the file system. + * By default (false), file uploads are restricted to paths within the MCP roots only. + */ + allowUnrestrictedFileAccess?: boolean; } ``` diff --git a/config.d.ts b/config.d.ts index 29e7fbb..6af6e28 100644 --- a/config.d.ts +++ b/config.d.ts @@ -189,4 +189,10 @@ export type Config = { */ mode?: 'incremental' | 'full' | 'none'; } + + /** + * Whether to allow file uploads from anywhere on the file system. + * By default (false), file uploads are restricted to paths within the MCP roots only. + */ + allowUnrestrictedFileAccess?: boolean; }; diff --git a/package-lock.json b/package-lock.json index a5605a0..9f02b90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,15 +9,15 @@ "version": "0.0.54", "license": "Apache-2.0", "dependencies": { - "playwright": "1.58.0-alpha-2025-12-29", - "playwright-core": "1.58.0-alpha-2025-12-29" + "playwright": "1.58.0-alpha-2026-01-07", + "playwright-core": "1.58.0-alpha-2026-01-07" }, "bin": { "mcp-server-playwright": "cli.js" }, "devDependencies": { "@modelcontextprotocol/sdk": "^1.24.0", - "@playwright/test": "1.58.0-alpha-2025-12-29", + "@playwright/test": "1.58.0-alpha-2026-01-07", "@types/node": "^24.3.0" }, "engines": { @@ -63,13 +63,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.58.0-alpha-2025-12-29", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.58.0-alpha-2025-12-29.tgz", - "integrity": "sha512-Vi27K0RcCTyiFDnXRfSm2RXQRYcqobva63SkOdslgfSXL+9TA9umZfMNUPxgTzOgXhUu40OghvXeL8ZgBzJZmg==", + "version": "1.58.0-alpha-2026-01-07", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.58.0-alpha-2026-01-07.tgz", + "integrity": "sha512-57P04rQ8X+9UH3Wl8SDNwi0Rg7yw1jrlD3/BY44VgQn1auUdKzFonL5Nkf4hu3qsrxuSmU3yrI8pS+wMgSJFxA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.58.0-alpha-2025-12-29" + "playwright": "1.58.0-alpha-2026-01-07" }, "bin": { "playwright": "cli.js" @@ -884,12 +884,12 @@ } }, "node_modules/playwright": { - "version": "1.58.0-alpha-2025-12-29", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.58.0-alpha-2025-12-29.tgz", - "integrity": "sha512-syUV2eOFrAxG7LKAxI0KeLrwakifVD8Q/a+9uQZqEX7GxPhySHMnZ9wwq1YFco6tztDfWz9//vcCgN/e0wBb7A==", + "version": "1.58.0-alpha-2026-01-07", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.58.0-alpha-2026-01-07.tgz", + "integrity": "sha512-ToIdvA1wM46BFcVURbbX9HCPNbzY2ugrJe2MUv2h6phkrD+hDD+vxNFkOOo+LLj5sJkiqr+Nwccay21tJj1NGw==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.58.0-alpha-2025-12-29" + "playwright-core": "1.58.0-alpha-2026-01-07" }, "bin": { "playwright": "cli.js" @@ -902,9 +902,9 @@ } }, "node_modules/playwright-core": { - "version": "1.58.0-alpha-2025-12-29", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.0-alpha-2025-12-29.tgz", - "integrity": "sha512-nxeyVkzX5EXxOaQFTvS4N6fSzsod06A5CMLOBjsCMUGZkmJF6HO4OXkoSTw6ONsgAzIwqas5DdTDO6QXZbFm1A==", + "version": "1.58.0-alpha-2026-01-07", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.0-alpha-2026-01-07.tgz", + "integrity": "sha512-BV81BlzDg+WWhMut60z+1huVsSZF0O/6OXkwD16NXA6Mul49/yLHLJl4qHODAxAtdG/jxeXvJ87oFr3ERUCK0A==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" diff --git a/package.json b/package.json index d7b3cc2..ec9ae6a 100644 --- a/package.json +++ b/package.json @@ -37,15 +37,15 @@ } }, "dependencies": { - "playwright": "1.58.0-alpha-2025-12-29", - "playwright-core": "1.58.0-alpha-2025-12-29" + "playwright": "1.58.0-alpha-2026-01-07", + "playwright-core": "1.58.0-alpha-2026-01-07" }, "bin": { "mcp-server-playwright": "cli.js" }, "devDependencies": { "@modelcontextprotocol/sdk": "^1.24.0", - "@playwright/test": "1.58.0-alpha-2025-12-29", + "@playwright/test": "1.58.0-alpha-2026-01-07", "@types/node": "^24.3.0" } }