io.github.Chaixueyuan

weapp-agent-mcp

Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.

stdiocommunityapplication

Package Details

Transportstdio

Environment Variables

WEAPP_WS_ENDPOINT(str)

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.

WEAPP_AUTOMATOR_MODE(str)

Force 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set.

WEAPP_PROJECT_PATH(str)

Path to the Mini Program project directory. Required when using 'launch' mode (the MCP server starts DevTools itself).

WECHAT_DEVTOOLS_CLI_PATH(str)

Optional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS).

WEAPP_DEVTOOLS_PORT(str)

Automation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420).