Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/watertian/wechat-devtools-mcp/wechat-devtoolsnpx skills add WaterTian/wechat-devtools-mcp --skill wechat-devtoolsgit clone --depth 1 https://github.com/WaterTian/wechat-devtools-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/watertian/wechat-devtools-mcp/wechat-devtools)<a href="https://agentmods.dev/skills/watertian/wechat-devtools-mcp/wechat-devtools"><img src="https://agentmods.dev/badge/skills/watertian/wechat-devtools-mcp/wechat-devtools.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00024 | $0.08929 |
| Opus 5 | $0.00012 | $0.04464 |
| Sonnet 5 | $0.00005 | $0.01786 |
| Haiku 4.5 | $0.00002 | $0.00893 |
Grade A, and why
wechat-devtools scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| CDP 端口起不来 / 采到的全是别的东西 | 9222 被 Chrome 等占用(`curl 127.0.0.1:9222/json/version` 可确认是谁) | 换端口:`open(cdp_port=9223)`,并让 `inspector` / `navigate` 用同一个 `cdp_port` | How it starts
The opening of the file, as written. The whole thing — 543 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Wechat DevTools MCP Skill (v0.9.16)
前置条件
Step 0:安装与配置
pip install uv # 如未安装 uv
uv tool install wechat-devtools-mcp --force # 通过uv安装wechat-devtools-mcp
编辑器配置:
{
"mcpServers": {
"wechat-devtools": {
"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"
}
}
}
}
主流编辑器配置见 README.md
[!IMPORTANT] 必须手动开启开发者工具的服务端口:
设置→安全设置→服务端口→开启。未开启将导致所有 CLI 操作报CLI_TIMEOUT。
Step 1:运行时环境检查
首先调用
wechat_ide(action='status')一次性确认所有前置条件。
| 检查项 | 偏好命令 | 失败时操作 |
|---|---|---|
| CLI 已安装 | status → cli_exists: true |
安装工具并配置 WECHAT_DEVTOOLS_CLI |
| 服务端口已开启 | status → service_port_enabled: true |
为 false 时所有 CLI 操作必然 CLI_TIMEOUT,去 设置 → 安全设置 → 服务端口 打开;为 null 表示读不到,不代表关闭 |
| 项目路径已配置 | status → project_exists: true |
配置 WECHAT_PROJECT_PATH |
| 已登录 | is_login → logged_in: true |
login(qr_format='terminal') 扫码 |
| Node.js 可用 | status → node_available: true |
安装 Node.js ≥ 8.0 |
| skill 与 MCP 同版本 | status → mcp_version 与本 skill front matter 的 version 一致 |
不一致 ⇒ uv tool upgrade wechat-devtools-mcp,或重新同步 skill 副本 |
Efficiency Principles
IDE 只在会话开始时 open 一次,compile 只在代码变更后执行,页面跳转优先用 evaluate 而非 navigate。
| 场景 | 正确做法 | 错误做法 |
|---|---|---|
| 没改代码,换页面测试 | evaluate(expression="wx.reLaunch({url:'/pages/xxx/index'}); 'ok'") → page_data |
重新 open → compile |
| 改了代码 | compile → page_data 验证(compile 自动重连 automator) |
重新 open → compile |
| 连接断开 | 先快速恢复(仅 start) |
直接走完整恢复 |
API 速查表
wechat_ide — IDE 生命周期
| action | 功能 | 关键参数 |
|---|---|---|
open |
打开 IDE/项目(cdp_enabled 时自动做启动健康检查) | cdp_enabled=true(开启 CDP 9222 端口,自动采集 5s CDP 日志检测启动错误) |
login |
扫码登录 | qr_format="terminal" |
is_login |
检查登录状态 | — |
close / quit |
关闭项目 / 退出 IDE | — |
status |
环境诊断 | — |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 543 lines · 24 tokens per session scan A 67dde2fdca54
wechat-devtools is a skill published in the GitHub repository WaterTian/wechat-devtools-mcp (125 stars, last pushed 6d ago), licensed MIT. It adds 24 tokens to every session and 8,929 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
orca-emulator-android
Control an Android emulator / device from inside Orca using the orca CLI. Use for listing/booting AVDs, taps, swipes, typing, hardware buttons (incl. Back and Recents), rotation, app install/launch, runtime permissions, the accessibility tree, and logcat — driving a real adb-connected device or emulator.…
dogfood
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.
winapp-maui
Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.
android-pentest
安卓应用渗透测试 — APK分析、Hook、自动化测试、运行态驱动、签名恢复、抓包分析.
react-native-ease-refactor
Scan for Animated/Reanimated code and migrate to EaseView.
app_remix
Create a new Rome app from an App Store source, already installed or identified by a pinned Store version. Copy installed code locally or download and extract a Store bundle without installing the source. Never edit or overwrite an existing source app.