Skip to content

v0.9.5 — Health check heal & reliability hardening

Choose a tag to compare

@WaterTian WaterTian released this 17 Apr 08:39
· 34 commits to main since this release

Highlights

  • Compile health check heal — Fixed a dormant bug (v0.9.0–v0.9.4) where the post-compile check dispatched ui_debug page_stack, an action that never existed, so automator_verified was permanently false. Replaced with automation pageStack (camelCase). Callers can now trust the automator_verified field again.
  • Fatal error downgrade — compile now flips to success: false with a fatal_errors payload when stderr contains EACCES, EADDRINUSE, #initialize-error, permission denied, or listen failed, even if the CLI exits with code 0. Eliminates false-positive "compile succeeded" after port binding failures.
  • start dual-stage verification — TCP reachable → WS handshake via automation pageStack → one invalidate + retry on first failure. Response now includes tcp_ready, ws_ready, verify_attempts, retry_after_ms.
  • preview path hardening — Relative qr_output / info_output paths auto-resolved to absolute; parent directories auto-created; pre/post mtime compared and qr_stale_warning emitted when the QR code did not refresh.
  • build npm freshness warning — Emits npm_warning when miniprogram/node_modules is missing or newer than miniprogram_npm (stale build artifacts).
  • inspector duration warning — For log_type=exception|all with duration < 6s, emits duration_warning pointing to listener registration timing (not duration) as the root cause.

Breaking

  • wechat_cloud disabled — Tool is no longer registered. Source is retained but not exposed. Use the CloudBase MCP for cloud functions. Tool count: 8 → 7.

Install

```bash
pip install wechat-devtools-mcp==0.9.5
```

PyPI: https://pypi.org/project/wechat-devtools-mcp/0.9.5/