BOB Gateway
Teach AI agents to use BOB Gateway: swap
native BTC to and from tokens on EVM chains and Tron, and swap tokens across those
chains. The plugin bundles the Gateway MCP server with three skills in the open
Agent Skills format, so the skills also work in Cursor,
Gemini CLI, GitHub Copilot, OpenCode and other agents that read SKILL.md files.
| Skill | Use it to |
|---|---|
gateway-swap | Quote a swap, create the order, and hand the user what to sign |
gateway-order-status | Look up an order or an address's history and explain the status |
gateway-integrate | Write or review code that integrates Gateway (SDK, REST API, CLI) |
gateway-swap and gateway-order-status call the tools of the Gateway MCP server:
get_routes, get_quote, create_order, quote_and_create, register_tx,
get_order, wait_for_order, get_orders and get_max_spendable. The server is a
pass-through to the public Gateway V4 API. quote_and_create quotes and creates an
order in one call, and wait_for_order waits up to about 45 seconds for an order's
status to change, so agents make fewer calls. gateway-integrate works without the
server.
Neither the server nor the skills hold keys or sign anything. The agent prepares the order and tells the user what to sign, and the user's own wallet signs and broadcasts every transaction, token approvals included.
Install
Claude Code
The plugin installs the three skills and the MCP server:
claude plugin marketplace add bob-collective/bob-plugins
claude plugin install bob-gateway@bob
The plugin reads two environment variables when Claude Code starts:
| Variable | Default | Purpose |
|---|---|---|
GATEWAY_API_KEY | none | Integrator API key, sent as Authorization: Bearer <key> (see API key) |
BOB_GATEWAY_MCP_URL | https://mcp.gobob.xyz/mcp | Point the plugin at another Gateway MCP server |
Codex
codex plugin marketplace add bob-collective/bob-plugins --ref main
codex plugin add bob-gateway@bob
The Codex plugin connects to https://mcp.gobob.xyz/mcp without an API key. To send
one, install the skills on their own and connect the server with
--bearer-token-env-var, as Other agents shows.
Other agents
Install the skills with the skills CLI,
which knows where each agent looks for them:
npx skills add bob-collective/bob-plugins # into the current project
npx skills add bob-collective/bob-plugins -g -a codex # for one agent, user-wide
Or copy the directories in skills/ into .agents/skills/ in your
project. Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode all read that
directory.
Then connect the MCP server: streamable HTTP at https://mcp.gobob.xyz/mcp, with
an optional Authorization: Bearer <key> header. Without a key, leave the header
(or Codex's --bearer-token-env-var) out.
Codex
codex mcp add bob-gateway --url https://mcp.gobob.xyz/mcp --bearer-token-env-var GATEWAY_API_KEY
Cursor — .cursor/mcp.json in the project, or ~/.cursor/mcp.json:
{
"mcpServers": {
"bob-gateway": {
"url": "https://mcp.gobob.xyz/mcp",
"headers": { "Authorization": "Bearer ${env:GATEWAY_API_KEY}" }
}
}
}
Gemini CLI — .gemini/settings.json in the project, or ~/.gemini/settings.json:
{
"mcpServers": {
"bob-gateway": {
"httpUrl": "https://mcp.gobob.xyz/mcp",
"headers": { "Authorization": "Bearer ${GATEWAY_API_KEY}" }
}
}
}
GitHub Copilot — .mcp.json in the workspace root, or ~/.copilot/mcp-config.json:
{
"mcpServers": {
"bob-gateway": {
"type": "http",
"url": "https://mcp.gobob.xyz/mcp",
"headers": { "Authorization": "Bearer ${GATEWAY_API_KEY}" }
}
}
}
Claude Code without the plugin
claude mcp add --transport http bob-gateway https://mcp.gobob.xyz/mcp \
--header "Authorization: Bearer $GATEWAY_API_KEY"
Any other agent: add a streamable HTTP MCP server named bob-gateway with the same
URL and header.
API key
GATEWAY_API_KEY is an optional 32-character integrator API key. With it, the
gateway applies that integrator's pricing to the orders; every tool works without
it. Request one from gateway@gobob.xyz, and set it in the environment your agent
starts from, never in chat.
create_order and quote_and_create create a real order, and register_tx
broadcasts a Bitcoin transaction that cannot be undone. Keep all three behind your
agent's tool-approval prompt.