lighthouse-mcp 0.1.16 → 0.1.17
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/README.md +4 -0
- package/build/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,3 +158,7 @@ Claude will use the `get_performance_score` tool to analyze the website and retu
|
|
|
158
158
|
Chrome runs with its sandbox enabled. Localhost, IPv4 loopback, and IPv6 loopback remain supported by default. Private, link-local, cloud metadata, and other non-public destinations are blocked, including requests made by redirects and page resources. Connections use validated IP addresses to prevent DNS rebinding. Because loopback access is intentional, audit only pages you trust to access services on your own machine. For hostile sites, use a separate environment with network isolation.
|
|
159
159
|
|
|
160
160
|
Audits are limited to one at a time and time out after 120 seconds. Chrome and the audit proxy are cleaned up after success or failure.
|
|
161
|
+
|
|
162
|
+
### Public-only audits
|
|
163
|
+
|
|
164
|
+
Set `AUDIT_ALLOW_LOOPBACK=false` to reject loopback destinations as well as private and metadata addresses. Hosted workers must use this setting and infrastructure egress isolation. Local development keeps loopback access by default.
|
package/build/index.js
CHANGED
|
@@ -26,7 +26,7 @@ class LighthouseServer {
|
|
|
26
26
|
this.auditRunning = false;
|
|
27
27
|
this.server = new Server({
|
|
28
28
|
name: 'lighthouse-mcp',
|
|
29
|
-
version: '0.1.
|
|
29
|
+
version: '0.1.17',
|
|
30
30
|
}, {
|
|
31
31
|
capabilities: {
|
|
32
32
|
tools: {},
|
|
@@ -122,7 +122,7 @@ class LighthouseServer {
|
|
|
122
122
|
let proxy;
|
|
123
123
|
let timer;
|
|
124
124
|
try {
|
|
125
|
-
const allowLoopback =
|
|
125
|
+
const allowLoopback = process.env.AUDIT_ALLOW_LOOPBACK !== 'false';
|
|
126
126
|
const url = parseUrl(args.url);
|
|
127
127
|
await resolveTarget(url.hostname, allowLoopback);
|
|
128
128
|
proxy = await createAuditProxy(allowLoopback);
|