playwright-stealth-mcp-server 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-stealth-mcp-server",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Local implementation of Playwright Stealth MCP server",
5
5
  "mcpName": "com.pulsemcp.servers/playwright-stealth",
6
6
  "main": "build/index.js",
@@ -80,8 +80,8 @@ export interface CreateMCPServerOptions {
80
80
  permissions?: BrowserPermission[];
81
81
  /**
82
82
  * Whether to ignore HTTPS errors (certificate validation failures).
83
- * Useful in Docker environments where SSL certificates may not match hostnames.
84
- * When undefined, HTTPS errors are only ignored if proxy is configured.
83
+ * Defaults to true for convenience (Docker, staging environments, self-signed certs).
84
+ * Set to false for strict certificate validation in production environments.
85
85
  */
86
86
  ignoreHttpsErrors?: boolean;
87
87
  }
package/shared/server.js CHANGED
@@ -72,10 +72,9 @@ export class PlaywrightClient {
72
72
  // In stealth mode, let the plugin's user-agent-override handle the user agent
73
73
  // In non-stealth mode, use the provided user agent if any
74
74
  userAgent: this.config.stealthMode ? undefined : this.config.stealthUserAgent,
75
- // Ignore HTTPS errors when:
76
- // 1. Explicitly enabled via IGNORE_HTTPS_ERRORS env var, OR
77
- // 2. Using proxy (required for residential proxies that perform HTTPS inspection)
78
- ignoreHTTPSErrors: this.config.ignoreHttpsErrors ?? !!this.config.proxy,
75
+ // Ignore HTTPS errors by default (convenient for Docker, staging environments, self-signed certs)
76
+ // Set IGNORE_HTTPS_ERRORS=false for strict certificate validation in production
77
+ ignoreHTTPSErrors: this.config.ignoreHttpsErrors ?? true,
79
78
  });
80
79
  // Grant browser permissions (defaults to all permissions if not specified)
81
80
  const permissionsToGrant = this.config.permissions ?? [...ALL_BROWSER_PERMISSIONS];
@@ -212,7 +211,7 @@ export function createMCPServer(options) {
212
211
  const stealthMode = process.env.STEALTH_MODE === 'true';
213
212
  const server = new Server({
214
213
  name: 'playwright-stealth-mcp-server',
215
- version: '0.0.8',
214
+ version: '0.0.9',
216
215
  }, {
217
216
  capabilities: {
218
217
  tools: {},
package/shared/tools.js CHANGED
@@ -274,7 +274,7 @@ export function createRegisterTools(clientFactory) {
274
274
  stealthMode: config.stealthMode,
275
275
  headless: config.headless,
276
276
  proxyEnabled: !!config.proxy,
277
- ignoreHttpsErrors: config.ignoreHttpsErrors ?? !!config.proxy,
277
+ ignoreHttpsErrors: config.ignoreHttpsErrors ?? true,
278
278
  }, null, 2),
279
279
  },
280
280
  ],
package/shared/types.d.ts CHANGED
@@ -41,9 +41,8 @@ export interface PlaywrightConfig {
41
41
  permissions?: BrowserPermission[];
42
42
  /**
43
43
  * Whether to ignore HTTPS errors (certificate validation failures).
44
- * Useful in Docker environments where SSL certificates may not match hostnames.
45
- * Automatically enabled when proxy is configured.
46
- * Use IGNORE_HTTPS_ERRORS env var to enable explicitly.
44
+ * Defaults to true for convenience (Docker, staging environments, self-signed certs).
45
+ * Set to false for strict certificate validation in production environments.
47
46
  */
48
47
  ignoreHttpsErrors?: boolean;
49
48
  }