rae-playwright-mcp 0.0.2 → 0.0.3
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/cli.js +8 -0
- package/package.json +1 -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);
|