onestop

v1.0.2
trade.onestop/onestop-mcp Checked 1 day ago Published 29 days ago

Gasless Solana swaps, market-cap limit, trailing and TWAP orders, and plans.

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

wallet

This MCP's wallet address and its link to onestop: whether it's logged in to the engine, the API it uses, whether dry run is on, and how many orders and plans it's tracking. No network call. Call it first: every other tool acts for this wallet.

connect

Wait up to 20 seconds for the engine login, then report the same as wallet. The MCP logs in by itself at start and again after any drop, backing off up to 30 seconds between tries, so use this to wait for it rather than retrying another tool.

quote

Price a swap without trading. Returns amount_in, expected_out, min_out, the fee and the gas (both taken from the trade), and transaction.base64: the unsigned transaction, good for about 45 seconds. Nothing is signed or sent. Pass the transaction to submit_swap to trade it after looking at the quote, or use swap to do both at once.

ParameterTypeDescription
input *stringwhat to spend: a mint, or SOL, USDC, USDT
output *stringwhat to get: a mint, or SOL, USDC, USDT
amountstringraw units of the input (lamports for SOL). Give this or holdings_bps
holdings_bpsintegeror a share of the wallet's balance of the input, 10000 = all
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%

submit_swap

Trade a transaction from quote. The MCP checks it with the guard first, simulating it on the wallet's own RPC: onestop pays the fee, only this wallet signs besides it, nothing approves or reassigns the wallet's accounts, the wallet loses no more than the quote says, and the output arrives. Then it signs, sends it through onestop's MEV-protected lane and waits for it to land. Only a transaction this MCP quoted recently is accepted, because the guard needs its quote and onestop co-signs only trades it quoted. Returns confirmed with the signature and the wallet's balance changes, or refused with…

ParameterTypeDescription
transaction *stringtransaction.base64 from a quote

swap

Swap now in one call: quote, guard, sign and send, the same as quote followed by submit_swap. No SOL needed for gas: onestop pays it and takes it, with any fee, from the trade. Returns the amounts and the result: confirmed with the signature and balance changes, refused with the guard's reasons, or dry_run.

ParameterTypeDescription
input *stringwhat to spend: a mint, or SOL, USDC, USDT
output *stringwhat to get: a mint, or SOL, USDC, USDT
amountstringraw units of the input (lamports for SOL). Give this or holdings_bps
holdings_bpsintegeror a share of the wallet's balance of the input, 10000 = all
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%

tokens

Price, market cap, liquidity and main pool for up to 100 tokens. Read only.

ParameterTypeDescription
mints *arraytoken mint addresses

holdings

A wallet's SOL and token balances, valued in USD. Read only.

ParameterTypeDescription
walletstringthe wallet to look at, default this MCP's

limit_order

A limit order: buy or sell when the market cap crosses a level, given as target_bps of the market cap now (above it, a take profit or a breakout buy; below it, a stop loss or a dip buy) or as target_mcap_usd. It fires only on a cross after placement. Add twap_slices and twap_interval_s to fill in slices. A buy takes amount in lamports; a sell takes amount in raw token units or holdings_bps of the balance when it fires. paper: true rehearses with real prices and never trades. It lapses after expires_h hours if it hasn't fired. Returns the order with its order_id; follow it with get_order. Signi…

ParameterTypeDescription
mint *stringthe token's mint address
side *stringbuy spends SOL on the token; sell sells the token for SOL
amountstringa buy: the SOL to spend, in lamports (1 SOL = 1000000000). A sell: raw token units. Give this or holdings_bps
expires_hintegerhours until it lapses if it hasn't fired, default 24
holdings_bpsintegera sell: the share of the wallet's balance when it fires, 10000 = all
paperbooleantrue: rehearse with real prices; fills are recorded, never signed or traded
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%
target_bpsintegerthe level as a share of the market cap now: 20000 = 2x, 5000 = half
target_mcap_usdnumberor the level as a market cap in USD
twap_interval_sintegerseconds between slices
twap_slicesintegerfill in this many slices instead of one swap

trailing_order

A trailing order: a sell follows the market cap up and fires when it falls trail_bps from its high; a buy follows it down and fires when it rises trail_bps from its low. Add twap_slices and twap_interval_s to fill in slices. A buy takes amount in lamports; a sell takes amount in raw token units or holdings_bps of the balance when it fires. paper: true rehearses with real prices and never trades. It lapses after expires_h hours if it hasn't fired. Returns the order with its order_id; follow it with get_order. Signing: fills are signed by this MCP process. If it isn't running when an order fires…

ParameterTypeDescription
mint *stringthe token's mint address
side *stringbuy spends SOL on the token; sell sells the token for SOL
trail_bps *integerhow far the market cap must move back from its best to fire: 1000 = 10%
amountstringa buy: the SOL to spend, in lamports (1 SOL = 1000000000). A sell: raw token units. Give this or holdings_bps
expires_hintegerhours until it lapses if it hasn't fired, default 24
holdings_bpsintegera sell: the share of the wallet's balance when it fires, 10000 = all
paperbooleantrue: rehearse with real prices; fills are recorded, never signed or traded
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%
twap_interval_sintegerseconds between slices
twap_slicesintegerfill in this many slices instead of one swap

