@debugg-ai/debugg-ai-mcp 2.1.1 → 2.1.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed — ngrok now dials IPv4 loopback explicitly (fixes ERR_NGROK_8012 on macOS Next.js)
11
+
12
+ - `ngrok.connect({addr})` now passes `127.0.0.1:<port>` instead of the bare port number for plain-http localhost URLs. Bare port / `localhost` could resolve to IPv6 `[::1]` first on modern macOS, but Next.js / Vite / most Node dev servers bind to `127.0.0.1` only. Result was a successful tunnel that dialed `[::1]:<port>` and got `connection refused`, surfacing to users as `ERR_NGROK_8012` inside the browser agent trace. Bead `fhg`. Evidenced by real incident log 2026-04-24T19:37Z.
13
+ - Docker (`DOCKER_CONTAINER=true`) and https-localhost paths unchanged.
14
+
10
15
  ### Fixed — concurrent callers joining a pending tunnel revoke their redundant key
11
16
 
12
17
  - When caller B's request for a localhost URL arrives while caller A's tunnel for the same port is still provisioning, B used to silently join A's promise and throw away B's own minted ngrok key (and its `revokeKey` callback) — an orphan-key-on-backend leak. B now revokes its redundant key immediately on join. Bead `7qh` finding 2.
@@ -273,12 +273,17 @@ class TunnelManager {
273
273
  const isHttpsLocal = originalUrl.startsWith('https:');
274
274
  const inDocker = process.env.DOCKER_CONTAINER === 'true';
275
275
  const dockerHost = 'host.docker.internal';
276
+ // Bead fhg: force IPv4 loopback when running against localhost. ngrok's
277
+ // default resolution of a bare port or "localhost" can pick IPv6 [::1]
278
+ // first on macOS/modern OSes, but most dev servers (Next.js, Vite) bind
279
+ // only to 127.0.0.1 — resulting in ngrok connect:refused + ERR_NGROK_8012
280
+ // on the browser side with no actionable error back to the MCP caller.
276
281
  let localAddr;
277
282
  if (isHttpsLocal) {
278
283
  localAddr = inDocker ? `https://${dockerHost}:${port}` : `https://localhost:${port}`;
279
284
  }
280
285
  else {
281
- localAddr = inDocker ? `${dockerHost}:${port}` : port;
286
+ localAddr = inDocker ? `${dockerHost}:${port}` : `127.0.0.1:${port}`;
282
287
  }
283
288
  // Bead ixh: 3-attempt retry for ngrok.connect transient failures. Previously
284
289
  // only retried ONCE (with agent reset), which is insufficient against real
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@debugg-ai/debugg-ai-mcp",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Zero-Config, Fully AI-Managed End-to-End Testing for all code gen platforms.",
5
5
  "type": "module",
6
6
  "bin": {