MCP server · Audited from source
WeApp Dev MCP server
by yfmeii/weapp-dev-mcpNo licenceAudited 6 Oct 2026 · source b1140cd53199
Is it safe? No — BLOCK, grade D (69/100). It exposes 35 tools: 35 read, 0 write and 0 destructive. The audit recorded 3 findings (0 critical, 1 high, 0 medium, 2 low). Maintainer's description: FastMCP server for automating WeChat Mini Program developer tooling
Cite
Cite this page
ModelsAtlas. “WeApp Dev MCP server (yfmeii/weapp-dev-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/yfmeii/weapp-dev
Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Code injection at src/tools/common.ts:275. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 6 Oct 2026
3 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkDeclared2 observations
- ShellDeclared1 observation
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (3)
Sorted by severity
HIGHCode injectioncode.eval_exec · src/tools/common.ts:275
const fn = new Function(`return (${source});`)();- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWInventory / provenanceinv.no_license
- Why
- no LICENSE file and no repo licence
- Fix
- add a licence
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, fastmcp, miniprogram-automator, zod, @modelcontextprotocol/inspector, @types/node, tsx, typescript
- Why
- 8 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
35 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
connect-and-inspect-home | Connect to the mini program, confirm the current page, then inspect the home page UI. | read |
connect-and-screenshot | Connect first, then capture a screenshot from the active mini program page. | read |
element_callMethod | 调用组件实例指定方法,仅自定义组件可以使用。 | read |
element_getAttributes | 获取元素的特性值。names 为特性名数组(如 [ | read |
element_getBoundingClientRect | 获取元素相对于视口的边界矩形信息(left、top、width、height、right、bottom)。此方法返回的是考虑 CSS transform 变换后的实际渲染尺寸和位置。仅支持 ID 选择器、类选择器。若目标元素位于自定义组件内部,selector 必须指向当前页面 WXML 源码中直接引用的那一层自定义组件,而不是渲染后的组件树;innerSelector 可在 selector 所指组件的整个子树内匹配。 | read |
element_getData | 获取组件实例渲染数据,仅自定义组件可以使用。 | read |
element_getInnerElement | 在元素范围内获取元素,相当于 element.$(selector)。设置 withWxml 为 true 可额外返回每个元素的完整 outerWxml。 | read |
element_getInnerElements | 在元素范围内获取元素数组,相当于 element.$$(selector)。设置 withWxml 为 true 可额外返回每个元素的完整 outerWxml。 | read |
element_getStyles | 获取元素的样式值。names 为样式名数组(如 [ | read |
element_getWxml | 获取元素 WXML。默认获取内部 WXML(element.wxml()),设置 outer 为 true 可获取包含元素本身的 WXML(element.outerWxml())。 | read |
element_input | 向指定元素输入文本。 | read |
element_scrollTo | 滚动 scroll-view 组件到指定位置。仅适用于 scroll-view 组件。 | read |
element_setData | 设置组件实例渲染数据,仅自定义组件可以使用。 | read |
element_tap | 通过 CSS 选择器模拟点击 WXML 元素。支持 [index=N] 语法选择第 N 个元素。如需点击自定义组件内部的元素,请使用 innerSelector 参数:selector 设为组件 ID 选择器(如 #my-component)或标签选择器,innerSelector 设为组件内部元素的选择器。 | read |
focus | Optional UI area to inspect after connecting. | read |
lastError | Exact error message returned by the MCP client. | read |
mp_callWx | 调用微信小程序 API 方法,(如 | read |
mp_currentPage | 获取当前页面的信息,包括路径、查询参数、尺寸、滚动位置、当前页面真实渲染器 renderer,以及 wx.getSkylineInfoSync() 的 Skyline 诊断信息 skylineInfo。通常在 mp_ensureConnection 成功后立即调用,用于确认当前页面;可通过 renderer 区分 webview/skyline,skylineInfo 仅用于判断运行环境能力。withData 为 true 时额外返回页面数据。 | read |
mp_ensureConnection | 检查小程序自动化会话是否就绪。先调用这个工具,再调用 mp_screenshot、page_* 或 element_* 工具。若失败,优先用 reconnect=true 重试一次;若返回项目选择提示,则传 projectSelection。 | read |
mp_getLogs | 获取小程序控制台日志。可选择在获取后清空日志。 | read |
mp_listProjects | 列出微信开发者工具中的最近项目,方便在 mp_ensureConnection 返回项目选择提示后继续选择项目。 | read |
mp_mockWxMethod | 有限 mock wx 方法能力。当前仅支持 method=request:action=mock 时按 requestRules mock wx.request 成功响应;action=restore 时恢复 wx.request。未匹配请求默认透传原始 wx.request。 | read |
mp_navigate | 在小程序内导航,支持 navigateTo、redirectTo、reLaunch、switchTab 和 navigateBack。 | read |
mp_screenshot | 截取当前小程序视口的截图。需要已有活动会话;若提示没有活动会话,请先调用 mp_ensureConnection。默认返回内联图片,或保存到文件路径。 | read |
mp_setDefaultProject | 设置默认的小程序项目路径,设置后下次连接会优先使用该项目。通常用于修复项目选择失败后的后续重试。 | read |
page_callMethod | 调用当前页面实例上暴露的方法。参数可以作为数组提供。 | read |
page_getData | 获取当前页面的数据对象,可选择指定子数据路径。 | read |
page_getElement | 通过选择器获取页面元素,相当于 page.$(selector)。返回每个元素的摘要信息(tagName、text、value、size、offset);设置 withWxml 为 true 可额外返回元素的完整 outerWxml。支持 [index=N] 语法选择第 N 个元素。 | read |
page_getElementByXpath | 通过 XPath 获取页面第一个匹配元素,相当于 page.getElementByXpath(xpath) / page.xpath(xpath)。适合按文本、层级关系、ancestor/following 等 XPath 表达式定位元素;设置 withWxml 为 true 可额外返回完整 outerWxml。 | read |
page_getElements | 通过选择器获取页面元素数组,相当于 page.$$(selector)。返回每个元素的摘要信息(tagName、text、value、size、offset);设置 withWxml 为 true 可额外返回每个元素的完整 outerWxml。支持 [index=N] 语法选择第 N 个元素。 | read |
page_getElementsByXpath | 通过 XPath 获取页面匹配元素数组,相当于 page.getElementsByXpath(xpath)。适合按文本、属性、层级关系、位置函数等 XPath 表达式批量定位元素;设置 withWxml 为 true 可额外返回每个元素的完整 outerWxml。 | read |
page_setData | 使用 setData 更新当前页面的数据。 | read |
page_waitElement | 等待指定选择器的元素出现在页面上。支持 [index=N] 语法选择第 N 个元素。增强版:增加了超时和重试间隔参数。 | read |
page_waitTimeout | 等待指定的毫秒数。 | read |
recover-connection | Recover a failed mini program connection using the MCP | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
b1140cd53199
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about WeApp Dev MCP server
What is the WeApp Dev MCP server?
What tools does WeApp Dev expose?
Is WeApp Dev safe to connect to an agent?
What credentials does WeApp Dev need?
How current is this page?
I already installed WeApp Dev. What should I do?
Can the verdict change?
Sources
- yfmeii/weapp-dev-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit b1140cd53199Observed · 6 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the WeApp Dev MCP server?
- What tools does WeApp Dev expose?
- Is WeApp Dev safe to connect to an agent?