weixin-devtools-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| assert_attributeC | 断言元素属性值 |
| assert_stateC | 断言元素的各种状态 |
| assert_textC | 断言元素文本内容 |
| clickC | 点击指定 target 的页面元素 |
| connect_devtoolsC | 连接一个明确的微信开发者工具目标;project 固定按 launch → connect 尝试 |
| disconnect_devtoolsA | 断开与微信开发者工具的连接并清理上下文状态 |
| evaluate_scriptA | 在小程序 AppService 上下文中执行 JavaScript 代码并返回结果。 支持访问 wx API、getApp()、getCurrentPages() 等小程序全局对象。 返回值必须是 JSON 可序列化的类型。 |
| find_elementsA | 在 Page 根作用域通过 selector、id、testId、dataId 或 text 查找元素并返回 opaque ref |
| get_connection_statusA | 获取连接、工具 profile 与监听生命周期状态 |
| get_current_pageA | 获取当前页面信息并设置为活动页面 |
| get_page_snapshotC | 获取 Page 或自定义组件的 V2 scopes/edges 作用域图(默认预算 4/64/1000) |
| get_valueC | 获取元素的值或文本内容 |
| input_textC | 向input/textarea元素输入文本 |
| navigate_backB | 返回上一页(当前 automator 版本仅支持 delta=1) |
| navigate_toC | 跳转到指定页面 |
| reconnect_devtoolsB | 不传参数时完整复用上次成功请求;传入 target 时以完整新请求替换 |
| relaunchB | 重新启动小程序并跳转到指定页面 |
| set_form_controlC | 设置表单控件的值(如picker、switch、slider等) |
| switch_tabC | 切换到指定Tab页 |
| wait_forC | 等待条件满足,支持等待元素出现、消失、文本匹配等 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 连接状态 | 连接、工具 profile 与监听生命周期状态 |
| 页面快照 | 当前页面的 V2 作用域图快照(读取时需要已连接) |
TDQS
Scored across 20 tools
Most tools target distinct actions (click, input_text, navigate_to, evaluate_script), but reconnect_devtools and connect_devtools overlap in purpose, and get_value vs assert_text could be confused for reading element content.
Tool names mostly follow a verb_noun pattern (connect_devtools, get_current_page, input_text, navigate_back), with a few exceptions like relaunch and wait_for that are verb-only but still clear.
20 tools is on the higher end but appropriate for a WeChat devtools automation server covering connection, navigation, element interaction, assertions, and script evaluation.
The surface covers connection lifecycle, page navigation, element finding/interaction, assertions, and script evaluation. Minor gaps include no explicit screenshot or element clear/delete operation, but core automation workflows are well covered.