bobby-protocol

Adversarial AI trading intelligence on X Layer. 3-agent debate (Alpha Hunter vs Red Team vs CIO), Judge Mode (6 dimensions), adversarial bounties, conviction oracle. 17 MCP tools — 10 free analytics, 2 free bounty builders, 5 premium via x402. Use when agents need: market analysis, trading signals, security scans, debate-quality intelligence, or want to challenge AI trading decisions on-chain. Triggers: 'bobby analyze', 'bobby debate', 'bobby intel', 'bobby signals', 'bobby judge', 'bobby bounty', 'trade analysis', 'conviction score', 'adversarial review'.

Bobby Protocol — Adversarial Trading Intelligence

3-agent debate system for crypto trading on OKX X Layer. Alpha Hunter proposes, Red Team attacks, CIO decides. Judge Mode audits on 6 dimensions. Anyone can stake OKB to prove Bobby was wrong.

Integration

Bobby exposes 17 MCP tools over Streamable HTTP. No CLI required — call the endpoint directly.

Endpoint: https://bobbyprotocol.xyz/api/mcp-http Protocol: JSON-RPC 2.0 (MCP Streamable HTTP)

Free Tools (no auth required)

# Get full intelligence briefing
curl -X POST https://bobbyprotocol.xyz/api/mcp-http \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"bobby_intel","arguments":{}},"id":"1"}'

# Technical analysis
curl -X POST https://bobbyprotocol.xyz/api/mcp-http \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"bobby_ta","arguments":{"symbol":"BTC"}},"id":"2"}'

Available free tools: bobby_intel, bobby_ta, bobby_stats, bobby_xlayer_signals, bobby_xlayer_quote, bobby_wallet_balance, bobby_dex_trending, bobby_dex_signals, bobby_bounty_list, bobby_bounty_get

Premium Tools (0.001 OKB via x402)

  1. Call without payment → receive challengeId
  2. Pay on X Layer: AgentEconomyV2.payMCPCall(challengeId, toolName) with 0.001 OKB
  3. Retry with x-402-payment: <txHash> and x-challenge-id: <challengeId> headers

Premium tools: bobby_analyze, bobby_debate, bobby_judge, bobby_security_scan, bobby_wallet_portfolio

Bounty Tools (unsigned calldata builders)

bobby_bounty_post and bobby_bounty_challenge — return unsigned tx data for the AdversarialBounties contract.

Discovery Endpoints

EndpointPurpose
GET /api/mcp-httpServer metadata + tool list
GET /api/reputationOn-chain track record + win rate
GET /api/registryFull agent catalog + capabilities
GET /api/activityLive MCP call feed
GET /skill.mdIntegration guide
GET /ai-judge-manifest.jsonJudge evaluation framework

OnchainOS APIs Used

Bobby integrates with the following OKX OnchainOS APIs:

  • Security: Token risk scanning, honeypot detection (/api/v5/dex/security/token-scan)
  • DEX Signal: Smart money, whale, KOL tracking (/api/v6/dex/market/signal/list)
  • DEX Aggregator: Swap quotes + execution on X Layer (/api/v6/dex/aggregator/quote)
  • Technical Indicators: RSI, MACD, Bollinger, etc. (/api/v5/aigc/mcp/indicators)
  • Market Data: Tickers, candles, funding rates, open interest
  • x402 Payment: Premium tool settlement on X Layer

Architecture

Agent → POST /api/mcp-http → Bobby Protocol
  ├── Free tools → instant response
  └── Premium tools → 402 → pay on X Layer → retry → result + on-chain proof