@playwright/mcp 0.0.64 → 0.0.66-alpha-2026-02-08
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 +16 -0
- package/config.d.ts +22 -4
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -539,6 +539,13 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|
|
539
539
|
initScript?: string[];
|
|
540
540
|
},
|
|
541
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Connect to a running browser instance (Edge/Chrome only). If specified, `browser`
|
|
544
|
+
* config is ignored.
|
|
545
|
+
* Requires the "Playwright MCP Bridge" browser extension to be installed.
|
|
546
|
+
*/
|
|
547
|
+
extension?: boolean;
|
|
548
|
+
|
|
542
549
|
server?: {
|
|
543
550
|
/**
|
|
544
551
|
* The port to listen on for SSE or MCP transport.
|
|
@@ -562,6 +569,7 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|
|
562
569
|
* - 'core': Core browser automation features.
|
|
563
570
|
* - 'pdf': PDF generation and manipulation.
|
|
564
571
|
* - 'vision': Coordinate-based interactions.
|
|
572
|
+
* - 'devtools': Developer tools features.
|
|
565
573
|
*/
|
|
566
574
|
capabilities?: ToolCapability[];
|
|
567
575
|
|
|
@@ -615,11 +623,19 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|
|
615
623
|
network?: {
|
|
616
624
|
/**
|
|
617
625
|
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
|
626
|
+
*
|
|
627
|
+
* Supported formats:
|
|
628
|
+
* - Full origin: `https://example.com:8080` - matches only that origin
|
|
629
|
+
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
|
618
630
|
*/
|
|
619
631
|
allowedOrigins?: string[];
|
|
620
632
|
|
|
621
633
|
/**
|
|
622
634
|
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
|
635
|
+
*
|
|
636
|
+
* Supported formats:
|
|
637
|
+
* - Full origin: `https://example.com:8080` - matches only that origin
|
|
638
|
+
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
|
623
639
|
*/
|
|
624
640
|
blockedOrigins?: string[];
|
|
625
641
|
};
|
package/config.d.ts
CHANGED
|
@@ -17,16 +17,18 @@
|
|
|
17
17
|
import type * as playwright from 'playwright';
|
|
18
18
|
|
|
19
19
|
export type ToolCapability =
|
|
20
|
+
'config' |
|
|
20
21
|
'core' |
|
|
21
|
-
'core-input' |
|
|
22
22
|
'core-navigation' |
|
|
23
23
|
'core-tabs' |
|
|
24
|
-
'core-install' |
|
|
25
24
|
'core-input' |
|
|
26
|
-
'
|
|
25
|
+
'core-install' |
|
|
26
|
+
'network' |
|
|
27
27
|
'pdf' |
|
|
28
|
+
'storage' |
|
|
28
29
|
'testing' |
|
|
29
|
-
'
|
|
30
|
+
'vision' |
|
|
31
|
+
'devtools';
|
|
30
32
|
|
|
31
33
|
export type Config = {
|
|
32
34
|
/**
|
|
@@ -96,6 +98,13 @@ export type Config = {
|
|
|
96
98
|
initScript?: string[];
|
|
97
99
|
},
|
|
98
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Connect to a running browser instance (Edge/Chrome only). If specified, `browser`
|
|
103
|
+
* config is ignored.
|
|
104
|
+
* Requires the "Playwright MCP Bridge" browser extension to be installed.
|
|
105
|
+
*/
|
|
106
|
+
extension?: boolean;
|
|
107
|
+
|
|
99
108
|
server?: {
|
|
100
109
|
/**
|
|
101
110
|
* The port to listen on for SSE or MCP transport.
|
|
@@ -119,6 +128,7 @@ export type Config = {
|
|
|
119
128
|
* - 'core': Core browser automation features.
|
|
120
129
|
* - 'pdf': PDF generation and manipulation.
|
|
121
130
|
* - 'vision': Coordinate-based interactions.
|
|
131
|
+
* - 'devtools': Developer tools features.
|
|
122
132
|
*/
|
|
123
133
|
capabilities?: ToolCapability[];
|
|
124
134
|
|
|
@@ -172,11 +182,19 @@ export type Config = {
|
|
|
172
182
|
network?: {
|
|
173
183
|
/**
|
|
174
184
|
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
|
185
|
+
*
|
|
186
|
+
* Supported formats:
|
|
187
|
+
* - Full origin: `https://example.com:8080` - matches only that origin
|
|
188
|
+
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
|
175
189
|
*/
|
|
176
190
|
allowedOrigins?: string[];
|
|
177
191
|
|
|
178
192
|
/**
|
|
179
193
|
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
|
194
|
+
*
|
|
195
|
+
* Supported formats:
|
|
196
|
+
* - Full origin: `https://example.com:8080` - matches only that origin
|
|
197
|
+
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
|
180
198
|
*/
|
|
181
199
|
blockedOrigins?: string[];
|
|
182
200
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66-alpha-2026-02-08",
|
|
4
4
|
"description": "Playwright Tools for MCP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"wtest": "playwright test --project=webkit",
|
|
23
23
|
"dtest": "MCP_IN_DOCKER=1 playwright test --project=chromium-docker",
|
|
24
24
|
"build": "echo OK",
|
|
25
|
-
"npm-publish": "npm run lint && npm run test && npm publish"
|
|
26
|
-
"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 'playwright';|\" ./config.d.ts",
|
|
27
|
-
"roll": "npm run copy-config && npm run lint"
|
|
25
|
+
"npm-publish": "npm run lint && npm run test && npm publish"
|
|
28
26
|
},
|
|
29
27
|
"exports": {
|
|
30
28
|
"./package.json": "./package.json",
|
|
@@ -34,8 +32,8 @@
|
|
|
34
32
|
}
|
|
35
33
|
},
|
|
36
34
|
"dependencies": {
|
|
37
|
-
"playwright": "1.59.0-alpha-
|
|
38
|
-
"playwright-core": "1.59.0-alpha-
|
|
35
|
+
"playwright": "1.59.0-alpha-1770400094000",
|
|
36
|
+
"playwright-core": "1.59.0-alpha-1770400094000"
|
|
39
37
|
},
|
|
40
38
|
"bin": {
|
|
41
39
|
"playwright-mcp": "cli.js"
|