← Index

io.github.Chaixueyuan/weapp-agent-mcp

io.github.Chaixueyuan/weapp-agent-mcp·v0.4.5·Other
Quality Score
80
/100

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

§00  Trust verdict · v1 advisory ·  method
UNVERIFIEDno verdict on file

Verdict not yet evaluated for this tool. The hybrid eval runs adversarial cases first; coverage rolls out as the corpus expands. Until a verdict is recorded, an agent should treat this tool as not-yet-cleared and fall back to its own checks. Method: hybrid eval, four-state verdict, honest limits.

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "weapp-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chaixueyuan/weapp-agent-mcp"
      ],
      "env": {
        "WEAPP_WS_ENDPOINT": "<weapp_ws_endpoint>",
        "WEAPP_AUTOMATOR_MODE": "<weapp_automator_mode>",
        "WEAPP_PROJECT_PATH": "<weapp_project_path>",
        "WECHAT_DEVTOOLS_CLI_PATH": "<wechat_devtools_cli_path>",
        "WEAPP_DEVTOOLS_PORT": "<weapp_devtools_port>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "weapp-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chaixueyuan/weapp-agent-mcp"
      ],
      "env": {
        "WEAPP_WS_ENDPOINT": "<weapp_ws_endpoint>",
        "WEAPP_AUTOMATOR_MODE": "<weapp_automator_mode>",
        "WEAPP_PROJECT_PATH": "<weapp_project_path>",
        "WECHAT_DEVTOOLS_CLI_PATH": "<wechat_devtools_cli_path>",
        "WEAPP_DEVTOOLS_PORT": "<weapp_devtools_port>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @chaixueyuan/weapp-agent-mcp
§02  Environment variables
WEAPP_WS_ENDPOINT

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

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

WEAPP_PROJECT_PATH

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

WECHAT_DEVTOOLS_CLI_PATH

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

WEAPP_DEVTOOLS_PORT

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

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
5
§04  Alternatives in Other