WeChat DevTools Bridge
Allows opening, previewing, and uploading WeChat Mini Program projects, and validating automator connectivity via WeChat DevTools.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WeChat DevTools Bridgecheck prerequisites for WeChat DevTools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WeChat DevTools Bridge
An open-source Codex plugin that connects WeChat Mini Program tooling to MCP and automation workflows.
What it does
Provides a local Codex plugin manifest
Ships an MCP configuration for Windows
Adds helper scripts to locate WeChat DevTools and check prerequisites
Provides executable wrappers for open, preview, upload, and automator smoke tests
Related MCP server: harmonyos-dev-mcp
Current approach
This plugin uses official WeChat-adjacent tooling for the executable path and keeps MCP pluggable.
That gives us a practical bridge for:
checking WeChat DevTools availability
connecting Codex to local Mini Program tooling
opening, previewing, and uploading projects
validating automator connectivity
Prerequisites
Windows PowerShell
Node.js 16+
nvm for Windows is supported
WeChat DevTools installed
WeChat DevTools service port enabled
Files
.codex-plugin/plugin.json: Codex plugin manifest.mcp.json: MCP server wiringscripts/check-prereqs.ps1: local environment checkscripts/find-wechat-devtools.ps1: locate a likely DevTools CLI pathscripts/invoke-weapp-cli.ps1: shared wrapper aroundweapp-ide-cliscripts/open-project.ps1: open the current project in WeChat DevToolsscripts/preview-project.ps1: run a preview flowscripts/upload-project.ps1: run an upload flowscripts/start-weapp-devtools-mcp.ps1: launches a configurable MCP packagescripts/automator-smoke.cjs: validatesminiprogram-automatorconnectivitypackage.json: npm dependencies and convenience scripts
Quick start
Open WeChat DevTools and enable the service port in security settings.
Run:
./scripts/check-prereqs.ps1If needed, set the CLI path explicitly:
$env:WECHAT_DEVTOOLS_CLI = "C:\\Path\\To\\WeChatDevTools\\cli.bat"Start the MCP bridge manually:
./scripts/start-weapp-devtools-mcp.ps1Open the current mini program project:
./scripts/open-project.ps1Run an automator smoke test after DevTools is exposing the websocket endpoint:
$env:WECHAT_WS_ENDPOINT = "ws://127.0.0.1:9420"
npm run automator:smokenpm scripts
npm install
npm run check
npm run devtools:open
npm run devtools:preview
npm run automator:smokedevtools:upload requires additional arguments, for example:
./scripts/upload-project.ps1 -Version 0.1.0 -Desc "Initial upload"Environment variables
WECHAT_DEVTOOLS_CLI: explicit path to the DevTools CLIWECHAT_PROJECT_PATH: mini program project rootWECHAT_WS_ENDPOINT: automator websocket endpoint, defaultws://127.0.0.1:9420WECHAT_MCP_NPX_PACKAGE: optional community MCP package name used bystart-weapp-devtools-mcp.ps1WECHAT_NODE_EXE: optional explicitnode.exeoverrideWECHAT_NPX_CMD: optional explicitnpx.cmdoverride
nvm for Windows
If you use nvm for Windows, the scripts now try:
WECHAT_NODE_EXE/WECHAT_NPX_CMDthe current shell
node/npxNVM_SYMLINK\\node.exeandNVM_SYMLINK\\npx.cmdNVM_HOME\\<current-version>\\node.exeandnpx.cmdwhenNVM_CURRENTis setC:\\Program Files\\nodejs\\node.exeandnpx.cmd
If your environment still does not resolve Node correctly, run nvm use <version> first or set the explicit overrides above.
MCP config
The bundled .mcp.json uses:
{
"mcpServers": {
"wechat-devtools-bridge": {
"command": "powershell.exe",
"args": [
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-File",
"./scripts/start-weapp-devtools-mcp.ps1"
]
}
}
}Recommended toolchain
weapp-ide-cli: open / preview / upload wrappers around the WeChat DevTools CLIminiprogram-automator: websocket-based DevTools automation checksa community WeChat DevTools MCP package of your choice, passed via
WECHAT_MCP_NPX_PACKAGE
Upstream references
miniprogram-automator: https://www.npmjs.com/package/miniprogram-automatorweapp-ide-cli: https://www.npmjs.com/package/weapp-ide-clicommunity MCP example: https://glama.ai/mcp/servers/%40yfmeii/weapp-dev-mcp
Notes
The helper scripts are intentionally conservative and Windows-first.
The repository keeps the MCP backend configurable because community MCP packages evolve quickly.
If you want a pure Node launch path later, we can add one.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Remote MCP server for China brand visibility, destination demand, and KOL discovery workflows.
MCP tools for TON Sites, TON DNS and TON Storage.
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for WeChat Mini Program debugging and automation, enabling agents to perform UI operations, screenshots, and regression testing through natural language commands.44130 npm14MIT
- FlicenseDqualityBmaintenanceEnables HarmonyOS device discovery, app build and deployment, UI automation, E2E inspection, and log validation through MCP tools.1812-
- AlicenseNot gradedqualityDmaintenanceEnables to operate a WeChat Official Account via MCP tools, including searching and executing API workflows and uploading files.MIT
- AlicenseBqualityDmaintenanceEnables automated testing of WeChat mini-programs via Model Context Protocol, providing tools for connecting to WeChat Developer Tools, querying and interacting with page elements, making assertions, navigating, and debugging.2030 npm79MIT