Repository navigation
docs(mobile-visual-testing): update for @metamask/client-mcp-core 0.16.1 and @metamask/device-mcp 0.10.0 - #329
Merged
cryptotavares merged 3 commits intoDec 4, 2026
Conversation
…6.1 and @metamask/device-mcp 0.10.0
5 of 10 tasks
cryptotavares
marked this pull request as ready for review
December 3, 2026 16:56
seaona
approved these changes
Dec 4, 2026
cryptotavares
deleted the
cryptotavares/mobile-visual-testing-client-mcp-core-0.16.1
branch
December 4, 2026 09:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Companion Mobile PR: MetaMask/metamask-mobile#41237. Previous update: #298 (Mobile #40496).
Problem
An agent that follows the current skill expects the wrong outcome in five places:
ambiguousor label-only ref "can tap another element" (core #127). Aclicknow taps the listed node at its bounds. The other target commands refuse such a ref.--timeout abc"is dropped without an error" (feat: init swaps render and network audit skill #126). It exits 2 once a daemon runs, and 3 without one.mm type <field> """exits 4 withMM_TYPE_FAILED" (#134, device-mcp 0.10.0). It exits 0.The
cdpport order also gains the port that the consumer's launch resolved (#128).flowchart TD S["describe-screen: node ref"] --> Q{"unique testId,<br/>label or text?"} Q -->|yes| ANY["every target command"] Q -->|"no: unnamed or ambiguous: true"| T{"command?"} T -->|click| B["tap at bounds, target ends in (bounds)"] B -->|element moved| NF["MM_TARGET_NOT_FOUND, nothing tapped"] T -->|"type, wait-for, get-text,<br/>scroll-to-element, long-press"| R["MM_TARGET_NOT_FOUND, exit 4, hint"] classDef new fill:#fff3cd,stroke:#d39e00 classDef stop fill:#f8d7da,stroke:#c82333 class B new class NF,R stopYellow boxes are new. Red boxes stop the command.
What changes
repos/metamask-mobile.md,cli-reference.md,error-recovery.md)Unknown a11yRefambiguousrefs work only withclick(bounds tap,(bounds)target,MM_TARGET_NOT_FOUNDwhen moved); other commands refuse them with ahint--testidmatch or a stale reftap-coordinatesonly; the button "has no usable ref"mm click <ref>of the unnamed button, ortap-coordinateslaunchvalue: exit 2, no daemon;--timeout abc: exit 2, or 3 without a daemontype ""MM_TYPE_FAILED, field clearedtextLength: 0cdpport--metro-portorMM_METRO_PORT--metro-port, else the port the launch resolved fromMM_METRO_PORT, thenHERMES_METRO_PORT, then 8081testid=,ref=,method=, …)#137 (
mm <command> --help) needs no change: the skill never told agents to avoid--help. The browser-only changes (#125, #129, #130, #131, #138, #139) do not apply.Review: start with "Which refs work where" in
repos/metamask-mobile.md.Type of Change
Checklist
Testing
Sources and live run
v0.16.1(src/platform/mobile-platform-driver.tsbounds refs andboundsRefError,src/cli/mm.tsparseIntFlagand the help check,src/tools/launch.tsapplyHermesDefaults,src/server/request-log.ts), coreSKILL.mdat the tag, and the device-mcp 0.10.0 CHANGELOG.MM_METRO_PORT=8085and no--metro-port, thenhermes-targetsandcdp(sessionMetroPort: 8085,connected: true); unlock; hamburger menu, About, back; Explore search,typeandtype ""(exit 0,textLength: 0), back. Ambiguous and unnamed refs refused byget-text,wait-for,type,scroll-to-element,long-pressandrun-steps(exit 4 with ahint);clickon an unnamed ref returnedtarget: "a11yRef:e17 (bounds)"; error paths (exit 2, 3 and 0 for--help); daemon log targets. Android emulatorMedium_Phone_API_36.1, login screen: the samecdpport, boundsclick, refusals,type ""and--timeout abc.clickafter the element moved (code and core tests only).yarn lintpass,yarn test106/106 pass,yarn audit:skills0 errors and 134 warnings (same asmain).Known gaps (not in this PR)
wait-for --testid wallet-screentimes out on the right screen. The skill already points iOS agents toaccount-picker. Fixes: core ci(lint): Fix universal installs being accepted by default by flagging missing repo overlays #141, device-mcp add: anti-pattern helper functions in spec files #67 and fix: broken links in the PR template #68.explore-safe-areais not in the iOS tree (the skill names it as the Android Explore marker only).Additional Context
Merge this after MetaMask/metamask-mobile#41237.