@cotestdev/mcp_playwright 0.0.31 → 0.0.32

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/lib/mcp/cli.js +3 -2
  2. package/package.json +1 -1
package/lib/mcp/cli.js CHANGED
@@ -14,11 +14,12 @@ try {
14
14
 
15
15
  // Check if the first argument looks like an option (starts with --)
16
16
  // If so, treat it as direct MCP server invocation
17
+ // If no arguments provided, default to MCP server
17
18
  const args = process.argv.slice(2);
18
19
  const firstArg = args[0];
19
- const isDirectOption = firstArg && (firstArg.startsWith('--') || firstArg === '-h' || firstArg === '--help');
20
+ const isDirectOption = !firstArg || firstArg.startsWith('--') || firstArg === '-h' || firstArg === '--help';
20
21
 
21
- // If direct option provided, add 'mcp-server' as the command
22
+ // If no arguments or direct option provided, add 'mcp-server' as the command
22
23
  if (isDirectOption) {
23
24
  process.argv.splice(2, 0, 'mcp-server');
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cotestdev/mcp_playwright",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Playwright MCP (Model Context Protocol) tools for browser automation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",