File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,6 +308,14 @@ Playwright MCP server supports following arguments. They can be provided in the
308308 Important: *does not* serve as a
309309 security boundary and *does not* affect
310310 redirects.
311+ --allow-unrestricted-file-access allow access to files outside of the
312+ workspace roots. Also allows
313+ unrestricted access to file:// URLs. By
314+ default access to file system is
315+ restricted to workspace root directories
316+ (or cwd if no roots are configured)
317+ only, and navigation to file:// URLs is
318+ blocked.
311319 --blocked-origins <origins> semicolon-separated list of origins to
312320 block the browser from requesting.
313321 Blocklist is evaluated before allowlist.
@@ -665,6 +673,12 @@ npx @playwright/mcp@latest --config path/to/config.json
665673 */
666674 mode?: ' incremental' | ' full' | ' none' ;
667675 }
676+
677+ /**
678+ * Whether to allow file uploads from anywhere on the file system.
679+ * By default (false), file uploads are restricted to paths within the MCP roots only.
680+ */
681+ allowUnrestrictedFileAccess ?: boolean ;
668682}
669683```
670684
Original file line number Diff line number Diff line change @@ -189,4 +189,10 @@ export type Config = {
189189 */
190190 mode ?: 'incremental' | 'full' | 'none' ;
191191 }
192+
193+ /**
194+ * Whether to allow file uploads from anywhere on the file system.
195+ * By default (false), file uploads are restricted to paths within the MCP roots only.
196+ */
197+ allowUnrestrictedFileAccess ?: boolean ;
192198} ;
Original file line number Diff line number Diff line change 3737 }
3838 },
3939 "dependencies" : {
40- "playwright" : " 1.58.0-alpha-2025-12-29 " ,
41- "playwright-core" : " 1.58.0-alpha-2025-12-29 "
40+ "playwright" : " 1.58.0-alpha-2026-01-07 " ,
41+ "playwright-core" : " 1.58.0-alpha-2026-01-07 "
4242 },
4343 "bin" : {
4444 "mcp-server-playwright" : " cli.js"
4545 },
4646 "devDependencies" : {
4747 "@modelcontextprotocol/sdk" : " ^1.24.0" ,
48- "@playwright/test" : " 1.58.0-alpha-2025-12-29 " ,
48+ "@playwright/test" : " 1.58.0-alpha-2026-01-07 " ,
4949 "@types/node" : " ^24.3.0"
5050 }
5151}
You can’t perform that action at this time.
0 commit comments