Skip to content

v0.9.6 — macOS support

Choose a tag to compare

@WaterTian WaterTian released this 29 Apr 06:48
· 33 commits to main since this release

Highlights

  • macOS support — cdp_enabled=true IDE launch now works on macOS. Verified end-to-end on a Mac mini (Apple Silicon, macOS 15.5): 9222 CDP port reachable, 27 startup logs captured, daemon NDJSON pipe survives across platforms.
  • Cross-platform launch resolver — New _resolve_ide_executable_for_cdp() derives the IDE main binary and kill pattern from WECHAT_DEVTOOLS_CLI. Windows path unchanged; macOS resolves to wechatdevtools + package.nw (NW.js entry) and uses pkill -f for cleanup (since cli quit does not match directly-spawned instances).
  • Default CLI path is platform-aware — _default_cli_path() returns /Applications/wechatwebdevtools.app/Contents/MacOS/cli on darwin, the existing Windows path otherwise.
  • Node.js detection extended — node_bridge.py now probes Homebrew (/opt/homebrew/bin/node, /usr/local/bin/node) and nvm paths on macOS/Linux, addressing GUI-launched MCP processes whose PATH lacks Homebrew.
  • subprocess.CREATE_NO_WINDOW hardened — Replaced direct attribute access with getattr(subprocess, "CREATE_NO_WINDOW", 0) so tests that patch sys.platform no longer raise AttributeError on non-Windows hosts.

Tests

  • 8 new cross-platform unit tests in test_ide_cdp_launch.py (path resolution, kill pattern dispatch, project arg format).
  • Full suite: 174 passed on Windows and on macOS (Mac mini).

Docs

  • README / README_EN: path table now has dedicated Windows and macOS columns; new troubleshooting entry for Homebrew Node detection.

Install

```bash
uv tool install wechat-devtools-mcp --force
```

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