This is a comprehensive MCP server for WeChat Mini Program development that wraps the official devtools CLI with automation capabilities. You get IDE lifecycle control, build and upload commands, and full Puppeteer-style automation through their internal protocol. The real value is the inspector tools that tap into Chrome DevTools Protocol on port 9222 to catch rendering errors and console logs that the CLI alone misses. Setup requires pointing it to your WeChat devtools installation and enabling the service port in settings. The docs are thorough with SOPs for common workflows like navigating pages, hot-reloading data during debugging, and running pre-release checks across all pages. Works best if you're already in the WeChat ecosystem and tired of manual clicking through the simulator.

skills.sh installs
500
GitHub stars
166
last updated
Aug 21, 2026

Install

$ npx -y skills add watertian/wechat-devtools-mcp --skill wechat-devtools --agent claude-code

Installs into .claude/skills of the current project.

Files

Wechat DevTools MCP Skill (v0.9.21)

前置条件

Step 0:安装与配置

pip install uv
uv tool install wechat-devtools-mcp            # 升级:uv tool install wechat-devtools-mcp --force --refresh
{
  "mcpServers": {
    "wechat-devtools-mcp": {
      "command": "uvx",
      "args": ["wechat-devtools-mcp"],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "C:\\Program Files (x86)\\Tencent\\微信web开发者工具\\cli.bat",
        "WECHAT_PROJECT_PATH": "D:\\Your\\Project\\Path"
      }
    }
  }
}
  • 注册名用 wechat-devtools-mcp(开发者工具 2.x 把自家 MCP bridge 注册成 wechat-devtools,同名会被覆盖)。macOS CLI 路径 /Applications/wechatwebdevtools.app/Contents/MacOS/cli。各编辑器配置见 README。
  • 必须开启服务端口:设置 → 安全设置 → 服务端口。未开启则所有 CLI 操作报 CLI_TIMEOUT。
  • 9222 常被 Chrome 占用的机器在 env 加 "WECHAT_CDP_PORT": "9333";Node.js 须 ≥ 18。

Step 1:运行时环境检查

先调 wechat_ide(action='status') 一次确认全部前置条件:

Sponsors

Details

Repository
github.com/watertian/wechat-devtools-mcp
Category
AI & Agent Building
First seen
Jun 3, 2026
1aj-geddes avatarapi-reference-documentationaj-geddes/useful-ai-promptsCreate comprehensive API reference documentation with OpenAPI/Swagger specs, REST endpoints, authentication, examples, and SDKs. Use when documenting REST APIs,499skills.sh installs
2aj-geddes avatardatabase-performance-debuggingaj-geddes/useful-ai-promptsDebug database performance issues through query analysis, index optimization, and execution plan review. Identify and fix slow queries.499skills.sh installs
3maplibre avatarmaplibre-mapbox-migrationmaplibre/maplibre-agent-skillsMigrating from Mapbox GL JS to MapLibre GL JS — package and import changes, removing the access token, choosing tile sources, plugin equivalents, and what you g498skills.sh installs
4jwynia avatartask-breakdownjwynia/agent-skillsHelp neurodivergent users break down overwhelming tasks into manageable steps. Use when tasks feel paralyzing, when executive function is struggling, when someo497skills.sh installs
5aj-geddes avatarreactive-programmingaj-geddes/useful-ai-promptsImplement reactive programming patterns using RxJS, streams, observables, and backpressure handling. Use when building event-driven UIs, handling async data str496skills.sh installs
6aj-geddes avatarapi-paginationaj-geddes/useful-ai-promptsImplement efficient pagination strategies for large datasets using offset/limit, cursor-based, and keyset pagination. Use when returning collections, managing l495skills.sh installs