22title : Build with AI
33sidebar_label : Build with AI
44toc_max_heading_level : 2
5- description : ' Build MetaMask Embedded Wallets integrations faster using AI coding assistants, Cursor, Claude, Codex, Antigravity, and more .'
5+ description : ' Set up the MetaMask Embedded Wallets skill and MCP server in Cursor, Claude, Codex, Antigravity, and other AI coding assistants .'
66image : ' img/metamaskog.jpg'
77keywords :
88 [ai, cursor, claude, codex, antigravity, mcp, llm, coding assistant, embedded wallets, web3auth]
99---
1010
11- import SkillContent from ' @site/src/components/SkillContent'
11+ import Tabs from ' @theme/Tabs'
12+ import TabItem from ' @theme/TabItem'
1213
13- Speed up MetaMask Embedded Wallets integrations by giving your AI coding assistant access to the documentation and SDK reference information .
14+ Give your AI assistant Embedded Wallets context in two steps. Use ** both ** together for the best results .
1415
15- You'll set up the following:
16+ | | Skill | MCP server |
17+ | ------- | --------------------------------------------------- | ---------------------------------- |
18+ | Role | How to choose SDKs, auth, and avoid common mistakes | Live docs, examples, and SDK types |
19+ | Install | One command (step 1) | Per-tool config (step 2) |
1620
17- - ** Skill** : Guides your AI assistant on how to reason about the SDK (for example, architecture, framework-specific considerations, key derivation rules, and common pitfalls). There's no code in the skill; the MCP provides that.
18- - ** MCP server** : Provides real-time access to documentation search, code examples, and SDK types.
21+ ## 1. Install the skill
1922
20- ## Skill
21-
22- The Skill guides your AI assistant by providing a mental model for MetaMask Embedded Wallets.
23- It includes SDK selection logic, key derivation rules, authentication concepts, platform quirks,
24- and common mistakes that aren't obvious from the docs alone.
25- The Skill contains no code. The MCP server provides up-to-date code examples and implementation references.
26-
27- :::tip
28- For the best experience, use the MCP server alongside the skill so that your LLM can fetch live
29- docs and examples rather than relying on static text.
30- :::
31-
32- ### Universal install (recommended)
33-
34- Run the following in your project directory:
23+ Run this in your project directory:
3524
3625``` bash
3726npx skills add web3auth/skill
3827```
3928
40- The skills CLI detects your active AI agent and installs to the correct directory automatically.
41- Works with Cursor, Claude Code, Copilot, Cline, Codex, Antigravity, and 40+ more agents.
42- See the [ web3auth/skill README] ( https://github.com/Web3Auth/skill ) for global and per-agent install options.
29+ The CLI detects your AI agent (Cursor, Claude Code, Codex, Antigravity, and 40+ others) and installs to the right folder.
30+ See the [ web3auth/skill README] ( https://github.com/Web3Auth/skill ) for global or per-agent options.
4331
44- ### Manual install
45-
46- If you prefer to install the skill without the CLI, use the following per-tool instructions.
47-
48- ** Cursor**
49-
50- ``` bash
51- npx skills add web3auth/skill -a cursor
52- ```
32+ ## 2. Connect the MCP server
5333
54- Or copy the skill directly into your project:
34+ Add the [ Embedded Wallets MCP server] ( https://github.com/Web3Auth/web3auth-mcp ) so your assistant can search docs and fetch examples.
35+ All configs use this URL: ` https://mcp.web3auth.io `
5536
56- ``` bash
57- npx degit Web3Auth/web3auth-mcp/skills/web3auth .cursor/skills/web3auth
58- ```
59-
60- Cursor picks up each ` SKILL.md ` under ` .cursor/skills/<skill-name>/ ` automatically and activates
61- it when relevant.
62-
63- ** Claude Code CLI**
64-
65- ``` bash
66- npx skills add web3auth/skill -a claude-code
67- ```
68-
69- ** Antigravity**
70-
71- ``` bash
72- npx skills add web3auth/skill -a antigravity
73- ```
37+ <Tabs groupId = " ai-tool" >
38+ <TabItem value = " cursor" label = " Cursor" default >
7439
75- Or copy the skill directly into your project :
40+ Open ** Cursor Settings → Tools & Integrations → MCP ** and add :
7641
77- ``` bash
78- npx degit Web3Auth/web3auth-mcp/skills/web3auth .agent/skills/web3auth
42+ ``` json
43+ {
44+ "mcpServers" : {
45+ "web3auth" : {
46+ "url" : " https://mcp.web3auth.io"
47+ }
48+ }
49+ }
7950```
8051
81- Antigravity picks up skills inside ` .agent/skills/ ` automatically.
82- For global installation across all projects, use ` ~/.gemini/antigravity/skills/ ` instead.
83-
84- ** Claude Desktop and other tools**
85-
86- Open ** Claude Desktop → Settings → Custom Instructions** (or your tool's equivalent system prompt
87- or custom instructions field) and paste the skill content below directly.
88-
89- <details >
90- <summary >View ` SKILL.md ` file</summary >
91-
92- <SkillContent />
93-
94- </details >
95-
96- ## MCP server
97-
98- The [ MetaMask Embedded Wallets MCP server] ( https://github.com/Web3Auth/web3auth-mcp ) connects your AI coding
99- assistant directly to the documentation. It provides five tools:
100-
101- | Tool | What it does |
102- | ------------------- | ---------------------------------------------------- |
103- | ` search_docs ` | Search documentation and example projects |
104- | ` get_doc ` | Fetch the full content of any doc page |
105- | ` get_example ` | Fetch complete source code of an integration example |
106- | ` get_sdk_reference ` | Fetch SDK types and hooks from the open-source repos |
107- | ` search_community ` | Search the MetaMask Builder Hub for real user issues |
108-
109- ### Cursor
110-
111- Select the following button to install the MCP server in Cursor automatically:
112-
11352<p >
53+ or click the button below:
54+
11455 <a
11556 href = " https://cursor.com/en/install-mcp?name=web3auth&config=eyJ1cmwiOiJodHRwczovL21jcC53ZWIzYXV0aC5pbyJ9"
11657 target = " _blank"
@@ -123,27 +64,14 @@ Select the following button to install the MCP server in Cursor automatically:
12364 </a >
12465</p >
12566
126- You can also add it manually. Open ** Cursor Settings → Tools & Integrations → MCP** and add:
127-
128- ``` json
129- {
130- "mcpServers" : {
131- "web3auth" : {
132- "url" : " https://mcp.web3auth.io"
133- }
134- }
135- }
136- ```
137-
138- ### Claude Code CLI
139-
140- Run the following in your terminal:
67+ </TabItem >
68+ <TabItem value = " claude-code" label = " Claude Code" >
14169
14270``` bash
14371claude mcp add --transport http web3auth https://mcp.web3auth.io
14472```
14573
146- Or add manually to your project's ` claude.json ` :
74+ Or add to your project's ` claude.json ` :
14775
14876``` json
14977{
@@ -155,14 +83,15 @@ Or add manually to your project's `claude.json`:
15583}
15684```
15785
158- ### Claude Desktop
86+ </TabItem >
87+ <TabItem value = " claude-desktop" label = " Claude Desktop" >
15988
160- Open your Claude Desktop configuration file:
89+ Edit your config file:
16190
16291- ** macOS** : ` ~/Library/Application Support/Claude/claude_desktop_config.json `
16392- ** Windows** : ` %APPDATA%\Claude\claude_desktop_config.json `
16493
165- Add the server to the ` mcpServers ` section :
94+ Add the server, then restart Claude Desktop :
16695
16796``` json
16897{
@@ -174,17 +103,14 @@ Add the server to the `mcpServers` section:
174103}
175104```
176105
177- Restart Claude Desktop and ask: _ "Search MetaMask Embedded Wallets docs for React quick start"_ to verify the connection.
178-
179- ### Antigravity
106+ </TabItem >
107+ <TabItem value = " antigravity" label = " Antigravity" >
180108
181- Open your MCP configuration file :
109+ Edit your MCP config :
182110
183111- ** macOS/Linux** : ` ~/.config/antigravity/mcp.json `
184112- ** Windows** : ` %APPDATA%\antigravity\mcp.json `
185113
186- Add the server to the ` mcpServers ` section:
187-
188114``` json
189115{
190116 "mcpServers" : {
@@ -195,17 +121,12 @@ Add the server to the `mcpServers` section:
195121}
196122```
197123
198- Antigravity automatically reloads MCP configuration changes. You don't need to restart it.
199-
200- ### Codex CLI
124+ Antigravity reloads MCP changes automatically.
201125
202- For Codex CLI or any stdio-only agent, use [ mcp-remote] ( https://github.com/geelen/mcp-remote ) to bridge the HTTP endpoint:
126+ </TabItem >
127+ <TabItem value = " other" label = " Codex / other" >
203128
204- ``` bash
205- npm install -g mcp-remote
206- ```
207-
208- Then add to your agent's configuration:
129+ For stdio-only agents, bridge the HTTP endpoint with [ mcp-remote] ( https://github.com/geelen/mcp-remote ) :
209130
210131``` json
211132{
@@ -218,43 +139,44 @@ Then add to your agent's configuration:
218139}
219140```
220141
221- ## Static docs (llms.txt)
142+ </TabItem >
143+ </Tabs >
222144
223- If your AI tool doesn't support MCP yet, use the static documentation file instead. This gives your AI
224- assistant the full MetaMask Embedded Wallets documentation as a single text file.
145+ ## 3. Verify and start building
225146
226- :::warning
227- The static file is a snapshot and may not include the latest updates. Use the MCP server when possible
228- for always-current docs.
229- :::
147+ Ask your assistant:
230148
231- Add the following URL as a custom doc source in your tool's settings, or paste it directly into your AI chat:
149+ > Search MetaMask Embedded Wallets docs for React quick start
232150
233- ```
234- https://docs.metamask.io/llms-embedded-wallets-full.txt
235- ```
236-
237- For tools that support the [ llms.txt spec] ( https://llmstxt.org/ ) and can index docs automatically, add:
238-
239- ```
240- https://docs.metamask.io/llms-embedded-wallets.txt
241- ```
242-
243- ## Start building
151+ If MCP is connected, it fetches live docs and examples.
152+ The skill keeps SDK choice and wallet-address pitfalls in check.
244153
245- Once the skill and MCP are set up, ask your AI assistant directly. Good starting prompts include :
154+ Good follow-up prompts:
246155
247156- _ "Add MetaMask Embedded Wallets to my React app with Google login."_
248157- _ "Set up social login wallets in my Next.js app using Wagmi."_
249158- _ "Integrate embedded wallets in my Flutter app."_
250159- _ "Why are my users getting different wallet addresses after I changed the login method?"_
251160
252- The MCP server will search the docs and fetch real working examples. The skill will ensure the correct SDK is
253- chosen and common pitfalls are avoided before a line of code is written.
254-
255161:::tip
162+ Use planning mode (where available) for your first prompt.
163+ Review the plan before generating code to catch config mistakes that can change wallet addresses in production.
164+ :::
256165
257- Use planning mode (where available) for your initial prompt. Review the plan before generating code; this
258- catches architecture mistakes early and avoids config errors that would change wallet addresses in production.
166+ ## No MCP support?
167+
168+ Add this URL as a custom doc source, or paste it into your chat:
169+
170+ ```
171+ https://docs.metamask.io/llms-embedded-wallets-full.txt
172+ ```
173+
174+ For tools that support [ llms.txt] ( https://llmstxt.org/ ) :
175+
176+ ```
177+ https://docs.metamask.io/llms-embedded-wallets.txt
178+ ```
259179
180+ :::note
181+ Static files are snapshots. Prefer the MCP server when your tool supports it.
260182:::
0 commit comments