wechat-devtools-mcp
MCP-сервер WeChat DevTools (v0.9.15)
Обёртка CLI WeChat DevTools в виде сервиса MCP (Model Context Protocol), позволяющая ИИ в редакторе напрямую вызывать команды WeChat CLI и реализовать полный цикл разработки, тестирования, отладки и автоматизации мини-программ.
[!IMPORTANT] Проект построен по архитектуре «тонкий MCP + полный Skill»: MCP-сервер предоставляет 7 агрегированных API, а сопутствующий wechat-devtools Skill — SOP-процедуры, справочник параметров и лучшие практики. Оба компонента обязательны к совместному использованию — без Skill ИИ не сможет корректно работать с мини-программой.
Опубликован в официальный MCP Registry, поддерживает кроссплатформенную установку в один клик (Windows / macOS).
🚀 Установка и быстрое начало
Шаг 1 — Установка MCP-сервера
Рекомендуется использовать uv — он автоматически обрабатывает зависимости Python и предоставляет изолированную среду выполнения.
pip install uv # 安装 uv(如已安装可跳过)
uv tool install wechat-devtools-mcp --force # 一键安装到全局隔离环境[!WARNING] Если ранее вы устанавливали старую версию через
pip install, сначала удалите её, чтобы избежать конфликта версий:pip uninstall wechat-devtools-mcpПуть
pip install(например,Python313/Scripts/) может иметь приоритет над путёмuv tool install(~/.local/bin/), из-за чего будет запускаться старая версия. Текущую версию можно проверить по полюmcp_version, возвращаемомуwechat_ide(action='status').
[!WARNING] Совместимость версий: версии ≥0.9.11 поддерживают mcp 1.x и 2.x (объявление зависимости
mcp[cli]>=1.9,<3). Версии ≤0.9.10 несовместимы с mcp ≥2.0 (при новой установке возникает ошибкаModuleNotFoundError: mcp.server.fastmcp, см. #9) — пользователям закреплённых версий следует обновиться до ≥0.9.11 или добавить--with "mcp<2"при установке.
[!TIP]
Проверка фактически запущенной версии (≥0.9.13):
wechat-devtools-mcp --version # 零依赖打印实际安装版本;uvx 复用已装环境不自拉最新,此命令可直接确认 uv tool list | grep wechat # 离线确认已安装版本Обновление инструмента: если редактор запускает MCP-сервис, сначала завершите процесс, затем обновите:
# Bash / CMD taskkill /F /IM "wechat-devtools-mcp*" 2>/dev/null; uv tool upgrade wechat-devtools-mcp# Windows PowerShell Get-Process | Where-Object { $_.ProcessName -like "*wechat-devtools*" } | Stop-Process -Force uv tool upgrade wechat-devtools-mcpОбновление в один клик через агента:
taskkill /F /IM "wechat-devtools-mcp*" 2>/dev/null; uv tool upgrade wechat-devtools-mcp && npx -y skills add WaterTian/wechat-devtools-mcp/.agents/skills/wechat-devtools
Шаг 2 — Включение порта сервиса DevTools
[!WARNING] Необходимо включить вручную, иначе ИИ не сможет отправлять команды.
Путь: DevTools → Настройки → Параметры безопасности → Порт сервиса → Включить
💡 Проверить, включён ли порт, можно через
wechat_ide(action='status')— если возвращается ошибка подключения, порт сервиса ещё не включён.
Шаг 3 — Уточнение необходимых путей
Заранее получите следующие два абсолютных пути — они понадобятся для настройки редактора:
Путь | Пример для Windows | Пример для macOS |
CLI WeChat DevTools |
|
|
Корневой каталог проекта мини-программы |
|
|
Пользователям macOS: в JSON-конфигурации экранировать слэши (
/) не нужно; пользователям Windows нужно записывать\как\\.
Шаг 4 — Настройка редактора
Измените claude_desktop_config.json или mcp_config.json (Antigravity):
{
"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"
}
}
}
}Отредактируйте ~/.kiro/settings/mcp.json:
{
"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",
"PYTHONIOENCODING": "utf-8"
},
"autoApprove": [
"wechat_ide", "wechat_build", "wechat_automator", "wechat_inspector",
"wechat_screenshot", "wechat_navigate", "wechat_file"
]
}
}
}Отредактируйте ~/.codex/config.toml (глобально) или .codex/config.toml (на уровне проекта):
[mcp_servers.wechat-devtools]
command = "uvx"
args = ["wechat-devtools-mcp"]
[mcp_servers.wechat-devtools.env]
WECHAT_DEVTOOLS_CLI = "C:\\Program Files (x86)\\Tencent\\微信web开发者工具\\cli.bat"
WECHAT_PROJECT_PATH = "D:\\Your\\Project\\Path"Также можно быстро добавить через CLI:
codex mcp add wechat-devtools \
--env WECHAT_DEVTOOLS_CLI="C:\\Program Files (x86)\\Tencent\\微信web开发者工具\\cli.bat" \
--env WECHAT_PROJECT_PATH="D:\\Your\\Project\\Path" \
-- uvx wechat-devtools-mcpДобавьте новый сервер в консоли MCP:
Name:
wechat-devtoolsType:
commandCommand:
uvx wechat-devtools-mcpEnvironment Variables: добавьте
WECHAT_DEVTOOLS_CLIиWECHAT_PROJECT_PATH, как указано выше
В Windows обратную косую черту в путях нужно экранировать (
\\).
Если вы используете Claude Code для разработки в репозитории мини-программы, можно создать файл .mcp.json на уровне проекта (он автоматически следует за репозиторием и действует для всех соавторов).
Windows — .mcp.json в корне репозитория:
{
"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"
}
}
}
}macOS — .mcp.json в корне репозитория:
{
"mcpServers": {
"wechat-devtools": {
"command": "/opt/homebrew/bin/uvx",
"args": ["wechat-devtools-mcp"],
"env": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin",
"WECHAT_DEVTOOLS_CLI": "/Applications/wechatwebdevtools.app/Contents/MacOS/cli",
"WECHAT_PROJECT_PATH": "/Users/<you>/WeChatProjects/<project>",
"NODE_PATH": "/opt/homebrew/bin/node"
}
}
}
}Три ключевых отличия для macOS:
commandдолжен использовать абсолютный путь/opt/homebrew/bin/uvx(при запуске дочерних процессов Claude CodePATHне содержит Homebrew)
env.PATHнеобходимо указывать явно (особенно важно при одновременной настройке MCP на базеnpx, таких как cloudbase / chrome-devtools — иначеnpxне найдёт Node из-за#!/usr/bin/env node)
NODE_PATHрекомендуется указывать явно как дополнительную страховку при запуске демона
При одновременной настройке нескольких MCP (cloudbase / chrome-devtools и т. д.) для каждого сервера применяется одинаковая схема: абсолютный путь в
commandиenv.PATH.
Trae v1.3.0+ поддерживает MCP. Панель ИИ → Настройки в правом верхнем углу → MCP → Добавить → Настроить вручную, вставьте приведённый ниже JSON и сохраните.
Windows:
{
"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"
}
}
}
}macOS:
{
"mcpServers": {
"wechat-devtools": {
"command": "/opt/homebrew/bin/uvx",
"args": ["wechat-devtools-mcp"],
"env": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin",
"WECHAT_DEVTOOLS_CLI": "/Applications/wechatwebdevtools.app/Contents/MacOS/cli",
"WECHAT_PROJECT_PATH": "/Users/<you>/WeChatProjects/<project>",
"NODE_PATH": "/opt/homebrew/bin/node"
}
}
}
}Можно также отредактировать файл конфигурации напрямую:
Windows:
%APPDATA%\Trae\User\globalStorage\mcp.jsonmacOS:
~/Library/Application Support/Trae/User/globalStorage/mcp.json
[!IMPORTANT] В окне чата обязательно выберите агента «Builder with MCP» — обычные агенты не вызывают инструменты MCP. Рекомендуется также установить wechat-devtools Skill (Шаг 5), чтобы ИИ вызывал инструменты в порядке SOP.
Шаг 5 — Установка Skill (обязательно)
[!IMPORTANT] Этот MCP обязательно должен использоваться вместе с wechat-devtools Skill. Skill содержит все SOP-процедуры, справочник параметров и руководство по устранению неполадок, необходимые ИИ для работы с мини-программой. Без установленного Skill ИИ сможет вызывать только «голые» API и не сможет автоматически выполнять стандартизированные процедуры тестирования и отладки.
Способ 1: npx skills add (для пользователей Claude Code)
npx -y skills add WaterTian/wechat-devtools-mcp/.agents/skills/wechat-devtoolsБудет установлено в ~/.claude/skills/, Claude Code загрузит автоматически.
Способ 2: вручную в .agents/skills/ (для клиентов, загружающих из .agents/skills/, например Trae)
Выполните в корневом каталоге проекта мини-программы:
git clone --depth 1 https://github.com/WaterTian/wechat-devtools-mcp.git .wdm-tmp
mkdir -p .agents/skills
cp -r .wdm-tmp/.agents/skills/wechat-devtools .agents/skills/
rm -rf .wdm-tmpСтруктура каталогов после завершения:
your-project/
└── .agents/skills/
└── wechat-devtools/
├── SKILL.md # 主指令文件(SOP + 能力映射 + 红线规则)
└── references/
└── tool_reference.md # 7 个聚合 API 完整参数参考[!TIP] Пользователям Trae: убедитесь, что переключатель Настройки → Навыки и команды → Включить каталог навыков .agents включён (по умолчанию включён). После сохранения обновите страницу — в разделе «Навыки → Проект» появится
wechat-devtools.
Related MCP server: harmony-mcp
🛠️ Обзор инструментов
MCP-сервер предоставляет 7 агрегированных инструментов, покрывающих весь жизненный цикл мини-программы:
Инструмент | Функция | Поддерживаемые action |
| Управление жизненным циклом IDE |
|
| Сборка и публикация |
|
| Автоматизированное взаимодействие |
|
| Сбор журналов времени выполнения |
|
| Снимки экрана (склейка длинных изображений) | — |
| Переход на страницу и сбор CDP-журналов | — |
| Чтение файлов проекта |
|
Для управления облачными функциями и облачной базой данных используйте CloudBase MCP (
manageFunctions/readNoSqlDatabaseContentи т. д.) — функциональность полнее и нет зависимости от IDE.wechat_cloudотключён начиная с v0.9.5.
🧠 Содержание Skill
Skill позволяет ИИ после получения команды на естественном языке автоматически подбирать и выполнять стандартизированные процедуры:
Что вы говорите | Процедура, выполняемая ИИ |
«Проверь все страницы на ошибки» | SOP D — проверка всех страниц |
«Нажми кнопку входа, сделай скриншот» | SOP B — отладка UI |
«Страница белая, помоги разобраться» | SOP C — устранение неполадок |
«Замокай платёжный интерфейс, протестируй платёжный процесс» | SOP E — интеграционное тестирование с Mock |
«Протестируй страницу деталей, как называется параметр» | SOP G — тестирование подстраниц |
«Сравни, совпадают ли баллы на разных страницах» | SOP I — проверка данных между страницами |
Что входит в Skill
9 SOP-процедур — инициализация, отладка UI, устранение неполадок, проверка всех страниц, интеграционное тестирование с Mock, сетевая отладка и адаптация UI, тестирование подстраниц, проверка данных между страницами, параллельное сравнение данных
Словарь сопоставления возможностей — быстрый индекс 7 агрегированных инструментов × все action
Стратегия поэтапного поиска CDP — concise → full, два этапа для контроля расхода токенов
Полный справочник параметров — обязательные/необязательные параметры каждого action, примеры возвращаемых значений, часто используемые шаблоны
Руководство по устранению неполадок — распространённые коды ошибок и способы их исправления
Способ установки см. в Шаг 5 — Установка Skill
💡 Переменные окружения
Имя переменной | Описание | Значение по умолчанию | Обязательна |
| Путь к CLI WeChat DevTools | — | Да |
| Абсолютный путь к проекту мини-программы по умолчанию | — | Да |
| Тайм-аут команд CLI (секунды) |
| Нет |
| Путь к исполняемому файлу Node.js |
| Нет |
❓ Часто задаваемые вопросы
Самая частая причина: не включён «порт сервиса» WeChat DevTools.
Откройте Настройки → Безопасность → Порт сервиса и включите его. После включения перезапуск IDE не требуется — ИИ сразу восстановит подключение.
Если вы открыли DevTools вручную, он может не прослушивать порт отладки. Закройте DevTools и дайте ИИ выполнить wechat_ide(action='open', cdp_enabled=True) для запуска в режиме отладки.
MCP-сервис в редакторе всё ещё работает. См. подсказку по обновлению под Шагом 1 — сначала завершите процесс, затем обновите.
Возможно, старая версия, установленная через pip install, имеет более высокий приоритет. Выполните pip uninstall wechat-devtools-mcp для удаления старой версии, затем проверьте через wechat_ide(action='status'), что поле mcp_version содержит актуальную версию.
Убедитесь, что в env конфигурации редактора в WECHAT_DEVTOOLS_CLI указан абсолютный путь:
Windows: используйте двойную обратную косую черту (например,
C:\\...\\cli.bat)macOS: стандартный путь
/Applications/wechatwebdevtools.app/Contents/MacOS/cli, слэши экранировать не нужно
При запуске MCP из GUI-клиента (например, Claude Desktop) PATH может не содержать /opt/homebrew/bin. Начиная с MCP v0.9.6 автоматически проверяется стандартный путь Homebrew; если это не помогло, укажите его явно в env:
"NODE_PATH": "/opt/homebrew/bin/node"📋 История версий
版本 | 说明 |
0.9.15 | Адаптация под DevTools 2.x (Electron) + исправление давнего сбоя сбора CDP: DevTools 2.x перешёл на Electron (1.06.x Stable по-прежнему на NW.js, двойная совместимость без замены). Путь запуска на macOS определяется автоматически по наличию |
0.9.14 | Исправление путей чтения файлов + исправление неработающих параметров: |
0.9.13 | Ранний выход по |
0.9.12 | Версия в ответе рукопожатия + верхняя граница зависимостей: в mcp 2.x |
0.9.11 | Совместимость с mcp 2.0.0: официальный Python SDK MCP 2.0 (выпущен 2026-07-28) удалил |
0.9.10 | Исправление тихого сбоя page_path: screenshot.js после навигации проверяет соответствие пути страницы, при отсутствии суффикса |
0.9.9 | Исправление перезапуска мини-программы после скриншота: в screenshot.js навигация для не-TabBar страниц изменена с |
0.9.8 | Исправление стабильности подключения automator: проверка работоспособности |
0.9.7 | Исправление остаточных осиротевших процессов daemon: в daemon.js добавлен watchdog родительского процесса, каждые 5 секунд проверяется |
0.9.6 | Адаптация под macOS: кроссплатформенный запуск в режиме |
0.9.5 | Исправление скрытого бага с вечно неудачной проверкой работоспособности compile (в ui_debug.js нет action |
0.9.4 | Исправлено, что switchTab не срабатывал (заменено на |
Версия | Описание |
0.9.3 | В status добавлено поле |
0.9.2 | Исправлен таймаут navigate после compile: добавлена защита таймаута 3s при проверке здоровья соединения daemon; после compile автоматически инвалидируется старое кэшированное соединение и выполняется переподключение; при опросе currentPage в navigate добавлен отдельный таймаут 2s на каждый вызов; различаются коды ошибок HEALTH_CHECK_TIMEOUT и CONNECTION_ERROR |
0.9.1 | Исправлен сбой AttributeError при cdp_enabled=true; добавлен сбор ошибок времени выполнения WXML (после compile CDP автоматически перехватывает предупреждения, такие как template not found) |
0.9.0 | Постоянная архитектура Node daemon: один постоянный процесс daemon, обмен по протоколу NDJSON, WS-соединения переиспользуются по портам; один daemon.bundle.js заменяет 8 отдельных bundle; задержка вызова инструментов снижена с 500ms+ до ~3ms; после compile daemon автоматически пересоздаёт соединение без разрывов |
0.8.0 | Автоматическое переподключение automator после compile; navigate автоматически определяет страницы TabBar и использует switchTab; в screenshot добавлены параметры full_page/scroll_top/page_path и режим снимка области просмотра; в page_data добавлен опрос expected_path для защиты от устаревших данных; динамический шаг при склейке длинных изображений исправляет пропуски содержимого; node_bridge унифицирует повторные попытки при разрыве соединения + интервал вызова 500ms; проверка порта start увеличена до 20 раз |
0.7.0 | Исправлена область видимости переменных navigate (currentPageTimeout); evaluate поддерживает объявления (const/let/var fallback); call_method возвращает путь текущей страницы; automator start использует опрос порта вместо слепого ожидания; в SKILL.md добавлены принципы эффективности, уровни восстановления, методы перехода между страницами, 6 записей о неисправностях |
0.6.0 | navigate поддерживает параметр query (fallback при таймауте reLaunch); фильтрация шума при запуске CDP (подавление console.assert/__route__/ide:// + защита от ошибок WXML); возвращаемое значение compile разделено на три категории + предупреждение о неработоспособности automator; повторные попытки опроса currentPage в navigate; настраиваемые таймауты |
0.5.1 |
|
0.5.0 | Всесторонняя оптимизация Skill SOP: добавлены SOP I/J; добавлены проверка AppID и валидация path; фильтрация шума CDP; исправлено нечёткое сопоставление при склейке скриншотов |
0.4.1 | Переписана склейка длинных страниц скриншотов: обнаружение фиксированных областей, адаптация к DPR, динамический расчёт перекрытий |
0.4.0 | Улучшены логи CDP, автоматическая проверка развёртывания облачных функций, интеллектуальная диагностика navigate, добавлены SOP G/H |
0.3.0 | Крупный рефакторинг: 44 инструмента объединены в 8 API; логи CDP v2; добавлена база знаний SKILL.md |
0.2.6 | В README добавлено описание конфигурации OpenAI Codex |
0.2.5 | Добавлено описание конфигурации редактора Kiro |
0.2.4 | Исправлена склейка скриншотов при прокрутке: |
0.2.3 | Оптимизация пакета: исключён исходный код |
0.2.2 | Скрипты Node.js переведены в режим bundle-only |
0.2.1 | Обновление версии и улучшение документации |
0.2.0 | navigate переведён на сбор высококачественных логов CDP |
0.1.9 | Исправлена проблема с кодировкой UTF-8 (кракозябры) |
0.1.8 | Исправлена ошибка UnicodeDecodeError для китайских путей в Windows |
0.1.7 | Добавлены пресеты наборов инструментов core/full; добавлен MCP_DOC.md |
0.1.6 |
|
0.1.5 | Исправлена проблема блокировки stdio в Windows |
0.1.4 | Добавлены функции: логи CDP, скриншоты, автоматизация и др. |
0.1.3 | Начальная версия |
Справочная документация
Лицензия
MIT
Available Tools
7 toolswechat_automatorC
小程序自动化交互与运行时查询。 支持 action: start(开启自动化), tap(点击), input(输入), element_info(元素信息), set_data(设置数据), call_method(调用方法), call_wx(调用wx API), mock_wx(Mock wx), evaluate(执行JS), page_stack(页面栈), page_data(页面数据), system_info(系统信息), storage(缓存)。 返回 JSON: {success, data, message, error_code?}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
注解均为中性false值,未提供安全画像,描述需要承担完整的副作用披露责任。描述补充了返回JSON结构,但未说明tap/input/set_data等操作可能产生的状态变更、是否需要先执行start,或是否存在权限/运行环境要求,透明性不足。
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
描述结构紧凑、信息密度高:先总述功能,再以冒号分隔列出动作清单,最后给出返回格式,没有冗余或无效信息,且关键的总述放在最前。
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
该工具包含13种action和多个依赖参数,动作间存在耦合关系(如start需要project_path,tap需要selector),而描述只是动作清单,没有阐述各动作的使用场景、先决条件或副作用。即使schema提供了部分属性描述,整体描述对一个高复杂度多动作工具仍然不够完整。
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
顶层params参数在schema中无描述,覆盖率为0%;描述没有对params结构或任何属性进行补充说明,仅用括号标注了action的中文含义,无法补偿参数语义空白。描述没有帮助代理理解如何为不同的action组合正确的参数。
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
描述以具体动词短语'小程序自动化交互与运行时查询'明确工具功能,并列出13种支持的动作及返回格式,使代理能识别这是用于微信小程序自动化交互与运行时查询的工具。但未明确与兄弟工具进行对比,因此不足以达到5分。
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
描述仅列举了支持的动作,没有说明何时应使用该工具而不使用兄弟工具(如 wechat_inspector、wechat_screenshot),也没有提到使用条件或动作之间的先后顺序,缺少任何关于如何选择本工具的指导。
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wechat_buildAIdempotent
构建、预览、上传小程序及 npm 管理。 支持 action: compile(编译检查), preview(预览), upload(上传), build_npm(构建NPM), cache_clean(清缓存)。 返回 JSON: {success, data, message, error_code?}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations provide idempotentHint=true but no readOnlyHint or destructiveHint. The description states it returns a JSON structure, which adds behavioral context, and mentions that 'upload' requires 'version' (parameter semantics). However, the description does not disclose side effects, such as whether upload publishes to production, whether cache_clean is destructive, or authentication requirements. The idempotentHint is somewhat contradicted by non-idempotent actions like upload, though the description does not explicitly contradict the annotation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact, front-loaded with the core purpose and action list, and ends with the return format. No wasted words; fits within a few lines.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with a rich action enum and many parameters, the description covers the main actions and the return structure, but does not elaborate on prerequisites, side effects, or error handling. With 11 parameters and 5 actions, the description leaves about half the behavioral context to the schema and annotations. Adequate but with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the parameter descriptions in the schema are quite detailed (e.g., role of cdp_port, clean_type, version for upload). The tool description adds the grouping of actions and the JSON return shape, but most parameter explanations come from the schema itself, not the description. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action is a build/preview/upload tool for WeChat mini-programs and lists the specific actions it supports. It distinguishes itself from siblings by covering build-related operations, though it doesn't explicitly compare to sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage contexts (build operations, npm management) but does not provide explicit when-to-use or when-not-to-use guidance. It lacks alternatives or exclusions, though the action enum provides some guidance on what each action does.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wechat_fileARead-onlyIdempotent
读取小程序项目文件和结构信息。 支持 action: project_info(项目完整信息), list_pages(页面列表), read_page(读取页面源码), read_file(读取单个文件)。 返回 JSON: {success, data, message, error_code?}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already disclose readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds the JSON return structure ({success, data, message, error_code?}) and enumerates the supported actions, which gives further behavioral clarity. No contradiction with annotations exists, and the description complements the safety profile without duplicating it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single paragraph that front-loads the purpose, lists the actions, and states the return format. Every sentence contributes value, and there is no filler. It is concise and well-structured, though slightly compact for the amount of information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present, the description need not detail return fields extensively, and it does provide the top-level JSON shape. However, it does not explain parameter relationships or optionality (e.g., which paths are required for which actions), which an agent would need to call the tool correctly. Given the tool's multi-action nature and optional parameters, this is a noticeable gap, though not critical for a read-only tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description explains the meaning of the 'action' enum values (project_info, list_pages, read_page, read_file) but does not clarify the roles of 'file_path', 'page_path', or 'project_path', nor the dependencies (e.g., read_page requires page_path). The schema provides descriptions for each field, but the context signal indicates 0% description coverage, meaning the tool description does not substitute for that. The description only partially compensates for the low coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool reads WeChat mini program project files and structure, and lists four distinct actions (project_info, list_pages, read_page, read_file). This distinguishes it from sibling tools like wechat_navigate or wechat_screenshot, which have different purposes. The verb '读取' and resource '小程序项目文件' make the purpose explicit and unmistakeable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not explicitly state when to use this tool versus alternatives, but the available actions imply its scope (reading project files). It does not mention exclusions or conditions that would steer an agent to a sibling tool. Context is clear but there is no comparative guidance, so it remains adequate rather than optimal.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wechat_ideBIdempotent
微信开发者工具 IDE 生命周期管理。 支持 action: open(打开IDE/项目), login(扫码登录), is_login(检查登录), close(关闭项目), quit(退出IDE), status(环境诊断)。 返回 JSON: {success, data, message, error_code?}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide idempotentHint=true and destructiveHint=false, and the description does not contradict them. The description adds a return envelope format ({success, data, message, error_code?}) and action semantics, but it does not disclose side effects such as launching a GUI application, blocking on QR code scanning, or requiring the IDE to be installed/running. With annotations covering safety, a 3 is appropriate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is exactly two sentences: the first states the overall purpose, the second lists actions and the return format. There is no filler, repetition, or unnecessary detail. The structure is front-loaded and every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
This is a multi-action tool with 10 parameters, and the description does not map parameters to specific actions (e.g., open requires project_path, login uses qr_format/result_output). It also omits prerequisites and likely failure modes. The one-line JSON envelope covers the output shape, but for a lifecycle manager of this complexity, the description is incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool description only adds semantic meaning to the action enum by explaining what each action does. It says nothing about project_path, port, qr_format, qr_output, cdp_port, or result_output, which are all documented in the schema but not compensated for at the description level. Given schema_description_coverage is 0%, the description should carry more weight for parameters but does not.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly identifies the tool as WeChat Developer Tools IDE lifecycle management and enumerates six specific actions (open, login, is_login, close, quit, status) with brief semantic labels for each, such as '打开IDE/项目' and '扫码登录'. This makes it easy to distinguish from sibling tools like wechat_build or wechat_inspector, which target different aspects of the WeChat toolchain.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus siblings. It does not mention alternatives, exclusions, prerequisites, or conditions such as 'use wechat_build for compilation' or 'use wechat_inspector for debugging'. The action list implies capability but does not help an agent decide between lifecycle management and other tool categories.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wechat_inspectorARead-onlyIdempotent
采集小程序运行时日志和异常。 支持 action: console(automator端口采集console日志和JS异常), cdp(通过CDP协议采集WXML警告、渲染层报错、废弃API提示等底层日志)。 cdp action 需先以 cdp_enabled=true 打开项目,确保端口 9222 可用。 返回 JSON: {success, data: {logs, summary}, message}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so safety is covered. The description adds concrete behavioral context: two acquisition protocols, the cdp pre-condition, and the JSON response envelope {success, data:{logs, summary}, message}. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four sentences, no filler; purpose is front-loaded and the action/prerequisite/return-format sections are each one line. Easily scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Between the description, detailed nested parameter docs, and the available output schema, an agent has what it needs to invoke either action. Minor gap: the cdp port prerequisite is stated as a fixed 9222 rather than tied to the cdp_port parameter, but the default matches.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already documents all nested parameters with descriptions, including duration behavior and log_type. The description adds semantic value by explaining what each action value means and reiterating the cdp port requirement, which the bare schema enum does not provide.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with '采集小程序运行时日志和异常' – a specific verb and object. The two actions (console vs cdp) map to distinct log sources, which separates it from siblings like wechat_build or wechat_screenshot. No ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states that the cdp action requires opening the project with cdp_enabled=true and a usable port 9222, and separates what each action collects (console/JS exceptions vs WXML/render/deprecated-API logs). It does not name sibling alternatives or exclusions, but the internal action guidance is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wechat_screenshotARead-onlyIdempotent
实时捕获当前小程序模拟器的界面截图。 默认支持截取长图,自动滚动并拼接。 output_path 可选,留空则自动保存到项目目录下 screenshots/ 文件夹。 返回 JSON: {success, data: {path, width, height, segments}, message}。
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description reveals that the tool auto-scrolls and stitches long screenshots by default, that output_path can be omitted to save to screenshots/, and that the response is a JSON object with success, data.path/width/height/segments, and message. These behavioral details help the agent anticipate side effects and response shape. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four short sentences, each adding new information: purpose, long-screenshot default, output_path default, return format. The most important action and defaults are front-loaded. No redundant or marketing language.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only screenshot tool with a rich schema and an output schema, the description covers the key defaults and return format. It does not mention prerequisites like the simulator being open or the meaning of 'segments', but these are minor given the existing schema and annotations. The description is sufficient for an agent to invoke the tool correctly in most cases.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The context signal reports 0% schema description coverage, so the description must compensate, but it only details output_path's default location and implicitly full_page's default. Parameters like overlap, auto_port, page_path, and scroll_top are not explained in the description, requiring the agent to inspect the nested $defs. The $defs do contain descriptions, which mitigates this, but the description itself adds little parametric meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource: '实时捕获当前小程序模拟器的界面截图' (capture the current mini-program simulator interface screenshot in real-time). It further clarifies the long-screenshot default and references the output path and return JSON, leaving no doubt about the tool's function. This clearly distinguishes it from sibling tools like wechat_build or wechat_navigate.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context that this is for capturing screenshots of the simulator and mentions default long-screenshot behavior. It does not, however, name any sibling tools or state when to prefer this over wechat_inspector or wechat_automator. A brief 'use this when you need a screenshot' would have been stronger, but the context is unambiguous enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
7 tool updates
v0.9.16- First observed
wechat_automator - First observed
wechat_build - First observed
wechat_file - First observed
wechat_ide - First observed
wechat_inspector - First observed
wechat_navigate - First observed
wechat_screenshot
TDQS
The seven tools are mostly organized by clear domains (IDE lifecycle, build, automation, logs, screenshot, navigation, file access). However, wechat_inspector and wechat_navigate both collect CDP/runtime logs, which could create ambiguity when an agent simply needs log data.
All tools share the wechat_ prefix and snake_case, making the family recognizable, but the second segment mixes nouns (ide, automator, inspector, screenshot, file) with verbs (build, navigate). The internal action lists are consistently verb-based, so the deviation is minor.
Seven tools is well-scoped for a WeChat DevTools automation server. Each tool bundles related actions under a single interface, avoiding both fragmentation and a monolithic do-everything tool.
The surface covers the main lifecycle: open/login/close, compile/preview/upload, automation interaction, log collection, screenshots, navigation, and file/project reads. Minor gaps remain, such as no explicit stop action for automation sessions and no project creation, but core workflows have no dead ends.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
- MaShop MCPOAuthapp.mashop
Build, deploy and manage MaShop e-commerce projects from Claude, Cursor or any MCP client.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to automate WeChat Developer Tools for mini programs, allowing navigation, inspection, and manipulation of pages and components through the miniprogram-automator API.2767174MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables AI assistants to interact with WeChat Mini Programs, allowing developers to publish versions, analyze package size, diagnose compilation errors, and manage projects via natural language.783MIT
- AlicenseAqualityAmaintenanceMCP server for WeChat Mini Program debugging and automation, enabling agents to perform UI operations, screenshots, and regression testing through natural language commands.4417914MIT
- AlicenseNot gradedqualityDmaintenanceConnects WeChat Mini Program tooling to MCP and automation workflows. Provides scripts for opening, previewing, and uploading projects, as well as automator smoke tests.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/WaterTian/wechat-devtools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server