mcp

v0.5.3
@bskts/mcp Checked 1 day ago Published 1 month ago

MCP server for bskts: read tokenized index baskets on Robinhood Chain and build unsigned buys, sells and orders.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bskts_markets bskts markets

Every basket with live NAV (USD per share), change24h (fraction, 0.01 = +1%) and buyCostBps (real cost of a buy: pool fees + price impact, bps, on top of the 0.20% mint fee). Start here.

bskts_basket bskts basket

One basket: name, thesis, constituents (address, target weight, price), fees, rebalance schedule, and `risk` (read it before buying). With `days`, also a NAV summary (change, high, low, maxDrawdown, volatility; fractions).

ParameterTypeDescription
ticker *stringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
daysintegersummarise NAV over this many days

bskts_account bskts account

What an address holds: ETH (gas) and USDG balances, gasOk (false = too little ETH on Robinhood Chain for a trade), positions with value and PnL, and open orders. walletSharesWei is the exact share count to sell.

ParameterTypeDescription
address *stringwallet address (0x...) on Robinhood Chain

bskts_buy Build a bskts buy

Build an UNSIGNED buy of a basket for USDG. Returns {approval, tx, simulation, minShares, estShares}. Nothing is sent: the user's wallet signs `approval` (if not null, wait for it to be mined) then `tx`. simulation.ok false = it would revert: do not send.

ParameterTypeDescription
address *stringwallet address (0x...) on Robinhood Chain
amountUsdg *numberdollars of USDG to spend
ticker *stringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
slippageBpsintegertolerance beyond the quoted cost, bps (default 50)

bskts_sell Build a bskts sale

Build an UNSIGNED sale of basket shares for USDG, in one transaction. shares defaults to "max"; fraction (0-1] with "max" sells part. Returns {approval, tx, simulation, expectedUsdg, minOutUsdg} (USDG in 1e6 base units). Same signing order as bskts_buy.

ParameterTypeDescription
address *stringwallet address (0x...) on Robinhood Chain
ticker *stringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
fractionnumberwith shares "max": the part to sell
sharesstring"max", or an exact walletSharesWei string from bskts_account (never a float x 1e18)
slippageBpsintegertolerance beyond the quoted cost, bps (default 50)

bskts_order Build a bskts order

Build an UNSIGNED resting order. limit: buy amountUsdg when the 10-minute average NAV <= triggerNav (omit for market; USDG escrowed until filled or cancelled). exit: stop-loss (stopNav), take-profit (tpNav) or both on exact `shares`. cancel: withdraw orderId with its escrow (both from bskts_account). NAV levels in dollars. Same signing order as bskts_buy.

ParameterTypeDescription
address *stringwallet address (0x...) on Robinhood Chain
kind *string
amountUsdgnumberlimit: dollars to spend
escrowstringcancel: the escrow from bskts_account / GET /v1/orders; recommended
expiryDaysintegerlimit / exit: default 30
orderIdstringcancel: the order id
sharesstringexit: exact 1e18 integer string
stopNavnumberexit: sell if NAV falls to this
tickerstringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
tpNavnumberexit: sell if NAV rises to this
triggerNavnumberlimit: fill at or below this NAV

bskts_agent_session Agent account permissions

Resolve a wallet owner's bskts account and read an agent public key's live authority: active, moduleEnabled, coverEnabled, USDG, basket turnover remaining, max slippage, expiry and owner approval URL. Cover spending counts separately. Start here for autonomous gasless trading. No ETH needed. Inactive => owner connects this public key in Portfolio; never request private keys or silently renew/increase limits.

ParameterTypeDescription
key *stringwallet address (0x...) on Robinhood Chain
owner *stringwallet address (0x...) on Robinhood Chain

bskts_agent_order Build a delegated limit or exit order, or a cancellation

UNSIGNED account Action for an approved agent key. SHOW previewText to the user before signing: triggers are on 10-minute pool-average NAV, so price returns, not net profit. limit: escrows USDG, fills at NAV <= triggerNav (>= if triggerBelow false). exit: escrows shares, sells at NAV <= stopNav or >= tpNav (stop < NAV < tp). slippageBps REQUIRED: <= session maxSlippageBps, >= the basket's limitMinSlippageBps / exitMinSlippageBps (bskts_basket). Placement counts toward today's turnover; expiry capped to the session. cancel (limit) / cancel-exit (exit) per the order's kind in bskts_account (sess…

ParameterTypeDescription
key *stringwallet address (0x...) on Robinhood Chain
kind *string
owner *stringwallet address (0x...) on Robinhood Chain
amountUsdgnumber
expiryDaysinteger
orderIdstring
sharesstring"max", or an exact walletSharesWei string from bskts_account (never a float x 1e18)
slippageBpsintegerlimit, exit: REQUIRED bps, within the session's maxSlippageBps, at least the basket's minimum (the app uses 300)
stopNavnumber
tickerstringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
tpNavnumber
triggerBelowboolean
triggerNavnumber

bskts_agent_trade Build a delegated agent trade

Build an UNSIGNED buy/sell Action inside owner-approved permissions. Returns action, typedData and relayer URL. The agent host's matching session signer signs typedData; POST {action,signature} to the relayer. No wallet approval per trade, no ETH. A 402 fee quote requires a new signature within the host's explicit fee cap; preserve nonce and all trade terms. Persist the unsigned plan before signing; on restart reconcile its original nonce and stop while unresolved. SDK hosts can use executeSessionOnce with a durable store. Never retry ambiguous timeouts with a new nonce. Existing wallet/order…

ParameterTypeDescription
key *stringwallet address (0x...) on Robinhood Chain
owner *stringwallet address (0x...) on Robinhood Chain
side *string
ticker *stringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
amountUsdgnumberbuy: USDG dollars, minimum $5
feeUsdgstringnetwork fee base units; default 0 for quote, never above host fee cap
sharesstringsell: exact account shares, 1e18 base units
slippageBpsintegerall-in module tolerance; default 50 bps, or the grant maximum if lower; never above owner approval

bskts_cover Weekend Cover

Weekend Cover pays a held basket's weekend drop between fromBps and toBps (300-1000: from -3%, full at -10%). Prices: $ per $1,000 of cover, +1% fee. weeks: buyable weeks, terms, limits. book (ticker): offers by range, history.fairPer1k (average payout), quote for coverUsd. positions (bskts account): cover, payouts, listings.

ParameterTypeDescription
view *string
accountstringwallet address (0x...) on Robinhood Chain
coverUsdinteger
fromBpsinteger
tickerstringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
toBpsinteger
weekinteger

bskts_agent_cover Build a delegated cover purchase

UNSIGNED Weekend Cover action for the agent session key: take offers (all of coverUsd unless allowPartial), request at pricePer1k, or cancel listingId (free). Never underwrites. Needs owner-enabled Cover and basket holdings; premium + fee <= 3% of cover. Sign typedData, POST {action,signature} to relayerUrl; 402: re-sign the fee only, within the host cap.

ParameterTypeDescription
action *string
key *stringwallet address (0x...) on Robinhood Chain
owner *stringwallet address (0x...) on Robinhood Chain
allowPartialboolean
coverUsdinteger
feeUsdgstring
fromBpsinteger
listingIdstring
maxPricePer1knumber
pricePer1knumber
tickerstringbasket ticker, e.g. DIGI64 (bskts_markets lists them)
toBpsinteger
weekinteger

bskts_guide bskts trading guide

The full trading guide: chain setup, units, fees, error codes, public jobs that pay fees. Read once if a result is unclear (~1.2k tokens).