xStocker

v0.2.0
com.xstocker/agent-mcp Checked 2 days ago Published 1 month ago

Build buy/sell orders for tokenized US stocks (xStocks) on Solana.

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

list_assets List tradable xStocks

List tradable tokenized stocks/ETFs (xStocks) on Solana with tickers and accepted pay tokens. Call this before build_order to get valid asset symbols. xStocks are issued by Backed Finance AG and are NOT available to U.S. citizens or residents. Trading tokenized equities involves risk of loss.

build_order Build a buy/sell order

Build (NOT execute) a buy or sell order for an xStock. Nothing is traded and no funds move: this returns a quote (details) and a Solana Pay link (solanaPayUrl). Show the details (amount in, expected out, fee) to the user and give them the link or QR code: their wallet opens it and they approve there with their OWN wallet. For a buy, `amount` is how much pay_token to spend. For a sell, `amount` is how many xStock to sell, in the units the wallet shows (up to 8 decimals), or "max" to sell the entire balance. If a referral partner is configured on this server, details.partnerFee shows the extra f…

ParameterTypeDescription
amount *Buy: amount of pay_token to spend. Sell: amount of the xStock to sell in wallet units (number or decimal string, up to 8 decimals), or "max" to sell the whole balance.
asset *stringxStock ticker from list_assets, e.g. "NVDAx"
wallet *stringThe user's Solana wallet address (public address only, never a private key)
include_transactionbooleanAlso return the base64 unsigned transaction. Only for agents that have their own wallet signer.
pay_tokenstringThe non-xStock side of the trade
sidestring

get_order_status Check trade status on-chain

Check whether a signed and broadcast Solana transaction landed (processed/confirmed/finalized/failed/not_found).

ParameterTypeDescription
signature *stringSolana transaction signature

check_partner Check a referral partner wallet

Check that a wallet can receive referral fees. There is no registration: a partner is just a Solana wallet address, set on this server with XSTOCKER_PARTNER_WALLET. USDC fees land in the wallet's USDC token account (it must exist), SOL fees in the wallet itself. Only use if the user asks about becoming a partner.

ParameterTypeDescription
wallet *stringThe user's Solana wallet address (public address only, never a private key)