rae-playwright-mcp 0.0.4 → 0.0.6

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 +8 -2
  2. package/cli.js +9 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -320,7 +320,7 @@ Playwright MCP server supports following arguments. They can be provided in the
320
320
 
321
321
  This fork includes additional features beyond the original Playwright MCP:
322
322
 
323
- - **`--run-id <id>`**: Specify a custom UUID for HAR file organization. HAR files are saved to `~/.reverse-api-engineer/runs/testing-playwright/{run-id}/network.har`. If not provided, a UUID is automatically generated.
323
+ - **`--run-id <id>`**: Specify a custom UUID for HAR file organization. HAR files are saved to `~/.reverse-api/runs/har/{run-id}/network.har`. If not provided, a UUID is automatically generated.
324
324
  - **Automatic HAR Recording**: All browser sessions automatically record network traffic in HAR format. The HAR file path is logged when the server starts.
325
325
  - **Default Tracing**: Tracing capabilities are enabled by default with source code capture (`sources: true`)
326
326
  - **Self-contained Package**: All MCP code is bundled in the package, no dependency on the Playwright monorepo
@@ -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.4",
4
- "description": "Playwright Tools for MCP",
3
+ "version": "0.0.6",
4
+ "description": "Rae Playwright MCP - Enhanced Playwright Tools for MCP",
5
5
  "mcpName": "com.microsoft/playwright-mcp",
6
6
  "repository": {
7
7
  "type": "git",