Chaixueyuan/weapp-agent-mcp

github
github TypeScript analyzed 117e660

Agent-first MCP server for WeChat Mini Program debugging & automation. 面向 agent 的微信小程序 MCP 服务,让 Claude Code / Cursor 直接操作微信开发者工具。

maintainer
Chaixueyuan
licence
MIT
first seen
2026-06-03
last seen
2026-07-01
releases · 30d
0
github stars
17 reported
short id

Chaixueyuan/weapp-agent-mcp is an MCP server distributed on github, maintained by Chaixueyuan, tracked here since June 2026. It has shipped 9 releases and exposes 15 tools. Tools include mp_callWx, mp_currentPage, mp_diagnoseConnection, mp_ensureConnection, mp_evaluate, mp_generateScenarioReport, and 9 more. Its composite risk grade is A — an inferred review prompt computed from observed signals, not a verdict.

what we found

Reading the source raised 2 review prompts — dangerous code and exfiltration combo — each a pattern worth a human look rather than a finding of fault.

Its 15 tools appear to reach filesystem and network, inferred from tool names, descriptions and input schemas rather than from observed behaviour.

full security breakdown →

tools

15
  • mp_callWx – 调用微信小程序 API 方法(如 wx.showToast)
  • mp_currentPage – 获取当前页面信息(路径、查询参数、尺寸和滚动位置),withData 为 true 时额外返回页面数据
  • mp_diagnoseConnection – 只诊断当前连接目标,不启动 IDE、不修改项目状态
  • mp_ensureConnection – 确保自动化会话就绪,是连接链路默认入口;失败后再按返回指引诊断或恢复
  • mp_evaluate – 向小程序 AppService 注入并执行函数代码,适合做显式运行时读取
  • mp_generateScenarioReport – 执行 scenario 并输出 markdown 报告;可选写入 outputPath,适合产出轻量回归测试记录,并可引用截图路径
  • mp_getLogs – 获取小程序控制台日志,支持按 type、contains、since、limit 过滤,并返回日志监听状态(如 listenerAttached、lastLogAt、sessionId)
  • mp_healthCheck – 聚合连接、页面、项目路径和日志监听状态,判断当前是否健康、是否需要恢复
  • mp_listProjects – 列出微信开发者工具中的最近项目,方便选择项目目录
  • mp_navigate – 在小程序内导航,支持 navigateTo、redirectTo、reLaunch、switchTab 或 navigateBack
  • mp_pollUntil – 轮询 AppService 条件,命中后可执行动作并采集前后状态快照
  • mp_recoverConnection – 按标准顺序执行恢复,并返回恢复动作、恢复前后状态与最新 health
  • mp_runScenario – 按顺序执行一组最小测试步骤,当前支持 navigate、tap、input、waitRoute、expect*、snapshot、getLogs、screenshot
  • mp_screenshot – 捕获屏幕截图并返回(或保存到磁盘)
  • mp_setDefaultProject – 设置默认的小程序项目路径,设置后下次连接会自动使用该项目

release cadence · 90d

0 releases

No releases yet.

recent releases

last 9
version date src
v0.4.8 2026-07-01 github
v0.4.7 2026-06-05 github
v0.4.6 2026-06-05 github
v0.4.5 2026-05-21 github
v0.4.4 2026-05-19 github
v0.4.3 2026-05-14 github
v0.4.0 2026-05-12 github
v0.3.1 2026-04-17 github
v0.3.0 2026-04-15 github

view all →