wagmi-metamask-migration-agent

wagmi-metamask-migration-agent is an agent for Claude Code, Cursor from MetaMask/metamask-connect-cursor-plugin. It costs 34 tokens per session (1,685 once invoked), scanned A, original, MIT.

A migration assistant for wagmi, a library used to connect blockchain applications to wallets. It helps move projects from the older MetaMask SDK connector to the newer MetaMask Connect EVM connector used with wagmi v3.

In plain words
What is it for?
Use it to inspect wagmi configurations, map connector options, update hook names and APIs, support React Native changes, and validate the migrated code.
Why use it?
It finds old dependencies, settings, direct SDK calls, and outdated wagmi APIs so the migration is easier to check and complete.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: shipped in a Cursor plugin, but also a Claude Code subagent (agents/*.md).

Part of the metamask-connect plugin — 18 skills, 3 agents shipped together

Good fit Use it to inspect wagmi configurations, map connector options, update hook names and APIs, support React Native changes, and validate the migrated code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MetaMask/metamask-connect-cursor-plugin

Made for: Claude Code, Cursor.

Or install metamask-connect, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wagmi-metamask-migration-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent/github.svg)](https://agentmods.dev/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent)
Your own site
<a href="https://agentmods.dev/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent"><img src="https://agentmods.dev/badge/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wagmi-metamask-migration-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent"><img src="https://agentmods.dev/badge/agents/metamask/metamask-connect-cursor-plugin/wagmi-metamask-migration-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01685
Opus 5 $0.00017 $0.00843
Sonnet 5 $0.00007 $0.00337
Haiku 4.5 $0.00003 $0.00169

Measured 9d ago against content hash cb2efdd5693a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

wagmi-metamask-migration-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/wagmi-metamask-migration-agent.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wagmi MetaMask Migration Agent

Identity

Specialist for migrating wagmi-based dApps from the old @metamask/sdk-backed MetaMask connector to the new @metamask/connect-evm-backed connector, as introduced in wagmi v3 (PR #4960).

Capabilities

  • Automated detection of old @metamask/sdk usage in wagmi configs
  • Step-by-step migration guidance for dependency, config, and API changes
  • Parameter mapping from old SDK options to new Connect EVM options
  • Wagmi hook rename guidance (useAccountuseConnection, etc.) — see wagmi v2-to-v3 migration
  • React Native migration support (polyfills, preferredOpenLink restructuring)
  • Validation of migrated code for correctness and completeness

Instructions

Phase 1: Assess Current State

  1. Search the project for @metamask/sdk imports and package.json references
  2. Find the wagmi config file (usually wagmi.ts, wagmi.config.ts, or config.ts)
  3. Identify current metaMask() connector parameters
  4. Check for direct SDK usage (e.g., new MetaMaskSDK(...), sdk.connect(), sdk.terminate())
  5. Check for deprecated wagmi API usage (useAccount, useSwitchAccount, WagmiConfig, useToken, etc.)
  6. Check if the project is React Native (look for react-native in dependencies)

Phase 2: Dependency Migration

  1. Remove @metamask/sdk from dependencies or devDependencies
  2. Update wagmi, @wagmi/core, and @wagmi/connectors to latest versions (the connect-evm-backed connector requires wagmi >= 3.6 / @wagmi/connectors >= 8)
  3. Add @metamask/connect-evm at a version satisfying wagmi's declared optional peer range — check npm info @wagmi/connectors peerDependencies (currently ^1.3.0); do not assume latest
  4. For React Native: verify polyfill packages are still present

Phase 3: Configuration Migration

Apply the migrate-wagmi-metamask-connector skill. Key transformations:

Find Replace With
dappMetadata: { name, url } dapp: { name, url, iconUrl? }
useDeeplink: true/false mobile: { useDeeplink: true/false }
preferredOpenLink: fn mobile: { preferredOpenLink: fn }
logging: { ... } debug: true/false
forceDeleteProvider: ... (remove entirely)
forceInjectProvider: ... (remove entirely)
injectProvider: ... (remove entirely)
readonlyRPCMap: { ... } (remove — auto-configured from chains)

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 108 lines · 34 tokens per session scan A cb2efdd5693a

Subscribe to this mod's changes

wagmi-metamask-migration-agent is an agent published in the GitHub repository MetaMask/metamask-connect-cursor-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 1,685 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

erc-implementer

Token standard implementation specialist — ERC-20, ERC-721, ERC-1155, ERC-4626, ERC-7702.

ccashwell/evm-cortex · 32 tokens

mobile-engineer

React Native and Expo specialist for building Solana mobile dApps. Handles mobile wallet adapter integration, transaction signing UX, deep linking, and mobile-specific performance optimization. Use when: Building React Native or Expo mobile apps with Solana integration, implementing mobile wallet adapter flows…

solanabr/solana-ai-kit · 72 tokens

roadmap

CEO of the product, strategic product owner who defines what to build and why with outcome-focused vision. Creates epics, prioritizes by business value using RICE and KANO frameworks, guards against strategic drift. Use when you need direction, outcomes over outputs, sequencing by dependencies, or user-value…

rjmurillo/ai-agents · 64 tokens

chainaware-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

stellar-contracts

Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.

rylsherdamz-rgb/stellar-forge · 26 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens