@playwright/mcp 0.0.40 → 0.0.41-alpha-2025-10-02

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.
Files changed (2) hide show
  1. package/README.md +16 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -183,7 +183,7 @@ Playwright MCP server supports following arguments. They can be provided in the
183
183
  --allowed-hosts <hosts...> comma-separated list of hosts this
184
184
  server is allowed to serve from.
185
185
  Defaults to the host the server is bound
186
- to.
186
+ to. Pass '*' to disable the host check.
187
187
  --allowed-origins <origins> semicolon-separated list of origins to
188
188
  allow the browser to request. Default is
189
189
  to allow all.
@@ -434,6 +434,19 @@ And then in MCP client config, set the `url` to the HTTP endpoint:
434
434
  }
435
435
  ```
436
436
 
437
+ Or If you prefer to run the container as a long-lived service instead of letting the MCP client spawn it, use:
438
+
439
+ ```
440
+ docker run -d -i --rm --init --pull=always \
441
+ --entrypoint node \
442
+ --name playwright \
443
+ -p 8931:8931 \
444
+ mcr.microsoft.com/playwright/mcp \
445
+ cli.js --headless --browser chromium --no-sandbox --port 8931
446
+ ```
447
+
448
+ The server will listen on host port **8931** and can be reached by any MCP client.
449
+
437
450
  You can build the Docker image yourself.
438
451
 
439
452
  ```
@@ -496,7 +509,8 @@ http.createServer(async (req, res) => {
496
509
  - **browser_console_messages**
497
510
  - Title: Get console messages
498
511
  - Description: Returns all console messages
499
- - Parameters: None
512
+ - Parameters:
513
+ - `onlyErrors` (boolean, optional): Only return error messages
500
514
  - Read-only: **true**
501
515
 
502
516
  <!-- NOTE: This has been generated via update-readme.js -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/mcp",
3
- "version": "0.0.40",
3
+ "version": "0.0.41-alpha-2025-10-02",
4
4
  "description": "Playwright Tools for MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "playwright": "1.56.0-alpha-1758750661000",
39
- "playwright-core": "1.56.0-alpha-1758750661000"
38
+ "playwright": "1.56.0-alpha-2025-10-01",
39
+ "playwright-core": "1.56.0-alpha-2025-10-01"
40
40
  },
41
41
  "bin": {
42
42
  "mcp-server-playwright": "cli.js"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@modelcontextprotocol/sdk": "^1.17.5",
46
- "@playwright/test": "1.56.0-alpha-1758750661000",
46
+ "@playwright/test": "1.56.0-alpha-2025-10-01",
47
47
  "@types/node": "^24.3.0",
48
48
  "zod-to-json-schema": "^3.24.6"
49
49
  }