AgentHubAgentHub

weapp-agent-mcp

MCP ServerMCP Registry官方收录

io.github.Chaixueyuan/weapp-agent-mcp · v0.4.7

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

概览

weapp-agent-mcp 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "weapp-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chaixueyuan/weapp-agent-mcp"
      ]
    }
  }
}

环境变量

WEAPP_WS_ENDPOINT可选

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.

WEAPP_AUTOMATOR_MODE可选

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

WEAPP_PROJECT_PATH可选

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.

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

WEAPP_DEVTOOLS_TIMEOUT可选

Milliseconds passed to miniprogram-automator when launching WeChat DevTools.

WEAPP_AUTO_ACCOUNT可选secret

Optional account passed to miniprogram-automator launch.

WEAPP_DEVTOOLS_TICKET可选secret

Optional DevTools launch ticket.

WEAPP_TRUST_PROJECT可选

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

WEAPP_DEVTOOLS_ARGS可选

Additional whitespace-separated CLI arguments passed during launch.

WEAPP_DEVTOOLS_CWD可选

Optional working directory passed to the DevTools launch process.

WEAPP_AUTOCLOSE可选

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

WEAPP_AUTOLAUNCH可选

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.

WEAPP_LAUNCH_TIMEOUT可选

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

WEAPP_CONNECT_TIMEOUT可选

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

相关资源

统一 Manifest

{
  "id": "io.github.Chaixueyuan/weapp-agent-mcp",
  "type": "mcp-server",
  "version": "0.4.7",
  "displayName": "weapp-agent-mcp",
  "description": "Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.",
  "repository": {
    "url": "https://github.com/Chaixueyuan/weapp-agent-mcp",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@chaixueyuan/weapp-agent-mcp",
        "version": "0.4.7",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "WEAPP_WS_ENDPOINT",
            "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."
          },
          {
            "name": "WEAPP_AUTOMATOR_MODE",
            "description": "Force 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set."
          },
          {
            "name": "WEAPP_PROJECT_PATH",
            "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."
          },
          {
            "name": "WECHAT_DEVTOOLS_CLI_PATH",
            "description": "Optional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS)."
          },
          {
            "name": "WEAPP_DEVTOOLS_PORT",
            "description": "Automation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420)."
          },
          {
            "name": "WEAPP_DEVTOOLS_TIMEOUT",
            "description": "Milliseconds passed to miniprogram-automator when launching WeChat DevTools."
          },
          {
            "name": "WEAPP_AUTO_ACCOUNT",
            "description": "Optional account passed to miniprogram-automator launch.",
            "isSecret": true
          },
          {
            "name": "WEAPP_DEVTOOLS_TICKET",
            "description": "Optional DevTools launch ticket.",
            "isSecret": true
          },
          {
            "name": "WEAPP_TRUST_PROJECT",
            "description": "Whether launch mode should trust the project. Accepts true/false, 1/0, yes/no, or on/off."
          },
          {
            "name": "WEAPP_DEVTOOLS_ARGS",
            "description": "Additional whitespace-separated CLI arguments passed during launch."
          },
          {
            "name": "WEAPP_DEVTOOLS_CWD",
            "description": "Optional working directory passed to the DevTools launch process."
          },
          {
            "name": "WEAPP_AUTOCLOSE",
            "description": "Whether to close or disconnect the automator session after each tool call. Accepts true/false, 1/0, yes/no, or on/off."
          },
          {
            "name": "WEAPP_AUTOLAUNCH",
            "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."
          },
          {
            "name": "WEAPP_LAUNCH_TIMEOUT",
            "description": "Milliseconds to wait for a locally auto-launched automation port (default 45000)."
          },
          {
            "name": "WEAPP_CONNECT_TIMEOUT",
            "description": "Milliseconds to wait for an automator websocket connection (default 45000)."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.Chaixueyuan/weapp-agent-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.Chaixueyuan%2Fweapp-agent-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
weapp-agent-mcp — MCP Server 安装与配置 · AgentHub