limit_trailing_order

A limit, then a trail: it waits for the market cap to reach the level (target_bps of the market cap now, or target_mcap_usd), then trails from there and fires when the market cap moves back trail_bps from its best. A sell above the market cap now lets a winner run past the target and keeps the gain. Add twap_slices and twap_interval_s to fill in slices. A buy takes amount in lamports; a sell takes amount in raw token units or holdings_bps of the balance when it fires. paper: true rehearses with real prices and never trades. It lapses after expires_h hours if it hasn't fired. Returns the order…

ParameterTypeDescription
mint *stringthe token's mint address
side *stringbuy spends SOL on the token; sell sells the token for SOL
trail_bps *integerhow far the market cap must move back from its best to fire: 1000 = 10%
amountstringa buy: the SOL to spend, in lamports (1 SOL = 1000000000). A sell: raw token units. Give this or holdings_bps
expires_hintegerhours until it lapses if it hasn't fired, default 24
holdings_bpsintegera sell: the share of the wallet's balance when it fires, 10000 = all
paperbooleantrue: rehearse with real prices; fills are recorded, never signed or traded
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%
target_bpsintegerthe level as a share of the market cap now: 20000 = 2x, 5000 = half
target_mcap_usdnumberor the level as a market cap in USD
twap_interval_sintegerseconds between slices
twap_slicesintegerfill in this many slices instead of one swap

twap_order

A TWAP order: buy or sell now in twap_slices swaps twap_interval_s seconds apart, to spread the price impact. Each slice is what's left divided by the slices left. A buy takes amount in lamports; a sell takes amount in raw token units or holdings_bps of the balance when it fires. paper: true rehearses with real prices and never trades. It lapses after expires_h hours if it hasn't fired. Returns the order with its order_id; follow it with get_order. Signing: fills are signed by this MCP process. If it isn't running when an order fires, the fill is queued and executed on reconnect at the then-cu…

ParameterTypeDescription
mint *stringthe token's mint address
side *stringbuy spends SOL on the token; sell sells the token for SOL
twap_interval_s *integerseconds between slices
twap_slices *integerfill in this many slices instead of one swap
amountstringa buy: the SOL to spend, in lamports (1 SOL = 1000000000). A sell: raw token units. Give this or holdings_bps
expires_hintegerhours until it lapses if it hasn't fired, default 24
holdings_bpsintegera sell: the share of the wallet's balance when it fires, 10000 = all
paperbooleantrue: rehearse with real prices; fills are recorded, never signed or traded
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%

list_orders

This wallet's orders, newest first. An order is waiting, armed (trailing from its best), filling, then filled, cancelled, expired or failed.

get_order

One order: its status, trigger levels, the market cap it saw last, its slices and its fills with their signatures.

ParameterTypeDescription
order_id *stringthe order_id the order was placed with

cancel_order

Cancel an order. A slice that's already signed can't be called back; the rest of the order stops. A plan's orders are cancelled with cancel_plan.

ParameterTypeDescription
order_id *stringthe order_id the order was placed with

extend_order

Set an open order's expiry to expires_h hours from now.

ParameterTypeDescription
expires_h *integerhours from now until it lapses
order_id *stringthe order_id the order was placed with

place_plan

A plan: an entry buy, then an exit onestop creates for exactly the tokens the entry bought. protect arms once the market cap reaches arm_bps of the entry's (30000 = 3x) and then sells when it falls trail_bps from its high. exit takes profit at target_bps of the entry market cap, or shapes the protected sell (twap, and sell_bps of the tokens); with neither level the exit sells at once. A plan needs protect or exit. To protect tokens already held, leave out entry and give amount or holdings_bps. Returns the plan with its plan_id; follow it with get_plan. Signing: fills are signed by this MCP pro…

ParameterTypeDescription
mint *stringthe token's mint address
amountstringwithout an entry: raw units of the token already held
entryobjectthe buy; leave it out to protect tokens already held
exitobjecta take profit at target_bps of the entry market cap, and how the exit sells: twap, sell_bps of the tokens (default all)
expires_hintegerhours until it lapses if it hasn't fired, default 24
holdings_bpsintegerwithout an entry: or a share of the wallet's balance of it
paperbooleantrue: rehearse with real prices; fills are recorded, never signed or traded
protectobjecta trailing stop that arms at arm_bps of the entry market cap
slippage_bpsintegerthe most the price may move against a fill, default 300 = 3%

get_plan

A plan's progress: the entry's fills, the tokens it bought and its average entry market cap, the exit (armed with its high and stop, or its take-profit level), and the market cap now as a multiple of the entry.

ParameterTypeDescription
plan_id *stringthe plan_id the plan was placed with

cancel_plan

Cancel a plan and every stage that hasn't run. Tokens already bought stay in the wallet.

ParameterTypeDescription
plan_id *stringthe plan_id the plan was placed with

activity

What this MCP did since it started, newest first: fills it signed (with signatures) or refused (with the reason), paper fills, exits it took on, and order and plan updates.

ParameterTypeDescription
limitintegerhow many entries, default 20