Skip to content

v0.2.0 — Phase 1(OCR 融合感知 + 校验工具集 + 多设备并行)

Choose a tag to compare

@expoli expoli released this 10 Aug 00:34
· 16 commits to master since this release

Android Phone MCP Server v0.2.0(阶段 1 通用性)

在 v0.1.0(Phase 0,12 工具)基础上补齐融合感知与校验工具。

16 个 MCP 工具(12→16)

list_devices get_device_info get_screen get_screen_hash tap swipe scroll_page type_text scroll_until open_app open_settings press_key + wait_for verify_element diff_state smart_scroll

新增能力

  • OCR 融合感知:树失效(Flutter/Unity/游戏)自动 OCR 兜底(rapidocr_onnxruntime[ocr] extra 可关);ocr- 伪元素共享 id 空间;tap 前重确认位置(OCR_STALE)
  • 校验工具:wait_for(出现/消失/超时)、verify_element(结构化布尔)、diff_state(stable-id diff)、smart_scroll(滚动聚合 + OCR 感知)
  • 多设备并行:per-serial 锁,并发调用互不串扰

质量

  • 114 单测 + 15 真机探针全绿(OPPO PKT110 / Android 16)
  • 代码评审 2 轮闭环(BLOCKER 修复后 PASS)

安装

pip install android-phone-mcp[ocr]   # PyPI 发布后;ocr extra 含识别引擎