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 +1 -1
- package/shared/server.d.ts +2 -2
- package/shared/server.js +4 -5
- package/shared/tools.js +1 -1
- package/shared/types.d.ts +2 -3
package/package.json
CHANGED
package/shared/server.d.ts
CHANGED
|
@@ -80,8 +80,8 @@ export interface CreateMCPServerOptions {
|
|
|
80
80
|
permissions?: BrowserPermission[];
|
|
81
81
|
/**
|
|
82
82
|
* Whether to ignore HTTPS errors (certificate validation failures).
|
|
83
|
-
*
|
|
84
|
-
*
|
|
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
|
|
76
|
-
//
|
|
77
|
-
|
|
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.
|
|
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 ??
|
|
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
|
-
*
|
|
45
|
-
*
|
|
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
|
}
|