@playwright/mcp 0.0.77 → 0.0.78-alpha-2026-07-10
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 +33 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ This package provides MCP interface into Playwright. If you are using a **coding
|
|
|
18
18
|
|
|
19
19
|
### Requirements
|
|
20
20
|
- Node.js 18 or newer
|
|
21
|
-
- VS Code, Cursor, Windsurf, Claude Desktop, Goose, Junie or any other MCP client
|
|
21
|
+
- VS Code, Cursor, Windsurf, Claude Desktop, Goose, Grok, Junie or any other MCP client
|
|
22
22
|
|
|
23
23
|
<!--
|
|
24
24
|
// Generate using:
|
|
@@ -237,6 +237,27 @@ Follow the MCP install [guide](https://github.com/google-gemini/gemini-cli/blob/
|
|
|
237
237
|
Go to `Advanced settings` -> `Extensions` -> `Add custom extension`. Name to your liking, use type `STDIO`, and set the `command` to `npx @playwright/mcp`. Click "Add Extension".
|
|
238
238
|
</details>
|
|
239
239
|
|
|
240
|
+
<details>
|
|
241
|
+
<summary>Grok</summary>
|
|
242
|
+
|
|
243
|
+
Use the Grok CLI to add the Playwright MCP server:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
grok mcp add playwright -- npx @playwright/mcp@latest
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Alternatively, create or edit the configuration file `~/.grok/config.toml` and add:
|
|
250
|
+
|
|
251
|
+
```toml
|
|
252
|
+
[mcp_servers.playwright]
|
|
253
|
+
command = "npx"
|
|
254
|
+
args = ["@playwright/mcp@latest"]
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
For more information, see the [Grok MCP documentation](https://docs.x.ai/build/features/mcp-servers).
|
|
258
|
+
|
|
259
|
+
</details>
|
|
260
|
+
|
|
240
261
|
<details>
|
|
241
262
|
<summary>Junie</summary>
|
|
242
263
|
|
|
@@ -399,6 +420,7 @@ Playwright MCP server supports following arguments. They can be provided in the
|
|
|
399
420
|
| --config <path> | path to the configuration file.<br>*env* `PLAYWRIGHT_MCP_CONFIG` |
|
|
400
421
|
| --console-level <level> | level of console messages to return: "error", "warning", "info", "debug". Each level includes the messages of more severe levels.<br>*env* `PLAYWRIGHT_MCP_CONSOLE_LEVEL` |
|
|
401
422
|
| --device <device> | device to emulate, for example: "iPhone 15"<br>*env* `PLAYWRIGHT_MCP_DEVICE` |
|
|
423
|
+
| --mobile | emulate a generic mobile device (Pixel 10 for Chromium, iPhone 17 for WebKit). Mobile pages are usually lighter, which saves tokens. Cannot be combined with --device.<br>*env* `PLAYWRIGHT_MCP_MOBILE` |
|
|
402
424
|
| --executable-path <path> | path to the browser executable.<br>*env* `PLAYWRIGHT_MCP_EXECUTABLE_PATH` |
|
|
403
425
|
| --extension | Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright Extension" to be installed.<br>*env* `PLAYWRIGHT_MCP_EXTENSION` |
|
|
404
426
|
| --endpoint <endpoint> | Bound browser endpoint to connect to.<br>*env* `PLAYWRIGHT_MCP_ENDPOINT` |
|
|
@@ -918,6 +940,16 @@ http.createServer(async (req, res) => {
|
|
|
918
940
|
|
|
919
941
|
<!-- NOTE: This has been generated via update-readme.js -->
|
|
920
942
|
|
|
943
|
+
- **browser_find**
|
|
944
|
+
- Title: Find in page snapshot
|
|
945
|
+
- Description: Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
|
|
946
|
+
- Parameters:
|
|
947
|
+
- `text` (string, optional): Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both.
|
|
948
|
+
- `regex` (string, optional): Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in slashes to add flags, e.g. "/error/i" for case-insensitive. Provide either text or regex, not both.
|
|
949
|
+
- Read-only: **true**
|
|
950
|
+
|
|
951
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
952
|
+
|
|
921
953
|
- **browser_handle_dialog**
|
|
922
954
|
- Title: Handle a dialog
|
|
923
955
|
- Description: Handle a dialog
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78-alpha-2026-07-10",
|
|
4
4
|
"description": "Playwright Tools for MCP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"playwright": "1.62.0-alpha-
|
|
41
|
-
"playwright-core": "1.62.0-alpha-
|
|
40
|
+
"playwright": "1.62.0-alpha-1783623505000",
|
|
41
|
+
"playwright-core": "1.62.0-alpha-1783623505000"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
45
|
-
"@playwright/test": "1.62.0-alpha-
|
|
45
|
+
"@playwright/test": "1.62.0-alpha-1783623505000",
|
|
46
46
|
"@types/node": "^24.3.0"
|
|
47
47
|
},
|
|
48
48
|
"bin": {
|