Back to Qwen Code

Local patches on top of upstream mobile-next/mobile-mcp

packages/mobile-mcp/.vendored-patches.md

0.19.62.2 KB
Original Source

Local patches on top of upstream mobile-next/mobile-mcp

Vendored from: c5d7d27fd (upstream v0.0.61, main branch)

Upstream sync mechanism: git subtree pull (see scripts/sync-from-upstream.sh).

Local modifications

PatchDescriptionTouches
Rename to @qwen-code/mobile-mcpnpm package name, repository fieldpackage.json
Disable upstream telemetryFork doesn't phone home to upstream PostHogsrc/server.ts
Relative coordinate shimOpt-in 0–1000 normalized coordinates (env MOBILE_MCP_COORDINATE_SPACE)src/coord-norm.ts, src/server.ts
InstallOptions + Android toolsExtended installApp with options; added dumpUiHierarchy, pullFile, pushFile; MCP tools mobile_ui_dump, mobile_adb_pull, mobile_adb_pushsrc/robot.ts, src/android.ts, src/server.ts
getAndroidRobotFromDevice helperDRY extraction for Android-only tool device validationsrc/server.ts

When syncing upstream

After git subtree pull, expect conflicts in src/server.ts (our coord hooks + new tools) and package.json (name/repo). The coord shim (src/coord-norm.ts) is a new file and won't conflict. Backend files (android.ts, ios.ts, etc.) are only touched for the InstallOptions signature change — low conflict surface.