Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.
registry version 0.4.8
npm
npx -y @chaixueyuan/weapp-agent-mcpnpm
npx -y @chaixueyuan/weapp-agent-mcp@0.4.8
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env WEAPP_AUTO_ACCOUNT=<YOUR_WEAPP_AUTO_ACCOUNT> --env WEAPP_DEVTOOLS_TICKET=<YOUR_WEAPP_DEVTOOLS_TICKET> weapp-agent-mcp -- npx -y @chaixueyuan/weapp-agent-mcp
claude mcp add --env WEAPP_AUTO_ACCOUNT=<YOUR_WEAPP_AUTO_ACCOUNT> --env WEAPP_DEVTOOLS_TICKET=<YOUR_WEAPP_DEVTOOLS_TICKET> weapp-agent-mcp -- npx -y @chaixueyuan/weapp-agent-mcp@0.4.8
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}{
"servers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
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.⭐ 18 stars · 最近更新于 120 天前 · MIT license
weapp agent mcp Agent first MCP server for WeChat Mini Program debugging, automation, and lightweight regression testing. 面向 agent 的微信小程序 MCP 服务 — 让 Claude Code / Cursor / Codex 等 agent 在对话中直接驱动微信开发者工具完成调试、UI 操作、页面巡检与轻量测试。…
Summary from the project README — github.com/Chaixueyuan/weapp-agent-mcp
Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
weapp agent mcp Agent first MCP server for WeChat Mini Program debugging, automation, and lightweight regression testing. 面向 agent 的微信小程序 MCP 服务 — 让 Claude Code / Cursor / Codex 等 agent 在对话中直接驱动微信开发者工具完成调试、UI 操作、页面巡检与轻量测试。
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/Chaixueyuan/weapp-agent-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/weapp-agent-mcp/)
HTML
<a href="https://mcpnav.net/server/weapp-agent-mcp/"><img src="https://mcpnav.net/badge/weapp-agent-mcp.svg" alt="Listed on MCPNav" height="20"></a>