Weapp Agent MCP
io.github.Chaixueyuan/weapp-agent-mcp
v0.4.8Updated Jul 1, 2026stdio · npm
Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add weapp-agent-mcp -- npx -y @chaixueyuan/[email protected]Configuration
15 settings.
WEAPP_AUTO_ACCOUNTEnv var· optional· secretOptional account passed to miniprogram-automator launch.WEAPP_DEVTOOLS_TICKETEnv var· optional· secretOptional DevTools launch ticket.WEAPP_WS_ENDPOINTEnv var· optionalAutomation WebSocket endpoint for the 'connect' flow (e.g. ws://localhost:9420). When a local endpoint is not listening and auto-launch is enabled, mp_ensureConnection may start DevTools if it can resolve a project.WEAPP_AUTOMATOR_MODEEnv var· optionalForce 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set.WEAPP_PROJECT_PATHEnv var· optionalOptional Mini Program project directory used by launch and local auto-launch flows. The server can also resolve a persisted default, a recent project, or the current working directory.WECHAT_DEVTOOLS_CLI_PATHEnv var· optionalOptional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS).
Show 9 moreShow fewer
WEAPP_DEVTOOLS_PORTEnv var· optionalAutomation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420).WEAPP_DEVTOOLS_TIMEOUTEnv var· optionalMilliseconds passed to miniprogram-automator when launching WeChat DevTools.WEAPP_TRUST_PROJECTEnv var· optionalWhether launch mode should trust the project. Accepts true/false, 1/0, yes/no, or on/off.WEAPP_DEVTOOLS_ARGSEnv var· optionalAdditional whitespace-separated CLI arguments passed during launch.WEAPP_DEVTOOLS_CWDEnv var· optionalOptional working directory passed to the DevTools launch process.WEAPP_AUTOCLOSEEnv var· optionalWhether to close or disconnect the automator session after each tool call. Accepts true/false, 1/0, yes/no, or on/off.WEAPP_AUTOLAUNCHEnv var· optionalAllow mp_ensureConnection to launch local WeChat DevTools with cli auto when the configured local automation port is not listening. Defaults to enabled; set false to disable.WEAPP_LAUNCH_TIMEOUTEnv var· optionalMilliseconds to wait for a locally auto-launched automation port (default 45000).WEAPP_CONNECT_TIMEOUTEnv var· optionalMilliseconds to wait for an automator websocket connection (default 45000).
Links
Listed in the official MCP Registry since Jul 1, 2026. Mirrored daily; last checked Nov 26, 2026.