rae-playwright-mcp 0.0.3 → 0.0.5

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 (3) hide show
  1. package/README.md +7 -1
  2. package/cli.js +9 -2
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -339,7 +339,10 @@ For the original Playwright MCP, visit: [@playwright/mcp](https://www.npmjs.com/
339
339
  <!--- Options generated by update-readme.js -->
340
340
 
341
341
  ```
342
- > npx rae-playwright-mcp@latest --help
342
+ > npx @playwright/mcp@latest --help
343
+ Usage: Rae Playwright MCP run-mcp-server [options]
344
+
345
+ Options:
343
346
  --allowed-hosts <hosts...> comma-separated list of hosts this
344
347
  server is allowed to serve from.
345
348
  Defaults to the host the server is bound
@@ -442,6 +445,9 @@ For the original Playwright MCP, visit: [@playwright/mcp](https://www.npmjs.com/
442
445
  created.
443
446
  --viewport-size <size> specify browser viewport size in pixels,
444
447
  for example "1280x720"
448
+ --run-id <id> External UUID to use for HAR directory.
449
+ If not provided, a UUID will be
450
+ generated.
445
451
  ```
446
452
 
447
453
  <!--- End of options generated section -->
package/cli.js CHANGED
@@ -19,7 +19,7 @@ const { program } = require('playwright-core/lib/utilsBundle');
19
19
  const { decorateCommand } = require('./lib/mcp/program');
20
20
 
21
21
  const packageJSON = require('./package.json');
22
- const p = program.version('Version ' + packageJSON.version).name('Playwright MCP');
22
+ const p = program.version('Version ' + packageJSON.version).name('Rae Playwright MCP');
23
23
 
24
24
  // Create the run-mcp-server subcommand
25
25
  const command = p.command('run-mcp-server', { hidden: true });
@@ -29,8 +29,15 @@ decorateCommand(command, packageJSON.version);
29
29
  // This allows the bin entry to work: npx rae-playwright-mcp
30
30
  const args = process.argv.slice(2);
31
31
  const hasSubcommand = args.some(arg => !arg.startsWith('-') && arg !== 'help');
32
+ const hasHelp = args.includes('--help') || args.includes('-h');
33
+
32
34
  if (!hasSubcommand) {
33
- process.argv.push('run-mcp-server');
35
+ // If --help is passed without a subcommand, show help for run-mcp-server
36
+ if (hasHelp) {
37
+ process.argv.splice(2, 0, 'run-mcp-server');
38
+ } else {
39
+ process.argv.push('run-mcp-server');
40
+ }
34
41
  }
35
42
 
36
43
  void p.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rae-playwright-mcp",
3
- "version": "0.0.3",
4
- "description": "Playwright Tools for MCP",
3
+ "version": "0.0.5",
4
+ "description": "Rae Playwright MCP - Enhanced Playwright Tools for MCP",
5
5
  "mcpName": "com.microsoft/playwright-mcp",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,6 +43,7 @@
43
43
  "playwright-core": "1.58.0-alpha-2025-12-29"
44
44
  },
45
45
  "bin": {
46
+ "rae-playwright-mcp": "cli.js",
46
47
  "mcp-server-playwright": "cli.js"
47
48
  },
48
49
  "devDependencies": {