patchright-mcp 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -310,6 +310,14 @@ Patchright MCP server supports following arguments. They can be provided in the
310
310
  Important: *does not* serve as a
311
311
  security boundary and *does not* affect
312
312
  redirects.
313
+ --allow-unrestricted-file-access allow access to files outside of the
314
+ workspace roots. Also allows
315
+ unrestricted access to file:// URLs. By
316
+ default access to file system is
317
+ restricted to workspace root directories
318
+ (or cwd if no roots are configured)
319
+ only, and navigation to file:// URLs is
320
+ blocked.
313
321
  --blocked-origins <origins> semicolon-separated list of origins to
314
322
  block the browser from requesting.
315
323
  Blocklist is evaluated before allowlist.
@@ -667,6 +675,12 @@ npx patchright-mcp@latest --config path/to/config.json
667
675
  */
668
676
  mode?: 'incremental' | 'full' | 'none';
669
677
  }
678
+
679
+ /**
680
+ * Whether to allow file uploads from anywhere on the file system.
681
+ * By default (false), file uploads are restricted to paths within the MCP roots only.
682
+ */
683
+ allowUnrestrictedFileAccess?: boolean;
670
684
  }
671
685
  ```
672
686
 
package/cli.js CHANGED
@@ -15,6 +15,8 @@
15
15
  * limitations under the License.
16
16
  */
17
17
 
18
+ require('./playwright-extra-setup');
19
+
18
20
  const { program } = require('patchright-core/lib/utilsBundle');
19
21
  const { decorateCommand } = require('patchright/lib/mcp/program');
20
22
 
package/config.d.ts CHANGED
@@ -189,4 +189,10 @@ export type Config = {
189
189
  */
190
190
  mode?: 'incremental' | 'full' | 'none';
191
191
  }
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;
192
198
  };
package/index.js CHANGED
@@ -15,5 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
 
18
+ require('./playwright-extra-setup');
19
+
18
20
  const { createConnection } = require('patchright/lib/mcp/index');
19
21
  module.exports = { createConnection };
package/package.json CHANGED
@@ -1,49 +1,51 @@
1
1
  {
2
- "name": "patchright-mcp",
3
- "version": "0.0.54",
4
- "description": "Patchright Tools for MCP",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-mcp.git"
8
- },
9
- "homepage": "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-mcp",
10
- "engines": {
11
- "node": ">=18"
12
- },
13
- "author": {
14
- "name": "Microsoft Corporation"
15
- },
16
- "license": "Apache-2.0",
17
- "scripts": {
18
- "lint": "npm run update-readme",
19
- "update-readme": "node update-readme.js",
20
- "docker-build": "docker build --no-cache -t patchright-mcp-dev:latest .",
21
- "docker-rm": "docker rm patchright-mcp-dev",
22
- "docker-run": "docker run -it -p 8080:8080 --name patchright-mcp-dev patchright-mcp-dev:latest",
23
- "test": "patchright test",
24
- "ctest": "patchright test --project=chrome",
25
- "ftest": "patchright test --project=firefox",
26
- "wtest": "patchright test --project=webkit",
27
- "dtest": "MCP_IN_DOCKER=1 patchright test --project=chromium-docker",
28
- "npm-publish": "npm run clean && npm run test && npm publish",
29
- "copy-config": "cp ../playwright/packages/playwright/src/mcp/config.d.ts . && perl -pi -e \"s|import type \\* as playwright from 'playwright-core';|import type * as playwright from 'patchright';|\" ./config.d.ts",
30
- "roll": "npm run copy-config && npm run lint"
31
- },
32
- "exports": {
33
- "./package.json": "./package.json",
34
- ".": {
35
- "types": "./index.d.ts",
36
- "default": "./index.js"
37
- }
38
- },
39
- "dependencies": {
40
- "patchright": "1.57.0"
41
- },
42
- "bin": {
43
- "mcp-server-patchright": "cli.js"
44
- },
45
- "devDependencies": {
46
- "@modelcontextprotocol/sdk": "^1.24.0",
47
- "@types/node": "^24.3.0"
48
- }
2
+ "name": "patchright-mcp",
3
+ "version": "0.0.56",
4
+ "description": "Patchright Tools for MCP",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-mcp.git"
8
+ },
9
+ "homepage": "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-mcp",
10
+ "engines": {
11
+ "node": ">=18"
12
+ },
13
+ "author": {
14
+ "name": "Microsoft Corporation"
15
+ },
16
+ "license": "Apache-2.0",
17
+ "scripts": {
18
+ "lint": "npm run update-readme",
19
+ "update-readme": "node update-readme.js",
20
+ "docker-build": "docker build --no-cache -t patchright-mcp-dev:latest .",
21
+ "docker-rm": "docker rm patchright-mcp-dev",
22
+ "docker-run": "docker run -it -p 8080:8080 --name patchright-mcp-dev patchright-mcp-dev:latest",
23
+ "test": "patchright test",
24
+ "ctest": "patchright test --project=chrome",
25
+ "ftest": "patchright test --project=firefox",
26
+ "wtest": "patchright test --project=webkit",
27
+ "dtest": "MCP_IN_DOCKER=1 patchright test --project=chromium-docker",
28
+ "npm-publish": "npm run clean && npm run test && npm publish",
29
+ "copy-config": "cp ../playwright/packages/playwright/src/mcp/config.d.ts . && perl -pi -e \"s|import type \\* as playwright from 'playwright-core';|import type * as playwright from 'patchright';|\" ./config.d.ts",
30
+ "roll": "npm run copy-config && npm run lint"
31
+ },
32
+ "exports": {
33
+ "./package.json": "./package.json",
34
+ ".": {
35
+ "types": "./index.d.ts",
36
+ "default": "./index.js"
37
+ }
38
+ },
39
+ "dependencies": {
40
+ "patchright": "1.57.0",
41
+ "playwright-extra": "^4.3.6",
42
+ "puppeteer-extra-plugin-stealth": "^2.11.2"
43
+ },
44
+ "bin": {
45
+ "mcp-server-patchright": "cli.js"
46
+ },
47
+ "devDependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.24.0",
49
+ "@types/node": "^24.3.0"
50
+ }
49
51
  }