mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-03-16 22:33:10 +00:00
chore: roll 1.59.0-alpha-1770400094000 (#1375)
This commit is contained in:
16
README.md
16
README.md
@@ -539,6 +539,13 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|||||||
initScript?: string[];
|
initScript?: string[];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connect to a running browser instance (Edge/Chrome only). If specified, `browser`
|
||||||
|
* config is ignored.
|
||||||
|
* Requires the "Playwright MCP Bridge" browser extension to be installed.
|
||||||
|
*/
|
||||||
|
extension?: boolean;
|
||||||
|
|
||||||
server?: {
|
server?: {
|
||||||
/**
|
/**
|
||||||
* The port to listen on for SSE or MCP transport.
|
* The port to listen on for SSE or MCP transport.
|
||||||
@@ -562,6 +569,7 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|||||||
* - 'core': Core browser automation features.
|
* - 'core': Core browser automation features.
|
||||||
* - 'pdf': PDF generation and manipulation.
|
* - 'pdf': PDF generation and manipulation.
|
||||||
* - 'vision': Coordinate-based interactions.
|
* - 'vision': Coordinate-based interactions.
|
||||||
|
* - 'devtools': Developer tools features.
|
||||||
*/
|
*/
|
||||||
capabilities?: ToolCapability[];
|
capabilities?: ToolCapability[];
|
||||||
|
|
||||||
@@ -615,11 +623,19 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|||||||
network?: {
|
network?: {
|
||||||
/**
|
/**
|
||||||
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
||||||
|
*
|
||||||
|
* Supported formats:
|
||||||
|
* - Full origin: `https://example.com:8080` - matches only that origin
|
||||||
|
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
||||||
*/
|
*/
|
||||||
allowedOrigins?: string[];
|
allowedOrigins?: string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
||||||
|
*
|
||||||
|
* Supported formats:
|
||||||
|
* - Full origin: `https://example.com:8080` - matches only that origin
|
||||||
|
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
||||||
*/
|
*/
|
||||||
blockedOrigins?: string[];
|
blockedOrigins?: string[];
|
||||||
};
|
};
|
||||||
|
|||||||
32
package-lock.json
generated
32
package-lock.json
generated
@@ -13,7 +13,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.25.2",
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
||||||
"@playwright/test": "1.59.0-alpha-1770338664000",
|
"@playwright/test": "1.59.0-alpha-1770400094000",
|
||||||
"@types/node": "^24.3.0"
|
"@types/node": "^24.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -806,13 +806,13 @@
|
|||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@playwright/test": {
|
"node_modules/@playwright/test": {
|
||||||
"version": "1.59.0-alpha-1770338664000",
|
"version": "1.59.0-alpha-1770400094000",
|
||||||
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.59.0-alpha-1770338664000.tgz",
|
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.59.0-alpha-1770400094000.tgz",
|
||||||
"integrity": "sha512-GRgwREMJ36Ici5lV/16ZHMd+HEh4XuT4jSHPlvOyNBcefPi8JsBFI/kMl7BChjOpitrDOxhZJAgdHvQkPeQu0w==",
|
"integrity": "sha512-P0Jv0WouOb4dOhi6hrl6qa/3hszJp/RliFE1PzCd+Gw0k+aPiEFBzh8qVmur3P32kszv+pG9UPsivcsMcTpHNg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright": "1.59.0-alpha-1770338664000"
|
"playwright": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@@ -2562,12 +2562,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/playwright": {
|
"node_modules/playwright": {
|
||||||
"version": "1.59.0-alpha-1770338664000",
|
"version": "1.59.0-alpha-1770400094000",
|
||||||
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-1770338664000.tgz",
|
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-1770400094000.tgz",
|
||||||
"integrity": "sha512-YKR5ko/eQFtcvlZPTJN3BmVFRrIxuzKw8sqZgP9XY+JvQEDlAsGDNsBd7/TxWLZYzCC8HHETB7cW6Ru2DEkTWA==",
|
"integrity": "sha512-49P817plxhSzZfn3lvB6G92KGgj7jb7cO39sqDQhqlI9mTJWM+slZrfokw1vL1H4ZZkYMoedRE14rUcn8cNl9g==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "1.59.0-alpha-1770338664000"
|
"playwright-core": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@@ -2584,9 +2584,9 @@
|
|||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/playwright-core": {
|
"node_modules/playwright-core": {
|
||||||
"version": "1.59.0-alpha-1770338664000",
|
"version": "1.59.0-alpha-1770400094000",
|
||||||
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-1770338664000.tgz",
|
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-1770400094000.tgz",
|
||||||
"integrity": "sha512-Qlaafyf5T1GN/ynNJVVdJyD26HjzqvgRC62jNdfaFoMkTvqSlV4of9O6BV7c1x5ZJpplKXHecAPWKSWNdea7Dw==",
|
"integrity": "sha512-hfQOLT2s7cKLvOx8BT4IB9CFAFAxsxKuZokmyESf6vWQesQ+lbeNCo8ogGJYYszTK1ojm9pNKNBM961QNqZ4+w==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright-core": "cli.js"
|
"playwright-core": "cli.js"
|
||||||
@@ -3329,8 +3329,8 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"playwright": "1.59.0-alpha-1770338664000",
|
"playwright": "1.59.0-alpha-1770400094000",
|
||||||
"playwright-core": "1.59.0-alpha-1770338664000"
|
"playwright-core": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright-cli": "playwright-cli.js"
|
"playwright-cli": "playwright-cli.js"
|
||||||
@@ -3353,8 +3353,8 @@
|
|||||||
"version": "0.0.64",
|
"version": "0.0.64",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright": "1.59.0-alpha-1770338664000",
|
"playwright": "1.59.0-alpha-1770400094000",
|
||||||
"playwright-core": "1.59.0-alpha-1770338664000"
|
"playwright-core": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright-mcp": "cli.js"
|
"playwright-mcp": "cli.js"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.25.2",
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
||||||
"@playwright/test": "1.59.0-alpha-1770338664000",
|
"@playwright/test": "1.59.0-alpha-1770400094000",
|
||||||
"@types/node": "^24.3.0"
|
"@types/node": "^24.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"playwright": "1.59.0-alpha-1770338664000",
|
"playwright": "1.59.0-alpha-1770400094000",
|
||||||
"playwright-core": "1.59.0-alpha-1770338664000"
|
"playwright-core": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright-cli": "playwright-cli.js"
|
"playwright-cli": "playwright-cli.js"
|
||||||
|
|||||||
26
packages/playwright-mcp/config.d.ts
vendored
26
packages/playwright-mcp/config.d.ts
vendored
@@ -17,16 +17,18 @@
|
|||||||
import type * as playwright from 'playwright';
|
import type * as playwright from 'playwright';
|
||||||
|
|
||||||
export type ToolCapability =
|
export type ToolCapability =
|
||||||
|
'config' |
|
||||||
'core' |
|
'core' |
|
||||||
'core-input' |
|
|
||||||
'core-navigation' |
|
'core-navigation' |
|
||||||
'core-tabs' |
|
'core-tabs' |
|
||||||
'core-install' |
|
|
||||||
'core-input' |
|
'core-input' |
|
||||||
'vision' |
|
'core-install' |
|
||||||
|
'network' |
|
||||||
'pdf' |
|
'pdf' |
|
||||||
|
'storage' |
|
||||||
'testing' |
|
'testing' |
|
||||||
'tracing';
|
'vision' |
|
||||||
|
'devtools';
|
||||||
|
|
||||||
export type Config = {
|
export type Config = {
|
||||||
/**
|
/**
|
||||||
@@ -96,6 +98,13 @@ export type Config = {
|
|||||||
initScript?: string[];
|
initScript?: string[];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connect to a running browser instance (Edge/Chrome only). If specified, `browser`
|
||||||
|
* config is ignored.
|
||||||
|
* Requires the "Playwright MCP Bridge" browser extension to be installed.
|
||||||
|
*/
|
||||||
|
extension?: boolean;
|
||||||
|
|
||||||
server?: {
|
server?: {
|
||||||
/**
|
/**
|
||||||
* The port to listen on for SSE or MCP transport.
|
* The port to listen on for SSE or MCP transport.
|
||||||
@@ -119,6 +128,7 @@ export type Config = {
|
|||||||
* - 'core': Core browser automation features.
|
* - 'core': Core browser automation features.
|
||||||
* - 'pdf': PDF generation and manipulation.
|
* - 'pdf': PDF generation and manipulation.
|
||||||
* - 'vision': Coordinate-based interactions.
|
* - 'vision': Coordinate-based interactions.
|
||||||
|
* - 'devtools': Developer tools features.
|
||||||
*/
|
*/
|
||||||
capabilities?: ToolCapability[];
|
capabilities?: ToolCapability[];
|
||||||
|
|
||||||
@@ -172,11 +182,19 @@ export type Config = {
|
|||||||
network?: {
|
network?: {
|
||||||
/**
|
/**
|
||||||
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
||||||
|
*
|
||||||
|
* Supported formats:
|
||||||
|
* - Full origin: `https://example.com:8080` - matches only that origin
|
||||||
|
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
||||||
*/
|
*/
|
||||||
allowedOrigins?: string[];
|
allowedOrigins?: string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
|
||||||
|
*
|
||||||
|
* Supported formats:
|
||||||
|
* - Full origin: `https://example.com:8080` - matches only that origin
|
||||||
|
* - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
|
||||||
*/
|
*/
|
||||||
blockedOrigins?: string[];
|
blockedOrigins?: string[];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright": "1.59.0-alpha-1770338664000",
|
"playwright": "1.59.0-alpha-1770400094000",
|
||||||
"playwright-core": "1.59.0-alpha-1770338664000"
|
"playwright-core": "1.59.0-alpha-1770400094000"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright-mcp": "cli.js"
|
"playwright-mcp": "cli.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user