Back to Browse

Weapp Agent MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

network_websocket

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Automation 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.Optional

Environment variable: WEAPP_WS_ENDPOINT

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

Environment variable: WEAPP_AUTOMATOR_MODE

Optional 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.Optional

Environment variable: WEAPP_PROJECT_PATH

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

Environment variable: WECHAT_DEVTOOLS_CLI_PATH

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

Environment variable: WEAPP_DEVTOOLS_PORT

Milliseconds passed to miniprogram-automator when launching WeChat DevTools.Optional

Environment variable: WEAPP_DEVTOOLS_TIMEOUT

Optional account passed to miniprogram-automator launch.Required

Environment variable: WEAPP_AUTO_ACCOUNT

Optional DevTools launch ticket.Required

Environment variable: WEAPP_DEVTOOLS_TICKET

Whether launch mode should trust the project. Accepts true/false, 1/0, yes/no, or on/off.Optional

Environment variable: WEAPP_TRUST_PROJECT

Additional whitespace-separated CLI arguments passed during launch.Optional

Environment variable: WEAPP_DEVTOOLS_ARGS

Optional working directory passed to the DevTools launch process.Optional

Environment variable: WEAPP_DEVTOOLS_CWD

Whether to close or disconnect the automator session after each tool call. Accepts true/false, 1/0, yes/no, or on/off.Optional

Environment variable: WEAPP_AUTOCLOSE

Allow 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.Optional

Environment variable: WEAPP_AUTOLAUNCH

Milliseconds to wait for a locally auto-launched automation port (default 45000).Optional

Environment variable: WEAPP_LAUNCH_TIMEOUT

Milliseconds to wait for an automator websocket connection (default 45000).Optional

Environment variable: WEAPP_CONNECT_TIMEOUT

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-chaixueyuan-weapp-agent-mcp": {
      "env": {
        "WEAPP_AUTOCLOSE": "your-weapp-autoclose-here",
        "WEAPP_AUTOLAUNCH": "your-weapp-autolaunch-here",
        "WEAPP_WS_ENDPOINT": "your-weapp-ws-endpoint-here",
        "WEAPP_AUTO_ACCOUNT": "your-weapp-auto-account-here",
        "WEAPP_DEVTOOLS_CWD": "your-weapp-devtools-cwd-here",
        "WEAPP_PROJECT_PATH": "your-weapp-project-path-here",
        "WEAPP_DEVTOOLS_ARGS": "your-weapp-devtools-args-here",
        "WEAPP_DEVTOOLS_PORT": "your-weapp-devtools-port-here",
        "WEAPP_TRUST_PROJECT": "your-weapp-trust-project-here",
        "WEAPP_AUTOMATOR_MODE": "your-weapp-automator-mode-here",
        "WEAPP_LAUNCH_TIMEOUT": "your-weapp-launch-timeout-here",
        "WEAPP_CONNECT_TIMEOUT": "your-weapp-connect-timeout-here",
        "WEAPP_DEVTOOLS_TICKET": "your-weapp-devtools-ticket-here",
        "WEAPP_DEVTOOLS_TIMEOUT": "your-weapp-devtools-timeout-here",
        "WECHAT_DEVTOOLS_CLI_PATH": "your-wechat-devtools-cli-path-here"
      },
      "args": [
        "-y",
        "@chaixueyuan/weapp-agent-mcp"
      ],
      "command": "npx"
    }
  }
}

Reviews

No reviews yet

Be the first to review this server!