Skip to content
Grok

weapp agent mcp for Grok

io.github.chaixueyuan/weapp-agent-mcp

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

client:Grok transport:stdio runtime:npm

Install weapp agent mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "weapp-agent-mcp": {
      "type": "stdio",
      "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>",
        "WEAPP_DEVTOOLS_TIMEOUT": "<WEAPP_DEVTOOLS_TIMEOUT>",
        "WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
        "WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>",
        "WEAPP_TRUST_PROJECT": "<WEAPP_TRUST_PROJECT>",
        "WEAPP_DEVTOOLS_ARGS": "<WEAPP_DEVTOOLS_ARGS>",
        "WEAPP_DEVTOOLS_CWD": "<WEAPP_DEVTOOLS_CWD>",
        "WEAPP_AUTOCLOSE": "<WEAPP_AUTOCLOSE>",
        "WEAPP_AUTOLAUNCH": "<WEAPP_AUTOLAUNCH>",
        "WEAPP_LAUNCH_TIMEOUT": "<WEAPP_LAUNCH_TIMEOUT>",
        "WEAPP_CONNECT_TIMEOUT": "<WEAPP_CONNECT_TIMEOUT>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

weapp agent mcp in other clients