Base mcp

From aaronjmars/aeon · View interactive version

Base mcp is an AI agent skill from the GitHub repository aaronjmars/aeon. Access a Base Account via the Base MCP server (mcp.base.org) - wallet, portfolio, sending, swapping, signing, x402 payments, batched calls, and transaction history.

How to use this skill

Skill file

Base MCP

${var} - empty = wallet snapshot (address, portfolio, last 7 days of activity). history[:N] = last N transactions (default 10). Anything else = a read-only question about the account, answered from the MCP reads. Never sends, swaps, signs, pays, or batches on an Aeon run.

Aeon runs (scheduled or dispatched)

The rest of this file is Base's upstream skill, written for a live chat. An Aeon run has no user to talk to, so these rules override it:

1. Read

Call the Base MCP tools (mcp__base__*; discover them from the server, don't assume names) for:

For a free-form ${var} question, make only the reads that answer it.

If no mcp__base__* tool is callable, the server is not connected (or MCP_BASE_TOKEN is missing and the workflow skipped MCP with a ::warning::). Report BASE_MCP_NOT_CONNECTED, notify once pointing the operator at the dashboard MCP tab, and stop. If tools return 401/invalid-token, report BASE_MCP_AUTH_STALE and ask the operator to reconnect. Don't retry the same call more than twice.

2. Compare

Read the previous run's output at output/.chains/base-mcp.md if it exists and pull its Snapshot: line. Something changed when any of these holds:

3. Notify

One ./notify -f - <<'EOF' ... EOF call per run, only when something changed (step 2) or ${var} was set:

No change on an empty-var run = no notify; the final output still carries the full snapshot.

4. Result record

This skill is read-only: the workflow writes the ### base-mcp log entry and output/.chains/base-mcp.md from your final output, so don't append to memory/logs/ yourself. End the final output with:

### base-mcp
- Branch: snapshot | history | question | refused
- Result: BASE_MCP_OK | BASE_MCP_NO_CHANGE | BASE_MCP_REFUSED | BASE_MCP_NOT_CONNECTED | BASE_MCP_AUTH_STALE | BASE_MCP_ERROR
- Snapshot: address=0x… value=$… tokens=N last_tx=<ISO time or none>

[!IMPORTANT]

## Run onboarding at the start of every conversation that touches Base MCP (chat surfaces only - Aeon runs skip it, see above)

Including conversations that jump straight to a plugin topic. Onboarding is short — see below.

Detection

The Base MCP exposes its tools to the harness when connected. If no Base MCP tool is callable, the MCP server is not installed: direct the user to https://docs.base.org/ai-agents/quickstart (or load references/install.md for app-specific steps) and stop.

If Base MCP tools are available, load references/tone.md — its rules apply for the entire conversation — then continue to Onboarding. If — and only if — sibling files aren't readable (e.g. you were handed just this SKILL.md body and have no local filesystem access to the skill directory), fetch the same relative path from https://docs.base.org/ai-agents/skills/references/tone.md using the web_request tool from Base MCP. The same fallback applies to every other reference and plugin link in this file (see "Loading referenced files" below).

Onboarding

Keep it short. Do this once per session, before doing real work:

  1. Briefly mention what's available — one or two sentences. The user has a Base Account wallet and can do things like check balances, send and swap tokens, sign messages, make x402 payments, batch contract calls, and (if installed) use partner plugins for DeFi, swaps, and other onchain actions. Do not enumerate every tool — the agent discovers tools and plugins directly from the MCP.
  1. Show this disclaimer verbatim before proceeding:

> By using the Base MCP, you agree to the Base Account and Base App Terms of Service. Plugins available in the Base repo are authored by Base, not by the third-party protocols they reference.

  1. Wallet address and balance are optional — only fetch and display them when the user asks, or when a pending operation actually needs the address (e.g., a write call, a position lookup). Don't volunteer a wallet dump up front.

Tools

The Base MCP advertises its own tool catalog to the harness. Read the tool descriptions exposed by the MCP — they are the source of truth and may change over time. Do not assume a fixed list; do not preload a tool catalog from this skill.

Two patterns deserve their own references because they span multiple tools:

| Topic | Reference |

|-------|-----------|

| Approval flow (for any write tool that returns an approval URL) | references/approval-mode.md |

| Batched contract calls (EIP-5792) | references/batch-calls.md |

| Custom / non-native plugins and the web_request allowlist | references/custom-plugins.md |

| Platform install steps | references/install.md |

| Tone and language rules | references/tone.md |

Loading referenced files

Plugins

Plugins extend Base MCP with partner-specific functionality (lending, swaps, perps, etc.). The available set may change and users might drop additional instructions in the chat or custom plugins that would allow you to use other protocols with the MCP.

Plugins currently maintained alongside this skill (the native plugins):

| Plugin | Reference |

|--------|-----------|

| Morpho | plugins/morpho.md |

| Moonwell | plugins/moonwell.md |

| Uniswap | plugins/uniswap.md |

| Avantis (hybrid) | plugins/avantis.md |

| Virtuals | plugins/virtuals.md |

| Aerodrome (CLI-only) | plugins/aerodrome.md |

| Bankr | plugins/bankr.md |

Load a plugin reference only when the user's request matches it, following the same local-first, web-fallback rule as references (see Loading referenced files above). For a plugin's own external tools, defer to the plugin file first, then to any CLI help, API schema, or MCP tool descriptions it explicitly tells you to use.

Native plugins vs. custom / user-supplied plugins

Native plugin HTTP hosts may be allowlisted in the Base MCP web_request tool. Aerodrome is CLI-only and requires a harness with shell access. Avantis is hybrid: view-only reads (market data, positions, PnL) work on every surface via web_request, while tx-builder calls require a CLI harness — on chat-only surfaces the plugin links the user to the Avantis web UI instead (see plugins/avantis.md). Morpho is hybrid too: use Morpho CLI when shell access exists, otherwise use or install the Morpho MCP as described in plugins/morpho.md. Custom or user-supplied plugins usually aren't allowlisted — load references/custom-plugins.md for the decision tree on which HTTP path to use (harness HTTP tool vs. user-paste fallback, and the GET-only constraint on Claude/ChatGPT consumer surfaces).

Installation

npx skills add base/skills --skill base-mcp
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.