MCP 服务器

trading-mcp

com.ai-rook.agents/trading-mcp

此 MCP 可以做什么

Catalogs and quotes paid trading, AI, blockchain, developer, and escrow endpoints, and provides previews, escrow inspection, attestations, and payment receipts.

call_paid_endpoint
Get payment instructions + live quote for any paid AI Rook endpoint. Returns exact USDC price, x402 payment flow (EIP-3009 sign → retry with X-Payment header), and current measured latency. Does NOT execute the endpoint — use this to plan, then pay via x402 at the endpoint URL. Free.
输入模式
{'type': 'object', 'required': ['endpoint'], 'properties': {'endpoint': {'type': 'string', 'description': 'e.g. /api/market-pulse, /api/summarize, /api/code-review'}}}
escrow_dry_run
Preview a full ERC-8183 escrow job lifecycle on Base WITHOUT touching the chain: exact contract calls with calldata, gas estimates, money split (98% provider / 2% platform), state transitions, reject/refund alternates. Verified against live job 39. Use before creating any escrow job. Free.
输入模式
{'type': 'object', 'required': [], 'properties': {'hours': {'type': 'number', 'description': 'Hours until expiry (default 24)'}, 'amount': {'type': 'number', 'description': 'Budget in USDC units (6 decimals). 250000 = $0.25, 1000000 = $1.00'}, 'provider': {'type': 'string', 'description': 'Provider wallet address (0x...)'}}}
get_attestation
Read the on-chain attestation record for a completed/rejected ERC-8183 job — provider address, agentId, approved flag, timestamp. Proof that the RookAttestationHook fired. Free.
输入模式
{'type': 'object', 'required': ['job_id'], 'properties': {'job_id': {'type': 'number', 'description': 'Job ID (integer)'}}}
get_escrow_job
Read the on-chain state of any ERC-8183 escrow job by ID (Open/Funded/Submitted/Completed/Rejected/Expired, client, provider, budget, deliverable hash). Job 39 is our verified live completion. Free.
输入模式
{'type': 'object', 'required': ['job_id'], 'properties': {'job_id': {'type': 'number', 'description': 'Job ID (integer)'}}}
get_quote
Get exact price, input schema, and REAL measured latency (from production paid calls) for any AI Rook endpoint BEFORE paying. Agents are risk-averse spenders — quote first, pay second. Free.
输入模式
{'type': 'object', 'required': ['endpoint'], 'properties': {'endpoint': {'type': 'string', 'description': 'e.g. /api/order-flow'}}}
list_endpoints
List the full AI Rook endpoint catalog with prices (52 endpoints: trading intelligence, AI inference via local 456B MoE, blockchain data, dev tools, escrow). START HERE before calling any paid endpoint. Free.
输入模式
{'type': 'object', 'required': [], 'properties': {}}
preview_market_pulse
FREE taste of the paid /api/market-pulse ($0.05): real BTC price + engine status with CVD/OI/whale fields redacted. Use to evaluate data quality before paying. No payment required.
输入模式
{'type': 'object', 'required': [], 'properties': {}}
preview_order_flow
FREE taste of the paid /api/order-flow ($0.25): real price + volume gear with CVD/session levels redacted. Evaluate before paying. Free.
输入模式
{'type': 'object', 'required': [], 'properties': {}}
preview_trade_idea
FREE taste of the paid /api/trade-idea ($0.25): strategy name + direction only, entry/stop/target redacted. Evaluate before paying. Free.
输入模式
{'type': 'object', 'required': [], 'properties': {}}
sign_receipt
Generate a cryptographically signed proof-of-spend receipt for any USDC payment tx on Base. Server verifies the on-chain Transfer event, then signs with the AI Rook server wallet (EIP-191, ecrecover-verifiable offline). For agent operator audit trails. Free.
输入模式
{'type': 'object', 'required': ['tx_hash'], 'properties': {'tx_hash': {'type': 'string', 'description': '0x + 64 hex transaction hash on Base'}}}
已添加
call_paid_endpoint
2026年9月17日 12:33
已添加
get_attestation
2026年9月17日 12:33
已添加
get_escrow_job
2026年9月17日 12:33
已添加
preview_trade_idea
2026年9月17日 12:33
已添加
preview_order_flow
2026年9月17日 12:33
已添加
preview_market_pulse
2026年9月17日 12:33
已添加
sign_receipt
2026年9月17日 12:33
已添加
escrow_dry_run
2026年9月17日 12:33
已添加
get_quote
2026年9月17日 12:33
已添加
list_endpoints
2026年9月17日 12:33