Skip to content

Commit ea9c8a0

Browse files
youssefeaCodex
andauthored
docs(agents): sync base-mcp skill and native plugins (#1653)
Co-authored-by: Codex <codex-noreply@coinbase.com>
1 parent 63d6e5d commit ea9c8a0

57 files changed

Lines changed: 6622 additions & 879 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/agents/guides/batch-calls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Repay all my Moonwell debt
6060

6161
<CardGroup cols={2}>
6262
<Card title="Native plugins" icon="puzzle-piece" href="/agents/plugins/native">
63-
Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr plugin overview.
63+
Overview of the native plugins that prepare calls for Base MCP.
6464
</Card>
6565
<Card title="Sign messages" icon="pen-nib" href="/agents/guides/sign-messages">
6666
Sign individual messages and typed data.

docs/agents/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ sequenceDiagram
6969
Step-by-step guides for sending, swapping, checking balance, and more.
7070
</Card>
7171
<Card title="Plugins" icon="puzzle-piece" href="/agents/plugins">
72-
How the Base MCP skill works and how plugins like Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr extend it.
72+
How the Base MCP skill works and how native and custom protocol plugins extend it.
7373
</Card>
7474
<Card title="Custom plugins" icon="puzzle-piece" href="/agents/plugins/custom-plugins">
7575
Build your own plugin that produces unsigned calldata and executes through Base MCP's send_calls.

docs/agents/llms-full.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- Sign EIP-191 personal messages and EIP-712 typed data (SIWE, permits, protocol auth)
1313
- Batch multiple contract calls into a single approval via `send_calls`
1414
- Pay for x402-enabled API requests with USDC on Base or Base Sepolia
15-
- Extend with protocol plugins (Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, Bankr) or your own custom plugin
15+
- Extend with protocol plugins (Aerodrome, Avantis, Balancer, Bankr, Bitrefill, Brickken, Clawnch, Flaunch, GMGN, Hydrex, KyberSwap, Moonwell, Morpho, o1.exchange, OpenSea, Printr, Uniswap, Venice, Virtuals, YO) or your own custom plugin
1616
- Append Builder Codes to transactions for onchain attribution and revenue share
1717

1818
## Navigation (with brief descriptions)
@@ -33,11 +33,27 @@
3333
- [Make x402 Payments](https://docs.base.org/agents/guides/x402-payments.md) — `initiate_x402_request` + `complete_x402_request`: pay for x402-enabled HTTPS API requests with a user-approved USDC cap
3434

3535
### Plugins
36-
- [Native Plugins](https://docs.base.org/agents/plugins/native/index.md) — Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr plugin overview
37-
- [Moonwell](https://docs.base.org/agents/plugins/native/moonwell.md) — Supply, borrow, and claim on Moonwell using `web_request` + Base MCP; no extra MCP server required
36+
- [Native Plugins](https://docs.base.org/agents/plugins/native/index.md) — Overview of 20 native Base MCP plugins: Aerodrome, Avantis, Balancer, Bankr, Bitrefill, Brickken, Clawnch, Flaunch, GMGN, Hydrex, KyberSwap, Moonwell, Morpho, o1.exchange, OpenSea, Printr, Uniswap, Venice, Virtuals, and YO
37+
- [Aerodrome](https://docs.base.org/agents/plugins/native/aerodrome.md) — CLI-only swaps and basic-pool liquidity on Aerodrome via sugar-sdk and Base MCP `send_calls`
38+
- [Avantis](https://docs.base.org/agents/plugins/native/avantis.md) — Perpetual futures trading on Base; reads work everywhere, trade-building uses a CLI harness or Avantis UI
39+
- [Balancer](https://docs.base.org/agents/plugins/native/balancer.md) — CLI-only swaps and liquidity on Balancer through shell-driven API reads, SDK calldata building, and Base MCP `send_calls`
40+
- [Bankr](https://docs.base.org/agents/plugins/native/bankr.md) — Discover new Base token launches through Bankr and buy selected tokens with Base MCP `swap`
41+
- [Bitrefill](https://docs.base.org/agents/plugins/native/bitrefill.md) — Buy gift cards, mobile top-ups, and eSIMs with USDC on Base using wallet sign-in and x402 payments
42+
- [Brickken](https://docs.base.org/agents/plugins/native/brickken.md) — ERC-8004 identity, reputation, and agent-token operations with Brickken prepare surfaces and Base MCP x402 approval
43+
- [Clawnch](https://docs.base.org/agents/plugins/native/clawnch.md) — Discover Base launches, buy launched tokens, and prepare non-custodial Clawnch token launches
44+
- [Flaunch](https://docs.base.org/agents/plugins/native/flaunch.md) — Prepare Base token launches through Flaunch and trade deployed Flaunch tokens with Base MCP
45+
- [GMGN](https://docs.base.org/agents/plugins/native/gmgn.md) — CLI-only swap quotes, gas-price tiers, and trending-token intelligence on Base via GMGN
46+
- [Hydrex](https://docs.base.org/agents/plugins/native/hydrex.md) — Swaps and concentrated-liquidity position management on Hydrex via prepare-server calldata and Base MCP `send_calls`
47+
- [KyberSwap](https://docs.base.org/agents/plugins/native/kyberswap.md) — Best-rate DEX aggregation through KyberSwap routes and Base MCP `send_calls` across supported EVM chains
48+
- [Moonwell](https://docs.base.org/agents/plugins/native/moonwell.md) — Supply, borrow, and claim on Moonwell using `web_request` and Base MCP; no extra MCP server required
3849
- [Morpho](https://docs.base.org/agents/plugins/native/morpho.md) — Vaults and Morpho Blue markets via Morpho CLI when shell access exists, or Morpho MCP on chat-only surfaces; prepare unsigned transactions and execute through Base MCP
50+
- [o1.exchange](https://docs.base.org/agents/plugins/native/o1-exchange.md) — Token swaps on o1.exchange through HTTP order building, unsigned transaction decoding, and Base MCP `send_calls`
51+
- [OpenSea](https://docs.base.org/agents/plugins/native/opensea.md) — NFT marketplace trading, token swaps, drops, and minting through OpenSea API or CLI and Base MCP `send_calls`
52+
- [Printr](https://docs.base.org/agents/plugins/native/printr.md) — Cross-chain token launches through Printr's HTTP API and Base MCP `send_calls`
3953
- [Uniswap](https://docs.base.org/agents/plugins/native/uniswap.md) — Swaps and LP position management on Base via the Uniswap API; no extra MCP server required
40-
- [Avantis](https://docs.base.org/agents/plugins/native/avantis.md) — CLI-only perpetual futures trading on Base via Avantis tx-builder; no extra MCP server required
54+
- [Venice](https://docs.base.org/agents/plugins/native/venice.md) — Private AI inference through the Venice API with optional Base x402 wallet funding through Base MCP
55+
- [Virtuals](https://docs.base.org/agents/plugins/native/virtuals.md) — Create and operate Virtuals AI agents, payment cards, and email identities with Base MCP SIWE login
56+
- [YO](https://docs.base.org/agents/plugins/native/yo.md) — YO vault reads, position checks, deposits, and redeems through `chain_rpc_request` and Base MCP `send_calls`
4157
- [Custom Plugins](https://docs.base.org/agents/plugins/custom-plugins.md) — Author a plugin that returns unsigned calldata for Base MCP's `send_calls` to execute under one approval
4258

4359
## Key Concepts (excerpts)

docs/agents/llms.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@
2020
- [Make x402 Payments](https://docs.base.org/agents/guides/x402-payments.md) — Pay for x402-enabled API requests with USDC using Base MCP
2121

2222
## Plugins
23-
- [Native Plugins](https://docs.base.org/agents/plugins/native/index.md) — Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr plugin overview
24-
- [Moonwell](https://docs.base.org/agents/plugins/native/moonwell.md) — Lending and borrowing on Moonwell via `web_request` and Base MCP (no extra MCP server)
23+
- [Native Plugins](https://docs.base.org/agents/plugins/native/index.md) — Overview of 20 native Base MCP plugins: Aerodrome, Avantis, Balancer, Bankr, Bitrefill, Brickken, Clawnch, Flaunch, GMGN, Hydrex, KyberSwap, Moonwell, Morpho, o1.exchange, OpenSea, Printr, Uniswap, Venice, Virtuals, and YO
24+
- [Aerodrome](https://docs.base.org/agents/plugins/native/aerodrome.md) — CLI-only swaps and basic-pool liquidity on Aerodrome via sugar-sdk and Base MCP `send_calls`
25+
- [Avantis](https://docs.base.org/agents/plugins/native/avantis.md) — Perpetual futures trading on Base; reads work everywhere, trade-building uses a CLI harness or Avantis UI
26+
- [Balancer](https://docs.base.org/agents/plugins/native/balancer.md) — CLI-only swaps and liquidity on Balancer through shell-driven API reads, SDK calldata building, and Base MCP `send_calls`
27+
- [Bankr](https://docs.base.org/agents/plugins/native/bankr.md) — Discover new Base token launches through Bankr and buy selected tokens with Base MCP `swap`
28+
- [Bitrefill](https://docs.base.org/agents/plugins/native/bitrefill.md) — Buy gift cards, mobile top-ups, and eSIMs with USDC on Base using wallet sign-in and x402 payments
29+
- [Brickken](https://docs.base.org/agents/plugins/native/brickken.md) — ERC-8004 identity, reputation, and agent-token operations with Brickken prepare surfaces and Base MCP x402 approval
30+
- [Clawnch](https://docs.base.org/agents/plugins/native/clawnch.md) — Discover Base launches, buy launched tokens, and prepare non-custodial Clawnch token launches
31+
- [Flaunch](https://docs.base.org/agents/plugins/native/flaunch.md) — Prepare Base token launches through Flaunch and trade deployed Flaunch tokens with Base MCP
32+
- [GMGN](https://docs.base.org/agents/plugins/native/gmgn.md) — CLI-only swap quotes, gas-price tiers, and trending-token intelligence on Base via GMGN
33+
- [Hydrex](https://docs.base.org/agents/plugins/native/hydrex.md) — Swaps and concentrated-liquidity position management on Hydrex via prepare-server calldata and Base MCP `send_calls`
34+
- [KyberSwap](https://docs.base.org/agents/plugins/native/kyberswap.md) — Best-rate DEX aggregation through KyberSwap routes and Base MCP `send_calls` across supported EVM chains
35+
- [Moonwell](https://docs.base.org/agents/plugins/native/moonwell.md) — Lending and borrowing on Moonwell via `web_request` and Base MCP; no extra MCP server required
2536
- [Morpho](https://docs.base.org/agents/plugins/native/morpho.md) — Lending and vault operations via Morpho CLI when shell access exists, or Morpho MCP on chat-only surfaces, executed through Base MCP `send_calls`
37+
- [o1.exchange](https://docs.base.org/agents/plugins/native/o1-exchange.md) — Token swaps on o1.exchange through HTTP order building, unsigned transaction decoding, and Base MCP `send_calls`
38+
- [OpenSea](https://docs.base.org/agents/plugins/native/opensea.md) — NFT marketplace trading, token swaps, drops, and minting through OpenSea API or CLI and Base MCP `send_calls`
39+
- [Printr](https://docs.base.org/agents/plugins/native/printr.md) — Cross-chain token launches through Printr's HTTP API and Base MCP `send_calls`
2640
- [Uniswap](https://docs.base.org/agents/plugins/native/uniswap.md) — Token swaps and LP position management on Base using the Uniswap API and Base MCP
27-
- [Avantis](https://docs.base.org/agents/plugins/native/avantis.md) — CLI-only perpetual futures trading on Base using Avantis tx-builder and Base MCP
41+
- [Venice](https://docs.base.org/agents/plugins/native/venice.md) — Private AI inference through the Venice API with optional Base x402 wallet funding through Base MCP
42+
- [Virtuals](https://docs.base.org/agents/plugins/native/virtuals.md) — Create and operate Virtuals AI agents, payment cards, and email identities with Base MCP SIWE login
43+
- [YO](https://docs.base.org/agents/plugins/native/yo.md) — YO vault reads, position checks, deposits, and redeems through `chain_rpc_request` and Base MCP `send_calls`
2844
- [Custom Plugins](https://docs.base.org/agents/plugins/custom-plugins.md) — Build your own plugin that produces unsigned calldata and executes through Base MCP's `send_calls`

docs/agents/plugins/index.mdx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,36 @@ The shape of the Base MCP skill:
3232
<Tree.File name="approval-mode.md" />
3333
<Tree.File name="batch-calls.md" />
3434
<Tree.File name="custom-plugins.md" />
35+
<Tree.File name="plugin-spec.md" />
3536
</Tree.Folder>
3637
<Tree.Folder name="plugins">
37-
<Tree.File name="morpho.md" />
38+
<Tree.File name="aerodrome.md" />
39+
<Tree.File name="avantis.md" />
40+
<Tree.File name="balancer.md" />
41+
<Tree.File name="bankr.md" />
42+
<Tree.File name="bitrefill.md" />
43+
<Tree.File name="brickken.md" />
44+
<Tree.File name="clawnch.md" />
45+
<Tree.File name="flaunch.md" />
46+
<Tree.File name="gmgn.md" />
47+
<Tree.File name="hydrex.md" />
48+
<Tree.File name="kyberswap.md" />
3849
<Tree.File name="moonwell.md" />
50+
<Tree.File name="morpho.md" />
51+
<Tree.File name="o1-exchange.md" />
52+
<Tree.File name="opensea.md" />
53+
<Tree.File name="printr.md" />
3954
<Tree.File name="uniswap.md" />
40-
<Tree.File name="avantis.md" />
41-
<Tree.File name="aerodrome.md" />
55+
<Tree.File name="venice.md" />
4256
<Tree.File name="virtuals.md" />
43-
<Tree.File name="bankr.md" />
57+
<Tree.File name="yo.md" />
4458
</Tree.Folder>
4559
</Tree.Folder>
4660
</Tree>
4761

4862
`SKILL.md` itself defines the session flow, approval handling, and plugin routing. The MCP tool descriptions are the source of truth for core tool parameters; plugin specs are loaded only when a relevant task arises, such as loading `plugins/morpho.md` for a Morpho vault request.
4963

50-
Read the canonical file at [`skills/base-mcp/SKILL.md`](https://github.com/base/skills/blob/main/skills/base-mcp/SKILL.md).
64+
Read the canonical file at [`skills/base-mcp/SKILL.md`](https://github.com/base/skills/blob/master/skills/base-mcp/SKILL.md).
5165

5266
## How plugins extend the skill
5367

@@ -98,7 +112,7 @@ Base MCP passes the calldata to Base Account for user approval. The protocol nev
98112

99113
<CardGroup cols={2}>
100114
<Card title="Native plugins" icon="puzzle-piece" href="/agents/plugins/native">
101-
Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr — authored by the Base team and shipped with the skill.
115+
Twenty protocol plugins authored by the Base team and shipped with the skill.
102116
</Card>
103117
<Card title="Build a custom plugin" icon="code" href="/agents/plugins/custom-plugins">
104118
Write your own markdown spec for any protocol with an HTTP tx-builder, CLI, or MCP server.

docs/agents/plugins/native/aerodrome.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ The public `https://mainnet.base.org` RPC enforces a 10-call-per-batch limit and
3838

3939
## Reference
4040

41-
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/main/skills/base-mcp/plugins/aerodrome.md">
41+
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/master/skills/base-mcp/plugins/aerodrome.md">
4242
Setup, RPC compatibility patches, calldata-bridge code, swap/LP orchestration patterns, and what works vs. what doesn't on the public RPC.
4343
</Card>

docs/agents/plugins/native/avantis.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ No additional MCP server is required. View-only Avantis APIs are reached through
5959

6060
## Reference
6161

62-
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/main/skills/base-mcp/plugins/avantis.md">
62+
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/master/skills/base-mcp/plugins/avantis.md">
6363
Endpoint inventory, parameters, unit/scaling rules, batching guidance, chat-only UI fallback, and error handling.
6464
</Card>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "Balancer"
3+
description: "Swaps and liquidity on Balancer through shell-driven API reads, SDK calldata building, and Base MCP send_calls."
4+
keywords: ["Balancer plugin", "Base MCP Balancer", "Balancer swap", "Balancer liquidity", "Balancer SDK"]
5+
---
6+
7+
Balancer is an automated market maker for token swaps and liquidity provision. The plugin reads pool data and Smart Order Router quotes from the Balancer API, builds unsigned calldata with `@balancer/sdk`, and submits the resulting calls through Base MCP `send_calls`.
8+
9+
**Chains:** Base, Ethereum, Arbitrum, Optimism, and Avalanche.
10+
11+
**Operations:** pool discovery, swap quotes, swap execution, add liquidity, remove liquidity, and version-aware approval batching.
12+
13+
<Tip>
14+
**CLI-only plugin.** Balancer requires shell access for both reads and calldata building. It works in CLI harnesses such as Claude Code, Codex, and Cursor terminal, and does not run from chat-only surfaces.
15+
</Tip>
16+
17+
## Install Balancer SDK tooling
18+
19+
Use a working directory with Node available:
20+
21+
```bash
22+
npm init -y
23+
npm i @balancer/sdk viem
24+
export RPC_URL="<a Base RPC HTTPS endpoint>"
25+
```
26+
27+
The SDK simulation needs an RPC URL. The plugin spec includes the Node scripts and approval rules needed to emit Base MCP-ready calls.
28+
29+
## Try it
30+
31+
```text Swap
32+
Swap 100 USDC for WETH on Base through Balancer
33+
```
34+
35+
```text Find yield
36+
What's the best Balancer pool for ETH yield on Base?
37+
```
38+
39+
```text Add liquidity
40+
Add 500 USDC and 0.2 WETH to a Balancer pool on Base
41+
```
42+
43+
## Pattern
44+
45+
The assistant fetches Balancer SOR paths with the API, then runs the SDK script to produce `{ chain, protocolVersion, minAmountOut, calls }`. For v2 routes, the batch includes ERC-20 approval to the Balancer Vault plus the Vault call. For v3 routes, it includes ERC-20 approval to Permit2, Permit2 approval to the router, then the router call. Native ETH input omits approvals and carries ETH in `value`.
46+
47+
The emitted `calls` array maps directly to Base MCP `send_calls`. The assistant reviews output, shows the approval link, and polls `get_request_status` after approval.
48+
49+
## Reference
50+
51+
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/master/skills/base-mcp/plugins/balancer.md">
52+
Shell setup, GraphQL queries, SDK scripts, v2/v3 approval rules, and risk handling.
53+
</Card>

docs/agents/plugins/native/bankr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ The Bankr feed is unfiltered. Listed tokens are not vetted, audited, or endorsed
3838

3939
## Reference
4040

41-
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/main/skills/base-mcp/plugins/bankr.md">
41+
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/master/skills/base-mcp/plugins/bankr.md">
4242
API response shape, orchestration steps, symbol-collision and adversarial-metadata safety notes for new launches.
4343
</Card>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "Bitrefill"
3+
description: "Buy gift cards, mobile top-ups, and travel eSIMs with USDC on Base through Bitrefill."
4+
keywords: ["Bitrefill plugin", "Base MCP Bitrefill", "gift cards USDC", "mobile top-ups", "eSIM crypto"]
5+
---
6+
7+
Bitrefill turns USDC on Base into everyday digital goods inside the conversation: gift cards, mobile refills, and travel eSIMs. The default path signs in once with the user's Base wallet, searches the catalog, creates an order, pays with USDC, then returns fulfillment details in chat.
8+
9+
**Chain:** Base mainnet.
10+
11+
**Operations:** catalog search, product details, checkout, invoice status, x402 payment, direct USDC payment for existing-account flows, and code or eSIM delivery.
12+
13+
<Tip>
14+
**Wallet sign-in and bearer credentials.** The default flow uses SIWX/SIWE with Base MCP `sign`. Redemption codes, eSIM links, JWTs, and invoice details are sensitive and should only be shown when needed.
15+
</Tip>
16+
17+
## Install Bitrefill MCP for existing accounts
18+
19+
The default agent-commerce path uses Base MCP and the Bitrefill HTTP API. Existing Bitrefill account users can also connect the Bitrefill MCP:
20+
21+
```bash
22+
claude mcp add bitrefill --url https://api.bitrefill.com/mcp
23+
```
24+
25+
Keep `buy-products` out of auto-approval. The plugin also supports `npx @bitrefill/cli@latest` in shell-capable harnesses.
26+
27+
## Try it
28+
29+
```text Gift card
30+
Buy me a $25 Amazon US gift card with USDC on Base
31+
```
32+
33+
```text Browse
34+
Show me Steam gift cards available in the US
35+
```
36+
37+
```text Existing account
38+
Use my existing Bitrefill account to buy a travel eSIM
39+
```
40+
41+
## Pattern
42+
43+
Bitrefill uses Base MCP for `web_request`, `sign`, x402 payments, and direct `send` of USDC. It does not use `send_calls`. The assistant signs the SIWX payload, uses the returned JWT for catalog and checkout calls, confirms product, denomination, and total price, then pays the Base USDC x402 requirement or direct invoice destination.
44+
45+
After payment, the assistant polls status and returns fulfillment data carefully because codes and QR links are bearer credentials.
46+
47+
## Reference
48+
49+
<Card title="Full plugin spec on GitHub" icon="github" href="https://github.com/base/skills/blob/master/skills/base-mcp/plugins/bitrefill.md">
50+
Path selection, SIWX headers, x402 payments, account connector setup, and fulfillment safety notes.
51+
</Card>

0 commit comments

Comments
 (0)