weapp-agent-mcp
Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.
Package Details
@chaixueyuan/weapp-agent-mcp
Environment Variables
Automation WebSocket endpoint of an already-running WeChat DevTools instance (e.g. ws://localhost:9420). Recommended for the 'connect' flow — open DevTools manually, enable automation in Settings → Security → Service Port, then point the server here.
Force 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set.
Path to the Mini Program project directory. Required when using 'launch' mode (the MCP server starts DevTools itself).
Optional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS).
Automation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420).