migrate-wagmi-metamask-connector

migrate-wagmi-metamask-connector is a skill for Cursor from MetaMask/metamask-connect-cursor-plugin. It costs 39 tokens per session (2,584 once invoked), scanned A, original, MIT.

A migration guide for updating a wagmi application from the older MetaMask SDK connector to the newer MetaMask Connect EVM connector. Wagmi is a library for connecting web applications to cryptocurrency wallets.

In plain words
What is it for?
Use it to install the new peer dependency, remove the old SDK, rename settings, and update MetaMask wallet connection code.
Why use it?
It explains the breaking dependency, configuration, and option changes that can cause errors after upgrading wagmi.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

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

Good fit Use it to install the new peer dependency, remove the old SDK, rename settings, and update MetaMask wallet connection code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector
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.

Any agent
npx skills add MetaMask/metamask-connect-cursor-plugin --skill migrate-wagmi-metamask-connector
Clone the repo
git clone --depth 1 https://github.com/MetaMask/metamask-connect-cursor-plugin

Made for: 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 migrate-wagmi-metamask-connector

README.md
[![agentmods](https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector/github.svg)](https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector)
Your own site
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector/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 migrate-wagmi-metamask-connector

Your own site · 80×15
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/migrate-wagmi-metamask-connector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,584 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.00039 $0.02584
Opus 5 $0.00019 $0.01292
Sonnet 5 $0.00008 $0.00517
Haiku 4.5 $0.00004 $0.00258

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

Security

Grade A, and why

migrate-wagmi-metamask-connector 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 12d 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.

skills/migrate-wagmi-metamask-connector/SKILL.md · 280 lines

How it starts

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

Migrate Wagmi MetaMask Connector to @metamask/connect-evm

When to use

  • Upgrading a wagmi project from @wagmi/connectors v6.x/v7.x (which bundled @metamask/sdk) to v8.x+ / wagmi >= 3.6 (which uses @metamask/connect-evm)
  • You see errors like Cannot find module '@metamask/sdk' after updating wagmi
  • You want to adopt the new MetaMask Connect SDK in an existing wagmi app
  • Consumer is migrating to the latest wagmi version that includes the MetaMask connector refactor (PR #4960)

Breaking Change Summary

The MetaMask connector in wagmi has been completely rewritten. The underlying SDK changed from @metamask/sdk to @metamask/connect-evm. The connector now dynamically imports @metamask/connect-evm instead of bundling @metamask/sdk.

Key impacts:

  • New optional peer dependency: @metamask/connect-evm must be installed explicitly, at a version inside wagmi's declared peer range (check npm info @wagmi/connectors peerDependencies — currently ^1.3.0)
  • Old dependency @metamask/sdk should be removed
  • Configuration parameter names changed (dappMetadatadapp, useDeeplinkmobile.useDeeplink)
  • Several deprecated SDK-specific options are removed entirely
  • Internal provider type changed from SDKProvider to EIP1193Provider

Workflow

Step 1: Update Dependencies

Remove the old SDK and install the new one:

# npm
npm uninstall @metamask/sdk
npm install @metamask/connect-evm

# pnpm
pnpm remove @metamask/sdk
pnpm add @metamask/connect-evm

# yarn
yarn remove @metamask/sdk
yarn add @metamask/connect-evm

Then update wagmi packages to the latest:

npm install wagmi@latest @wagmi/core@latest @wagmi/connectors@latest

Step 2: Update MetaMask Connector Configuration

Before (old @metamask/sdk options):
import { metaMask } from 'wagmi/connectors'

metaMask({
  dappMetadata: {
    name: 'My Dapp',
    url: 'https://mydapp.com',
  },
  useDeeplink: true,
  logging: { sdk: false },
  // These SDK-specific options are REMOVED:
  forceDeleteProvider: false,
  forceInjectProvider: false,
  injectProvider: false,
})

Read the full file on GitHub · 280 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. 12d ago First seen · 280 lines · 39 tokens per session scan A 682f23a35ed9

Subscribe to this mod's changes

migrate-wagmi-metamask-connector is a skill published in the GitHub repository MetaMask/metamask-connect-cursor-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 2,584 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 skills, from other repositories

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens

adopting-generated-api-types

Use when migrating frontend code from manual API client calls (api.get, api.create, api.surveys.get, api.dashboards.list, new ApiRequest()) and handwritten TypeScript interfaces to generated API functions and types. Triggers on files importing from lib/api, files with api.get . , manual interface definitions that…

PostHog/posthog · 131 tokens

dapp-frontend-patterns

Use when building dApp frontends with wagmi v2 and viem. Covers useReadContract, useWriteContract, useSimulateContract, useWaitForTransactionReceipt, wallet connection (RainbowKit), chain switching, and ENS resolution.

ccashwell/evm-cortex · 56 tokens

scaffold-eth-patterns

Use when building with Scaffold-ETH 2. Covers project structure, custom hooks (useScaffoldReadContract, useScaffoldWriteContract), debug page, deploying contracts, hot reload, and wagmi integration.

ccashwell/evm-cortex · 50 tokens

crypto-market-dashboard-guide

Guide to building a real-time crypto market dashboard with Next.js, React, and TradingView charts. Features multi-chain portfolio tracking, DeFi position monitoring, price alerts, and social sentiment integration. Production-ready dashboard template.

nirholas/three.ws · 49 tokens

ritual-dapp-frontend

Skill "ritual-dapp-frontend" from OpenCoven/coven, covering ritual dapp frontend skill, when to use, tech stack, quick start pattern and 1. setup chain & providers.

OpenCoven/coven · 0 tokens