Skip to content

chore: bump @metamask/client-mcp-core to 0.16.1 - #48494

Merged
cryptotavares merged 1 commit into
mainfrom
cryptotavares/bump-client-mcp-core-0.16.1
Dec 4, 2026
Merged

cryptotavares merged 1 commit into
mainfrom
cryptotavares/bump-client-mcp-core-0.16.1

Conversation

@cryptotavares

@cryptotavares cryptotavares commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Summary: Bumps the dev-only @metamask/client-mcp-core from 0.16.0 to 0.16.1. On the Extension, mm <command> --help prints help instead of running the command, and mm screenshot --selector --timeout waits for a late element. Refs stay stamped after a navigation. No app or test code changes.

Follows #48425 (0.16.0). Sibling skill PR: MetaMask/skills#328.

What changes

File Change
package.json @metamask/client-mcp-core 0.16.0 → 0.16.1 (exact pin, devDependencies)
yarn.lock client-mcp-core 0.16.1; its dependency @metamask/device-mcp ^0.9.0 → ^0.10.0 (resolves to 0.10.0). No other entries change.
test/e2e/playwright/llm-workflow/README.md The --preset note drops the version. The daemon-log example names the target (testid=…).

What 0.16.1 changes for the Extension (checked live, see Testing)

Area 0.16.0 0.16.1
mm launch --help, mm stop --help, mm click --help Runs the command (launches, stops the daemon, clicks test ID --help) Prints help, exit 0, runs nothing (#137)
mm screenshot --selector X --timeout <ms>, X appears late MM_TARGET_NOT_FOUND after 2 s Waits up to <ms> and captures (#139)
Refs and observation after a navigation Refs could fall back to role=/text=; the observation could show the old route Refs are stamped; the observation shows the new route (#131)

Decisions

Decision Why
No allow-scripts / LavaMoat policy change Both packages are dev-only. yarn allow-scripts list reports no unconfigured packages.
No change to test/e2e/playwright/llm-workflow code yarn lint:tsc and the llm-workflow jest suites pass without code changes.

Review guide

  1. package.json and yarn.lock: a version bump only (+10/−10 in the lockfile).
  2. README.md: two sentences. Both match the live run below.

Changelog

CHANGELOG entry: null

Related issues

Fixes: N/A. Core release: https://github.com/MetaMask/client-mcp-core/releases/tag/v0.16.1

Manual testing steps

  1. yarn install, then yarn webpack:tsc && yarn build:test.
  2. Run yarn mm launch --help. Check that it prints help and that no .mm-server file appears.
  3. MM_HEADLESS=true yarn mm launch --context e2e --state default, then unlock.
  4. Add an element after a few seconds with yarn mm cdp Runtime.evaluate (setTimeout). Run yarn mm screenshot --selector '<css>' --timeout 10000. Check that it captures the element.
  5. yarn mm navigate-settings --observe full. Check that the observation lists the settings test IDs.
  6. yarn mm cleanup && yarn mm stop.
Testing details

Node v26.13.1 (.nvmrc).

Check Result
yarn install --immutable exit 0
yarn dedupe --check exit 0
yarn lint:lockfile pass
yarn allow-scripts list unconfigured packages: none
yarn lint:tsc exit 0
yarn jest test/e2e/playwright/llm-workflow 13 suites, 169 tests pass
oxfmt (README), prettier (package.json) pass

Live run with the 0.16.1 mm against a 13.60.0.0 test build (headless, --context e2e --state default). .mm-server reports "version":"0.16.1". The run followed only the sibling skill (skills#328).

Command Result
mm launch --help, mm stop --help, mm click --help (no daemon) exit 0, usage, no .mm-server
mm stop --help, mm cleanup --help (daemon up) exit 0; mm status shows the same daemon PID
mm frobnicate exit 2, MM_INVALID_INPUT
screenshot --selector '#late' --timeout 10000, element added after 4 s exit 0, 4.26 s
screenshot --selector '#late', same injection exit 4, MM_TARGET_NOT_FOUND, matched 0 elements after 2000ms, 2.18 s
navigate-home → navigate-settings --observe full (×5) 5 of 5 show the settings test IDs and no home test IDs
navigate-home --observe none, then describe-screen (×5) 16 nodes, 16 elements with data-mm-ref each time
mock-network requests --url esplora https://bitcoin-mainnet.infura.io/v3/[REDACTED]/esplora/blocks?apiKey=[REDACTED]
mm launch --state custom --preset withMultipleAccounts Warning: unknown launch flag '--preset', then MM_LAUNCH_FAILED
.mm-daemon.log POST /tool/click 200 ok=false code=MM_TARGET_NOT_FOUND testid=does-not-exist 2078ms

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Dev-only dependency and documentation updates; no production app logic or security-sensitive paths changed.

Overview
Bumps the dev-only @metamask/client-mcp-core pin from 0.16.0 to 0.16.1 in package.json and yarn.lock, which also resolves its dependency @metamask/device-mcp to 0.10.0. No extension or test source changes.

The llm-workflow README is updated to match 0.16.1 behavior: daemon log lines now document the target (e.g. testid=…), and the custom-launch note drops a stale version reference for --preset.

Downstream, mm --help on subcommands prints usage instead of executing the command, mm screenshot --selector --timeout honors the wait window for late elements, and refs/observation stay correct after navigation—behavior that lives in the bumped package, not this repo.

Reviewed by Cursor Bugbot for commit fe29d1d. Configure here.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​client-mcp-core@​0.16.0 ⏵ 0.16.198100100 +198100

View full report

@socket-security

Copy link
Copy Markdown

Warning

MetaMask internal reviewing guidelines:

  • Do not ignore-all
  • Each alert has instructions on how to review if you don't know what it means. If lost, ask your Security Liaison or the supply-chain group
  • Copy-paste ignore lines for specific packages or a group of one kind with a note on what research you did to deem it safe.
    @SocketSecurity ignore npm/PACKAGE@VERSION
Priority Alert  (click "▶" to expand/collapse) Action
Low priority
Potential code anomaly (AI signal): npm @metamask/device-mcp is 96.0% likely to have a medium risk anomaly

Notes: This module implements Hermes CDP discovery and command execution. Its main security concern is that executeVerifiedCdpCommand() connects to the discovery-provided WebSocket URL without calling the available localhost/port validation helper, allowing a malicious discovery response to trigger a connection to an unintended host. It also sends caller-supplied CDP methods and parameters, while the exported blocked-method check is not applied in this function. No credential theft or other clear malware behavior is present; severity is a security warning dependent on control of the discovery response or caller inputs.

Confidence: 0.96

Severity: 0.55

From: package.json → npm/@metamask/client-mcp-core@0.16.1 → npm/@metamask/device-mcp@0.10.0

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@metamask/device-mcp@0.10.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@metamask-ci

metamask-ci Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
Builds ready [fe29d1d]
⚡ Performance Benchmarks (Total: 🟢 14 pass · 🟡 7 warn · 🔴 4 fail)

Baseline (latest main): f693520 | Date: 11/3/2026 | Pipeline: 47146871266 | Baseline logs

Metricschrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 load_new_account(p95) [CI log]🔴 load_new_account(p95) [CI log]
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
importSrpHome
[Sentry log · main/release]
🔴 openAccountMenuAfterLogin(p95) [CI log]🟡 [CI log]

Regressions (🔴 4 failures)

Interaction Benchmarks · Samples: 5 🔴 2
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 [CI log]
🔴 load_new_account
🔴 [CI log]
🔴 load_new_account
confirmTx
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ loadNewAccount/load_new_account: +179%
  • ↑ loadNewAccount/total: +179%
  • ↓ loadNewAccount/inp: -40%
  • ↓ loadNewAccount/fcp: -41%
  • ↑ loadNewAccount/lcp: +476%
  • ↓ loadNewAccount/cls: -89%
  • ↓ confirmTx/longTaskCount: -33%
  • ↓ confirmTx/longTaskTotalDuration: -54%
  • ↓ confirmTx/longTaskMaxDuration: -19%
  • ↓ confirmTx/tbt: -66%
  • ↓ confirmTx/inp: -44%
  • ↓ confirmTx/fcp: -44%
  • ↑ confirmTx/lcp: +461%
  • ↓ confirmTx/cls: -20%
  • ↑ bridgeUserActions/bridge_load_page: +11%
  • ↓ bridgeUserActions/bridge_load_asset_picker: -14%
  • ↑ bridgeUserActions/bridge_search_token: +22%
  • ↓ bridgeUserActions/longTaskTotalDuration: -36%
  • ↓ bridgeUserActions/longTaskMaxDuration: -38%
  • ↓ bridgeUserActions/tbt: -77%
  • ↑ bridgeUserActions/total: +13%
  • ↓ bridgeUserActions/inp: -26%
  • ↓ bridgeUserActions/fcp: -44%
  • ↑ bridgeUserActions/lcp: +458%
  • ↓ bridgeUserActions/cls: -89%
  • ↑ loadNewAccount/load_new_account: +180%
  • ↑ loadNewAccount/total: +180%
  • ↓ loadNewAccount/inp: -25%
  • ↓ loadNewAccount/fcp: -64%
  • ↑ loadNewAccount/lcp: +714%
  • ↓ confirmTx/inp: -29%
  • ↓ confirmTx/fcp: -70%
  • ↑ confirmTx/lcp: +704%
  • ↑ bridgeUserActions/bridge_load_page: +330%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +64%
  • ↑ bridgeUserActions/bridge_search_token: +110%
  • ↑ bridgeUserActions/total: +146%
  • ↑ bridgeUserActions/inp: +701%
  • ↓ bridgeUserActions/fcp: -30%
  • ↑ bridgeUserActions/lcp: +719%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 bridgeUserActions/INP: p75 872ms
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
startupPowerUserHome
[Sentry log · main/release]
🟡 [CI log]🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ startupStandardHome/uiStartup: -11%
  • ↓ startupStandardHome/firstPaint: -33%
  • ↑ startupStandardHome/backgroundConnect: +35%
  • ↓ startupStandardHome/firstReactRender: -30%
  • ↓ startupStandardHome/initialActions: -64%
  • ↑ startupStandardHome/setupStore: +88%
  • ↑ startupStandardHome/longTaskCount: +43%
  • ↑ startupStandardHome/longTaskMaxDuration: +14%
  • ↓ startupStandardHome/inp: -18%
  • ↑ startupStandardHome/lcp: +375%
  • ↓ startupStandardHome/cls: -82%
  • ↓ startupStandardHome/uiStartup: -12%
  • ↓ startupStandardHome/load: -11%
  • ↓ startupStandardHome/domContentLoaded: -13%
  • ↑ startupStandardHome/domInteractive: +39%
  • ↑ startupStandardHome/backgroundConnect: +13%
  • ↑ startupStandardHome/firstReactRender: +27%
  • ↓ startupStandardHome/initialActions: -50%
  • ↓ startupStandardHome/loadScripts: -12%
  • ↑ startupStandardHome/fcp: +44%
  • ↓ startupPowerUserHome/uiStartup: -16%
  • ↓ startupPowerUserHome/domContentLoaded: -11%
  • ↑ startupPowerUserHome/domInteractive: +39%
  • ↑ startupPowerUserHome/firstReactRender: +39%
  • ↓ startupPowerUserHome/initialActions: -43%
  • ↓ startupPowerUserHome/setupStore: -80%
  • ↑ startupPowerUserHome/numNetworkReqs: +22%
  • ↑ startupPowerUserHome/inp: +146%
  • ↑ startupPowerUserHome/fcp: +30%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 startupPowerUserHome/INP: p75 464ms
  • 🟡 startupPowerUserHome/INP: p75 488ms
  • 🟡 startupPowerUserHome/LCP: p75 2.8s
User Journey Benchmarks · Samples: 5 · mock API 🔴 2
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
🟡 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total
assetDetails
[Sentry log · main/release]
🟡 [CI log]🟢 [CI log]
solanaAssetDetails
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
🔴 assetClickToPriceChart
importSrpHome
[Sentry log · main/release]
🔴 [CI log]
🔴 openAccountMenuAfterLogin
🟡 [CI log]
sendTransactions
[Sentry log · main/release]
🟡 [CI log]🟢 [CI log]
swap
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ onboardingImportWallet/confirmSrpToPwForm: +21%
  • ↑ onboardingImportWallet/pwFormToMetricsScreen: +16%
  • ↓ onboardingImportWallet/doneButtonToHomeScreen: -93%
  • ↓ onboardingImportWallet/openAccountMenuToAccountListLoaded: -74%
  • ↓ onboardingImportWallet/longTaskCount: -100%
  • ↓ onboardingImportWallet/longTaskTotalDuration: -100%
  • ↓ onboardingImportWallet/longTaskMaxDuration: -100%
  • ↓ onboardingImportWallet/tbt: -100%
  • ↓ onboardingImportWallet/total: -86%
  • ↑ onboardingNewWallet/srpButtonToPwForm: +13%
  • ↑ onboardingNewWallet/createPwToRecoveryScreen: +29%
  • ↓ onboardingNewWallet/doneButtonToAssetList: -79%
  • ↓ onboardingNewWallet/longTaskCount: -62%
  • ↓ onboardingNewWallet/longTaskTotalDuration: -71%
  • ↓ onboardingNewWallet/longTaskMaxDuration: -31%
  • ↓ onboardingNewWallet/tbt: -73%
  • ↓ onboardingNewWallet/total: -75%
  • ↑ solanaAssetDetails/assetClickToPriceChart: +326%
  • ↓ solanaAssetDetails/longTaskCount: -100%
  • ↓ solanaAssetDetails/longTaskTotalDuration: -100%
  • ↓ solanaAssetDetails/longTaskMaxDuration: -100%
  • ↓ solanaAssetDetails/tbt: -100%
  • ↑ solanaAssetDetails/total: +326%
  • ↑ solanaAssetDetails/lcp: +863%
  • ↑ solanaAssetDetails/cls: +176%
  • ↓ importSrpHome/loginToHomeScreen: -24%
  • ↑ importSrpHome/openAccountMenuAfterLogin: +768%
  • ↓ importSrpHome/homeAfterImportWithNewWallet: -98%
  • ↓ importSrpHome/longTaskCount: -26%
  • ↓ importSrpHome/longTaskTotalDuration: -47%
  • ↓ importSrpHome/longTaskMaxDuration: -48%
  • ↓ importSrpHome/tbt: -64%
  • ↓ importSrpHome/total: -65%
  • ↓ importSrpHome/inp: -17%
  • ↑ importSrpHome/lcp: +779%
  • ↑ importSrpHome/cls: +1041%
  • ↑ sendTransactions/openSendPageFromHome: +256%
  • ↑ sendTransactions/selectTokenToSendFormLoaded: +53%
  • ↑ sendTransactions/reviewTransactionToConfirmationPage: +57%
  • ↑ sendTransactions/total: +71%
  • ↑ sendTransactions/inp: +36%
  • ↑ sendTransactions/lcp: +205%
  • ↑ sendTransactions/cls: +191%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/INP: p75 208ms
  • 🟡 importSrpHome/INP: p75 256ms
  • 🟡 sendTransactions/INP: p75 272ms
  • 🔴 importSrpHome/INP: p75 776ms
  • 🟡 importSrpHome/FCP: p75 1.8s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ dappPageLoad/pageLoadTime: -60%
  • ↓ dappPageLoad/domContentLoaded: -18%
  • ↓ dappPageLoad/firstPaint: -42%
  • ↓ dappPageLoad/firstContentfulPaint: -42%
Bundle Size Diffs [🚀 Bundle size reduced!]
Status Bundle Total Diff Change
✅ background 15.04 MiB -15.68 KiB -0.10%
✅ ui 19.04 MiB -16.63 KiB -0.09%
✅ common 0 Bytes 0 Bytes 0.00%
✅ other 4.42 MiB -16.46 KiB -0.36%
✅ content scripts 3.12 MiB -32.92 KiB -1.02%
✅ unzipped 72.27 MiB -81.7 KiB -0.11%
✅ zip 22.22 MiB -11.19 KiB -0.05%

@seaona seaona left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cryptotavares
cryptotavares added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit e7fcc40 Dec 4, 2026
153 checks passed
@cryptotavares
cryptotavares deleted the cryptotavares/bump-client-mcp-core-0.16.1 branch December 4, 2026 08:57
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 4, 2026

This branch was previously deployed

1 inactive deployment
pr-comment — fe29d1dc Deployed Dec 3, 2026 by cryptotavares via identify-codeowners #92833
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size-XS team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants