wechat-devtools

wechat-devtools is a skill for Claude Code from WaterTian/wechat-devtools-mcp. It costs 24 tokens per session (6,382 once invoked), scanned A, original, MIT.

A connection between an AI assistant and WeChat Developer Tools, the desktop software used to build WeChat mini-programs. It supports building, previewing, debugging, and automated testing through configured tools.

In plain words
What is it for?
Checking the development environment, opening or testing a mini-program project, previewing changes, debugging, and running WeChat development commands.
Why use it?
It removes the need to carry out these development actions manually in the WeChat desktop application. It also checks required setup such as login, project path, service port, and Node.js.

Skill for Claude Code

Written for Claude Code: SessionEnd hook event. Also seen: installed under .agents/ (shared by several agents).

Good fit Checking the development environment, opening or testing a mini-program project, previewing changes, debugging, and running WeChat development commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/watertian/wechat-devtools-mcp/wechat-devtools
Install

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.

Any agent
npx skills add WaterTian/wechat-devtools-mcp --skill wechat-devtools
Clone the repo
git clone --depth 1 https://github.com/WaterTian/wechat-devtools-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for wechat-devtools

README.md
[![agentmods](https://agentmods.dev/badge/skills/watertian/wechat-devtools-mcp/wechat-devtools/github.svg)](https://agentmods.dev/skills/watertian/wechat-devtools-mcp/wechat-devtools)
Your own site
<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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wechat-devtools

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 27 Oct 2026
  • Snyk warn 27 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.06382
Opus 5.5 $0.00010 $0.02553
Sonnet 5.5 $0.00005 $0.01276
Haiku 4.5 $0.00002 $0.00638

Measured yesterday against content hash 088352f138d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wechat-devtools scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/wechat-devtools/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wechat DevTools MCP Skill (v0.9.20)

前置条件

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') 一次确认全部前置条件:

检查项 字段 失败时
CLI 已安装 cli_exists: true 配置 WECHAT_DEVTOOLS_CLI
服务端口已开启 service_port_enabled: true false 必然 CLI_TIMEOUT,去设置里打开;null 是读不到,不等于关闭
项目路径有效 project_exists: true 配置 WECHAT_PROJECT_PATH,须指向含 project.config.json 的根目录
Node.js 可用 node_available: true 安装 Node.js ≥ 18
CDP 端口没被别人占 cdp_port_occupant.kind 为 none / ide foreign(常见是 Chrome)→ open(cdp_port=9333) 或设 WECHAT_CDP_PORT
项目窗口活着 project_window_open: true(IDE 带 CDP 跑着时才有值,否则 null) false → start 会顺手重开窗口
版本一致 skill_version == mcp_version(status 自动读项目内 skill 副本,不一致 message 会提示) uv tool upgrade wechat-devtools-mcp 或同步 skill 副本
已登录 is_login → logged_in: true login(qr_format='terminal') 扫码
官方内建 MCP official_mcp.available 见下方分流规则

环境分流规则(IDE 2.x 内建 MCP)

开发者工具 2.x(2026-08-18 起为官方 Stable)在 http://127.0.0.1:<ide_port>/mcp 内建 MCP Server(47 个原子工具,2 个已废弃)。official_mcp.available: true 且官方 MCP 已接入当前 agent 时:

操作 交给谁
开关项目、登录、编译、预览、上传、build npm、点击/输入/滚动、云开发 官方工具优先,同一操作不要两边各做一遍
长图拼接截图 本 skill。官方 simulator_screenshot 只截视口且压到长边 1280 JPEG
CDP 结构化日志(inspector cdp / navigate) 本 skill。能回放采集前的历史消息并过滤噪音
SOP C / D / I / J 任务级流程 本 skill 编排,基础步骤可调官方工具

Read the full file on GitHub · 325 lines

Files

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.

Changes

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.

  1. yesterday Changed · +4 lines 088352f138d3
  2. 1mo ago Changed · -222 lines ac1e481e4280
  3. 1mo ago First seen · 543 lines · 24 tokens per session scan A 67dde2fdca54

Subscribe to this mod's changes

wechat-devtools is a skill published in the GitHub repository WaterTian/wechat-devtools-mcp (156 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 6,382 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.