← Back to Plugins
MCP Server MCP

io.github.Chaixueyuan/weapp-agent-mcp

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y @chaixueyuan/weapp-agent-mcp@0.4.8

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@chaixueyuan/weapp-agent-mcp",
      "version": "0.4.8",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "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.",
          "format": "string",
          "name": "WEAPP_WS_ENDPOINT"
        },
        {
          "description": "Force 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set.",
          "format": "string",
          "name": "WEAPP_AUTOMATOR_MODE"
        },
        {
          "description": "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.",
          "format": "string",
          "name": "WEAPP_PROJECT_PATH"
        },
        {
          "description": "Optional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS).",
          "format": "string",
          "name": "WECHAT_DEVTOOLS_CLI_PATH"
        },
        {
          "description": "Automation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420).",
          "format": "string",
          "name": "WEAPP_DEVTOOLS_PORT"
        },
        {
          "description": "Milliseconds passed to miniprogram-automator when launching WeChat DevTools.",
          "format": "string",
          "name": "WEAPP_DEVTOOLS_TIMEOUT"
        },
        {
          "description": "Optional account passed to miniprogram-automator launch.",
          "format": "string",
          "isSecret": true,
          "name": "WEAPP_AUTO_ACCOUNT"
        },
        {
          "description": "Optional DevTools launch ticket.",
          "format": "string",
          "isSecret": true,
          "name": "WEAPP_DEVTOOLS_TICKET"
        },
        {
          "description": "Whether launch mode should trust the project. Accepts true/false, 1/0, yes/no, or on/off.",
          "format": "string",
          "name": "WEAPP_TRUST_PROJECT"
        },
        {
          "description": "Additional whitespace-separated CLI arguments passed during launch.",
          "format": "string",
          "name": "WEAPP_DEVTOOLS_ARGS"
        },
        {
          "description": "Optional working directory passed to the DevTools launch process.",
          "format": "string",
          "name": "WEAPP_DEVTOOLS_CWD"
        },
        {
          "description": "Whether to close or disconnect the automator session after each tool call. Accepts true/false, 1/0, yes/no, or on/off.",
          "format": "string",
          "name": "WEAPP_AUTOCLOSE"
        },
        {
          "description": "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.",
          "format": "string",
          "name": "WEAPP_AUTOLAUNCH"
        },
        {
          "description": "Milliseconds to wait for a locally auto-launched automation port (default 45000).",
          "format": "string",
          "name": "WEAPP_LAUNCH_TIMEOUT"
        },
        {
          "description": "Milliseconds to wait for an automator websocket connection (default 45000).",
          "format": "string",
          "name": "WEAPP_CONNECT_TIMEOUT"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...