rae-playwright-mcp 0.0.2 → 0.0.4

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/cli.js +8 -0
  2. package/package.json +2 -1
package/cli.js CHANGED
@@ -25,4 +25,12 @@ const p = program.version('Version ' + packageJSON.version).name('Playwright MCP
25
25
  const command = p.command('run-mcp-server', { hidden: true });
26
26
  decorateCommand(command, packageJSON.version);
27
27
 
28
+ // If no subcommand provided, default to run-mcp-server
29
+ // This allows the bin entry to work: npx rae-playwright-mcp
30
+ const args = process.argv.slice(2);
31
+ const hasSubcommand = args.some(arg => !arg.startsWith('-') && arg !== 'help');
32
+ if (!hasSubcommand) {
33
+ process.argv.push('run-mcp-server');
34
+ }
35
+
28
36
  void p.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rae-playwright-mcp",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Playwright Tools for MCP",
5
5
  "mcpName": "com.microsoft/playwright-mcp",
6
6
  "repository": {
@@ -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": {