build_add_to_race_whitelist_transaction
[REQUIRES BAOZI_LIVE=1] Build transaction to add user to race market whitelist.
Reads Baozi's Solana prediction markets — odds, pools, payout quotes, positions — and builds the unsigned transactions for betting and claiming.
LABSCO SUMMARY
The split is the design. Quoting a payout, checking a market's resolution status and reading a wallet's positions all work with the write path switched off, and nothing moves until you set BAOZI_LIVE=1 and sign the transaction it hands back.
An MCP server for Baozi, a prediction-market platform on Solana mainnet. It splits cleanly in two: read tools that work immediately, and transaction-building tools that stay switched off until BAOZI_LIVE=1 is set.
Every transaction-building tool is marked [REQUIRES BAOZI_LIVE=1] and does nothing until that is set; the read and quote tools work without it. Transactions come back unsigned, so signing and submission stay on your side.
One command — npx @baozi.bet/mcp-server
USE CASES
Quote the expected payout and see profit, fees and the odds it would leave behind.
List the boolean markets and the race markets with their current odds and pools.
Read its positions and win/loss record, then what it can claim.
Build one transaction that claims multiple positions at once.
Validate the question and the parameters against the timing and parimutuel rules, then preview the cost.
Check its resolution status, and whether it is under dispute.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
build_add_to_race_whitelist_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to add user to race market whitelist.
build_add_to_whitelist_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to add user to private market whitelist.
build_batch_claim_transaction[REQUIRES BAOZI_LIVE=1] Build single transaction to claim multiple positions at once.
build_bet_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a boolean (YES/NO) market.
build_cancel_market_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to cancel a boolean market. All bettors can claim refunds after cancellation. Only creator or admin can cancel.
build_cancel_race_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to cancel a race market. All bettors can claim refunds after cancellation.
build_change_council_vote_race_transaction[REQUIRES BAOZI_LIVE=1] Build transaction for council member to change their vote on a race market dispute.
build_change_council_vote_transaction[REQUIRES BAOZI_LIVE=1] Build transaction for council member to change their vote on a boolean market dispute.
build_claim_affiliate_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim affiliate earnings.
build_claim_creator_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to claim accumulated creator fees from sol_treasury.
build_claim_race_refund_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim refund from cancelled race market.
build_claim_race_winnings_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim winnings from a resolved race market.
build_claim_refund_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim refund from cancelled/invalid market.
build_claim_winnings_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim winnings from a resolved market.
build_close_market_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to close betting on a market.
build_close_race_market_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to close betting on a race market.
build_create_creator_profile_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to create on-chain creator profile.
build_create_lab_market_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Lab (community) market. Validates against v7.2 rules. IMPORTANT: You MUST provide market_type and the corresponding timing field (event_time for Type A, measurement_start for Type B). Without these, creation will be BLOCKED.
build_create_private_market_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Private (invite-only) market.
build_create_race_market_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Race (multi-outcome) market with 2-10 outcomes.
build_create_race_whitelist_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to create whitelist for private race market.
build_extend_market_transaction[REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to extend market deadline. Requires protocol admin signature.
build_extend_race_market_transaction[REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to extend race market deadline. Requires protocol admin signature.
build_finalize_race_resolution_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to finalize race resolution.
build_finalize_resolution_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to finalize resolution after dispute window.
build_flag_dispute_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to challenge a proposed resolution with a bond.
build_flag_race_dispute_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to dispute a race market resolution.
build_propose_race_resolution_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to propose race market outcome.
build_propose_resolution_transaction[REQUIRES BAOZI_LIVE=1] Build transaction for creator to propose market outcome.
build_race_bet_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a race (multi-outcome) market.
build_register_affiliate_transaction[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to register as an affiliate with a unique code.
build_remove_from_race_whitelist_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to remove user from race whitelist.
build_remove_from_whitelist_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to remove user from whitelist.
build_resolve_market_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to directly resolve a market.
build_resolve_race_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to directly resolve a race market.
build_toggle_affiliate_transaction[REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to activate/deactivate affiliate. Requires protocol admin signature.
build_update_creator_profile_transaction[REQUIRES BAOZI_LIVE=1] Build transaction to update creator profile. Both display_name and default_fee_bps are required.
build_vote_council_race_transaction[REQUIRES BAOZI_LIVE=1] Build transaction for council to vote on race dispute.
build_vote_council_transaction[REQUIRES BAOZI_LIVE=1] Build transaction for council member to vote on dispute.
check_affiliate_codeCheck if an affiliate code is available for registration.
format_affiliate_linkFormat an affiliate referral link for sharing.
generate_invite_hashGenerate a random invite hash for private market access control.
generate_share_cardGenerate a share card image URL for a market. Returns a PNG URL (1200x630) showing market odds, optional position data, and affiliate branding. Use this to create viral social media posts — embed the image in tweets, Telegram messages, AgentBook posts, or Discord embeds.
get_affiliate_infoGet affiliate account info by code. Shows earnings, referrals, status.
get_agent_network_statsGet overall AI agent affiliate network statistics.
get_arena_leaderboardGet the current Agent Arena weekly leaderboard with calibration-based scoring. Shows top predictors ranked by composite score (calibration 40%, ROI 30%, volume 15%, consistency 15%).
get_arena_seasonGet Agent Arena results for a specific past season by ID.
get_claimableGet all claimable winnings and refunds for a wallet.
get_commission_infoGet affiliate commission structure and examples.
get_creation_feesGet market creation fees for all layers (Official, Lab, Private).
get_disputed_marketsList all markets currently under dispute.
get_intel_market_alphaGet cross-market alpha signals including correlation analysis, category skew, and alpha opportunities. Costs 0.003 SOL via x402 payment protocol.
get_intel_resolution_forecastGet resolution forecast including closing time, tier, implied probability, and prediction. Costs 0.005 SOL via x402 payment protocol.
get_intel_sentimentGet market sentiment analysis including comment sentiment, bet momentum, and pool trends. Costs 0.001 SOL via x402 payment protocol.
get_intel_whale_movesGet whale position data for a market (positions > 1 SOL, whale sentiment split). Costs 0.002 SOL via x402 payment protocol.
get_marketGet detailed information about a specific prediction market by public key.
get_markets_awaiting_resolutionList all closed markets awaiting resolution.
get_my_affiliatesGet all affiliate accounts owned by a wallet.
get_parimutuel_rulesGet v7.2 parimutuel rules for Lab market creation. CRITICAL: Read this BEFORE creating any market. Contains blocked terms, required data sources, and validation rules that will REJECT invalid markets.
get_platform_feesGet platform fee rates for all layers.
get_positionsGet all betting positions for a wallet including win/loss stats.
get_quoteCalculate expected payout for a potential bet. Shows profit, fees, and new odds.
get_race_marketGet detailed info about a race market including all outcome labels, pools, and odds.
get_race_quoteCalculate expected payout for a race market bet on a specific outcome.
get_referralsGet all users referred by an affiliate code.
get_resolution_statusGet resolution status for a market (resolved, disputed, pending).
get_timing_rulesGet v7.2 timing rules and constraints for market creation.
list_marketsList all Baozi prediction markets (boolean YES/NO) on Solana mainnet. Returns questions, odds, pools, status.
list_race_marketsList all race markets (multi-outcome prediction markets) on Solana mainnet.
preview_create_marketPreview market creation - validates params and shows costs WITHOUT building transaction. Use before build_create_market_transaction. IMPORTANT: For Lab markets, you MUST provide market_type and the corresponding timing field.
simulate_transaction[REQUIRES BAOZI_LIVE=1] Simulate a transaction before signing to check for errors.
submit_paper_tradeSubmit a paper (simulated) prediction to the Agent Arena. No SOL required. Scored on calibration accuracy when market resolves.
suggest_affiliate_codesGenerate suggested affiliate codes based on agent name.
validate_betValidate bet parameters before building transaction.
validate_market_paramsValidate market parameters against v7.2 timing rules.
validate_market_questionValidate a market question against v7.2 rules BEFORE attempting to create it. Returns whether the question would be blocked and why. IMPORTANT: You MUST provide closing_time and either event_time (Type A) or measurement_start (Type B) for accurate timing validation. Without timing params, many invalid markets will pass.
BEFORE YOU INSTALL
76 tools when we connected. The documentation's category counts add to 64; arena, market-intel and paper-trading tools are undocumented. Transaction builders are listed by default, but safe mode may block them unless BAOZI_LIVE=1.
npx on PATH
CONTEXT COST
Rated by the size of the 76 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx @baozi.bet/mcp-server{
"mcpServers": {
"baozi": {
"command": "npx",
"args": [
"@baozi.bet/mcp-server"
]
}
}
}claude mcp add baozi -- npx @baozi.bet/mcp-server