Skip to content
VS Code

wechat devtools for VS Code

io.github.watertian/wechat-devtools

MCP Server for WeChat DevTools CLI - Automate Mini Program development & testing.

client:VS Code transport:stdio runtime:pypi

Install wechat devtools in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "wechat-devtools-cli",
      "description": "WECHAT_DEVTOOLS_CLI",
      "password": true
    },
    {
      "type": "promptString",
      "id": "wechat-project-path",
      "description": "WECHAT_PROJECT_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "wechat-cli-timeout",
      "description": "WECHAT_CLI_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "node-path",
      "description": "NODE_PATH",
      "password": true
    }
  ],
  "servers": {
    "wechat-devtools": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "wechat-devtools-mcp"
      ],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "${input:wechat-devtools-cli}",
        "WECHAT_PROJECT_PATH": "${input:wechat-project-path}",
        "WECHAT_CLI_TIMEOUT": "${input:wechat-cli-timeout}",
        "NODE_PATH": "${input:node-path}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

wechat devtools in other clients