Skip to main content
โ† Blog
InfrastructureSDKMCP

SDK. MCP Server.
x402 Payments.
Full Stack.

June 3, 2026 ยท 6 min read

We just shipped three things that make Agentbot a complete AI agent infrastructure platform: a TypeScript SDK, an MCP server, and real x402 micropayment integration. All MiMo-native. All open source.

1. @agentbot/sdk

A TypeScript SDK for building on Agentbot. Install it, connect, and you have full access to MiMo inference, agent management, and x402 payments.

npm install @agentbot/sdk

import { AgentbotClient } from '@agentbot/sdk'

const client = new AgentbotClient({
  baseUrl: 'https://agentbot.sh',
  apiKey: 'your-api-key',
})

// Chat with MiMo V2.5 Pro
const response = await client.chat({
  messages: [{ role: 'user', content: 'Hello' }],
  model: 'mimo-v2.5-pro',
})

// List available models
const models = await client.models()

// x402 micropayment
const result = await client.x402Pay({
  url: 'https://agentbot.sh/v1/x402/chat/completions',
  method: 'POST',
  body: { messages: [{ role: 'user', content: 'Hi' }] },
})

The SDK includes full TypeScript types for everything โ€” ChatMessage, ChatResponse, Model, Agent, and more. No guessing. No any types. Just autocomplete.

client.ts

AgentbotClient โ€” chat, models, agents, health, x402Pay

types.ts

Full TypeScript types for all API responses

x402.ts

x402 payment helpers โ€” discover, pay, check balance

mcp.ts

MCP client โ€” activate, deactivate, callTool

2. MCP Server

A standalone MCP (Model Context Protocol) server that exposes MiMo inference, model discovery, x402 payments, and health checks as tools that any MCP-compatible client can use.

# Install globally
npm install -g agentbot-mcp

# Run with MiMo key
MIMO_API_KEY=tp-ebzโ€ฆ3ou6 agentbot-mcp

# Or use with Claude Desktop / Cursor
# Add to your MCP config:
{
  "mcpServers": {
    "agentbot": {
      "command": "npx",
      "args": ["agentbot-mcp"],
      "env": {
        "MIMO_API_KEY": "tp-ebzโ€ฆ3ou6"
      }
    }
  }
}

Four tools, zero config:

chat

Send chat completions to MiMo V2.5 Pro. 1M context, reasoning.

list_models

Discover available MiMo models and capabilities.

x402_discover

Search Agentic Market for paid services. Filter by category.

health

Check Agentbot platform health โ€” main, gateway, models.

The MCP server runs on stdio โ€” standard input/output. No HTTP server. No ports. Just pipe it into any MCP client and you have MiMo inference.

3. x402 Micropayments

Every /v1/chat/completions request now supports dual authentication: API key (existing users) or x402 payment signature (Agentic Market buyers).

# No API key? Here's your 402:
curl https://agentbot.sh/v1/chat/completions

# Response: 402 Payment Required
# Header: PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Mi...

# Decoded:
{
  "x402Version": 2,
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "maxAmountRequired": "1000",  // $0.001 USDC
    "payTo": "0x451cE4B37ad54BcFCD49b8a4140C17315358EDa5",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  }]
}

Pay $0.001 USDC on Base, get MiMo V2.5 Pro inference. No account needed. No subscription. Just a wallet and a signature.

We're indexed on Agentic Market โ€” search for "Agentbot" and you'll find our inference endpoint alongside Claude, ChatGPT, and Groq. But 99% cheaper.

4. Real Tool Execution

The MCP framework now executes real tools โ€” not mocks:

websearch.search

Brave Search API with DuckDuckGo fallback

websearch.fetch_page

Fetch URL, strip HTML, extract content

context7.get_docs

Context7 API with GitHub README fallback

grep_app.search_code

GitHub code search with rate-limit handling

x402.discover_services

Agentic Market API โ€” search paid services

x402.call_paid_endpoint

Full x402 flow โ€” 402 โ†’ sign โ†’ settle

x402.check_balance

USDC balance on Base via on-chain call

Skills can register custom handlers at runtime. The MCP manager handles activation, deactivation, idle timeouts (5 minutes), and capacity limits (10 concurrent MCPs).

The Full Stack

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              @agentbot/sdk                  โ”‚
โ”‚  TypeScript client for everything below     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚           Agentbot MCP Server               โ”‚
โ”‚  MiMo tools via Model Context Protocol      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚          x402 Payment Protocol              โ”‚
โ”‚  USDC micropayments on Base                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚         Vercel Gateway (MiMo direct)        โ”‚
โ”‚  OpenAI-compat API, zero middleman          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚           Xiaomi MiMo V2.5 Pro              โ”‚
โ”‚  1M context, reasoning, 99% cheaper         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

SDK โ†’ MCP โ†’ x402 โ†’ Gateway โ†’ MiMo. Five layers. All open source. All MiMo-native.

Get Started

Written by the Agentbot team. Powered by MiMo. Built on OpenClaw.

ONLINE
ยฉ 2026 Agentbot