SODAX Builders MCP
This server gives AI coding assistants live SODAX cross-chain DeFi data, intent/relay tracking, SDK documentation, and optional wallet-signed swap workflows.
Query supported chains, swap tokens, chain configs, hub assets, relay chain IDs, and money-market tokens/assets.
Look up intents, transactions, wallet history, solver volume/stats, orderbook entries, solver intents, oracle prices, and solver quotes.
Track and submit intent-relay transactions and inspect relay packets.
Read AMM LP positions and OHLCV pool candles.
Explore money-market rates, assets, user positions, borrowers, and suppliers.
List partners, get partner summaries, and query SODA total/circulating supply.
Refresh cached backend and solver oracle data.
Search, read, list, health-check, and refresh SODAX SDK documentation tools.
With an API key, price and prepare cross-chain swaps, submit/track them after the user's wallet sends them, cancel unfilled swaps, check balances, and resolve tokens; the server never signs or moves funds.
Provides automated access to searchable cross-chain SDK documentation, integration guides, and code examples directly from GitBook to assist with developer workflows.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
SODAX MCP Server
The default one-click config connects without an API key — the builder and documentation tools work immediately. To use the swap tools, add an
x-api-keyheader with your SODAX API key. See API Key below. A.mcp.jsonat the repo root lets Cursor Directory and Claude Code project config pick up the server entry automatically.
SODAX MCP server for AI coding assistants. Access live cross-network (cross-chain) API data: swap tokens across 20+ networks, query money market rates, look up solver volume, and search intent history. Includes full cross-chain SDK documentation that auto-syncs from SODAX developer docs. Build cross-network DeFi integrations with real-time protocol data directly in your development workflow. With a SODAX API key, it also quotes and tracks swaps that the user's own wallet signs.
One-liner: SODAX MCP server: live cross-network DeFi API data and auto-updating SDK docs for 20+ networks. Query swaps, lending, solver volume, and intent history, and make swaps the user's wallet signs, from your AI coding assistant.
Quick Start
Add the MCP server URL to your AI coding assistant's configuration:
{
"mcpServers": {
"sodax": {
"type": "http",
"url": "https://mcp.sodax.com/mcp"
}
}
}Works with Claude, Cursor, VS Code, Windsurf, ChatGPT, and other MCP-compatible agents. One connection gives you access to all cross-network API tools and SDK documentation.
SSE Transport (Legacy)
For clients that don't support streamable HTTP (e.g. Gemini CLI), use the SSE endpoint instead:
{
"mcpServers": {
"sodax": {
"type": "sse",
"url": "https://mcp.sodax.com/sse"
}
}
}API Key
Send your SODAX API key in an x-api-key header. The builder
tools work without one; the swap tools need it. An organisation's Owner or Admin creates one in the
partner portal, under API keys → Create key. The server forwards it on its calls to
the SODAX data API, solver and Swaps API, and nowhere else (not to the relay either). Over stdio, set SODAX_API_KEY
instead. A value that isn't a SODAX key (sodax_…) is ignored, except by the swap profile, which refuses it.
SSE clients send x-api-key on GET /sse and on every POST /messages: each message runs only with the key it
carries, and a session opened with a key refuses a message without that key (HTTP 403). The MCP SDKs' SSE clients
already send their headers on both.
{
"mcpServers": {
"sodax": {
"type": "http",
"url": "https://mcp.sodax.com/mcp",
"headers": { "x-api-key": "<your key>" }
}
}
}In Claude Code: claude mcp add --transport http sodax https://mcp.sodax.com/mcp --header "x-api-key: <your key>".
Profiles
A connection picks which tools it gets with ?profile=<name> on the URL or the x-sodax-profile header (stdio:
--profile <name> or MCP_PROFILE).
Profile | Tools |
| The builder tools, plus the swap tools when you send an API key |
| The data, relay and SDK docs tools |
| The swap tools only. Needs an API key |
An unknown profile is refused with HTTP 400; swap without a key with HTTP 403.
Partner fee
A builder can take a fee on the swaps its agent quotes: ?partnerAddress=<EVM address>&partnerFeeBps=<1-100> on the
URL, or the x-sodax-partner-address and x-sodax-partner-fee-bps headers (stdio: SODAX_PARTNER_FEE_ADDRESS and
SODAX_PARTNER_FEE_BPS). Set both or neither; anything else is refused with HTTP 400. The fee is taken from the
amount sent, is part of the quote, and is never a tool input.
Swapping
With the swap profile, or all with a key, an agent swaps for a user like this. The user's wallet signs and sends
every transaction; the server never signs.
sodax_swap_pricewith the chains, tokens and amount: theexpectedAmountthe user would receive and both sides' USD value. It builds and holds nothing, so an agent shows or watches a price with it. ItsprepareNeedslists the addresses preparing will need.sodax_swap_prepare, once the user is ready to sign, with the same and the user'sfromAddress, plustoAddressunless both chains are EVM (then it defaults tofromAddress; without it otherwise, anINVALID_ADDRESSnames it), and optionallyslippageBps(default 100, 1%): the result'sminimumAmountis the least a solver may deliver. Tighter makes a fill less likely; an unfilled swap is refunded after its deadline. It returnssteps(an approve when one is needed, after areset_approvewhen the token needs its allowance zeroed first, then the swap), aquoteId, theintentHashthe hub will know the swap by, andexpiresAt, by which the swap must be mined (track it even after). It holds the quote until then. Both carryquotedAt, when this server got the solver's price. Each approve and reset step carriesapproves: the token, its symbol, the spender and the amount its own calldata sets. An EVM recipient that is the zero or0x…dEaDburn address is refused.The user's wallet, on the source chain (each step's
txcarries itschainId), signs and sends each step in order, each confirmed before the next. A wallet that supports EIP-5792 can send the quote'sbatchin place of the steps itsreplaceslists, addingcallsto its params: those steps'{to, value, data}, in order. Areset_approvestill goes first. From a non-EVM chain there is one step, withchainTypeinstead ofchainId: itstxis the SODAX SDK's unsigned transaction for that family, as the SDK returns it raw (bigints as decimal strings, bytes as base64), built here from the checked intent; the quote'snextStepsays how the family's wallet sends it. Where the SDK reads what the tx calls from the chain, the unsigned tx is checked first: Solana's calls against the packaged programs, Sui's call against the Swaps API's own build's package and the packaged state objects, a cancel against the packaged connection. A Sui tx carries its sender. Before building anything, a quote refuses (SWAP_MISMATCH) a live chain config whose asset manager or connection isn't the SDK's packaged one.Right after the swap is sent,
sodax_swap_submit_and_trackwith the swap transaction'stxHash(from a batch, the hashwallet_getCallsStatusreports, not the batch id) and thequoteId(the quote'safterSendsays so). Nothing submits the swap to SODAX until this call, and a first call afterexpiresAt(within 30 minutes of it) relays the deposit for a refund instead; later than that, the server has dropped the quote and alerts its operators. From Sonic nothing is relayed: the swap tx itself creates the intent on the hub, and one never submitted is refunded there once expired, unless a solver filled it first (expired_awaiting_refund); one the hub no longer holds, filled or cancelled, isintent_closed. While the result hasretryAfterSec, call it again after that many seconds. A tx no node has seen comes withstopAfter, 5 minutes after the deadline, when it becomessource_not_found. It's polled untilpollUntil, at most 15 minutes after the first call; after that the agent asks the user whether their wallet sent it instead of polling, and calls again once it did, or once afterstopAfter. With itsquoteId, such a tx is read from the chain at most once every 10 seconds per API key, however often it's tracked. EVM, Solana and NEAR nodes say when they have a tx not final yet (seenOnChain); Sui, Stellar and Injective nodes know one only once it ran. From any spoke, track reads what the relay signs: the messages the chain'sconnectionemitted when the tx ran. It submits a tx holding exactly one deposit, sent by the asset manager from the quote's sender to their hub wallet with the quote's relay payload (from Solana, its keccak). A NEAR tx that failed after its deposit ran isn't submitted: it's reported as held, and alerts the operators. Nor is a tx whose events can't all be read: it's reported as unverified, which alerts with its quote. A non-EVM tx's hash goes as the wallet shows it.To cancel a swap that hasn't been filled,
sodax_swap_cancelreturns the cancel transaction for the wallet to send; then call it again withcancelTxHash. From Sonic the cancel goes through the user's wallet router and needs no relay: the second call confirms it on the hub (cancel_confirmed). A quoted swap from Sonic can be cancelled as soon as its tx is mined, before or after its deadline, without waiting for the swap service to have it. From a non-EVM chain the SDK builds the cancel here. From any spoke it's relayed once the tx ran and itsconnectionemitted the user's message to their hub wallet with the intent's cancel payload (from Solana, its keccak); a cancel tx whose events can't all be read is relayed for the relay to check, ascancel_relayedwithunverified. Without its quote, a swap whose tx events can't all be read isn't cancelled here (not_cancellable,unverified). No cancel is built for an intent the hub no longer holds, filled, cancelled or refunded (closed); one that closes after it's built fails when sent (cancel_failed), and the next call says it's closed.
sodax_get_balance reads a wallet's balance when the user isn't sure they hold enough (neither price nor prepare checks), and
sodax_resolve_token looks a token up when another swap tool returns UNKNOWN_TOKEN. Swaps start on Sonic (the hub),
an EVM spoke, or a non-EVM chain of a family listed in NON_EVM_SOURCE_TYPES (src/services/swap/sources/types.ts),
and a price or prepare from another chain returns UNSUPPORTED_SOURCE naming the ones that can; sodax_check_chain_support says
for any chain. The destination can be any SODAX swap chain. Bitcoin, Stacks and ICON aren't planned as sources for now.
ICON is being retired. SODAX's Bitcoin swaps run through a Bound trading wallet (a 2-of-2 that Bound co-signs and
broadcasts, behind a login token that expires in minutes), which an agent's wallet can't drive. A Stacks swap needs the
sender's public key and post-conditions the wallet must add itself, and the SDK can't build a Stacks cancel yet (it
passes the address where the public key goes). On Sonic the swap calls the intents contract directly, so its approval
goes to that contract. A Stellar source whose trustline the SDK says has too little room for the amount is refused: the
server doesn't build a changeTrust step. Every result the tools return carries
a nextStep for the agent, and a requestId for the user to quote when asking for help: the request.id of the
call's log records. An input that fails a tool's schema gets the MCP SDK's validation error instead.
The server only returns transactions, so the agent also needs a wallet tool (or your app's signer) that can:
give the user's address on the source chain, for
fromAddress;switch to the chain a step's
tx.chainIdnames, then send thattx(to,value,data) and return its hash; from a non-EVM chain, sign and send the family's raw transaction in the step (see step 2 above);tell when a transaction is mined, since each step must be mined before the next;
optionally, send an EIP-5792
wallet_sendCalls, to use the quote'sbatch.
Safety
The swap tools never sign or move funds. They also:
refuse inputs that look like a private key, seed phrase or API key, and say so without echoing them;
trust only their own quote cache and chain data when tracking or cancelling;
reject slippage and deadlines outside their bounds instead of clamping them;
warn, never block, when a quote is worth more than
SODAX_SWAP_USD_WARNUSD;refuse a quote whose output is worth under 90% of the amount sent (net of any partner fee) at the oracle's prices, and warn when the oracle can't price both sides;
pick canary or production once, at startup (
SODAX_ENV), never per request;take no RPC URL and no partner fee as a tool input;
keep keys and RPC URLs out of logs, and addresses out of analytics and alerts.
Related MCP server: 1inch Cross-Chain Swap MCP Server
Tools
Network Configuration (9 tools)
Tool | Description |
| List all blockchain networks supported by SODAX for cross-chain swaps |
| Check whether SODAX supports a chain by name, ticker, or key (e.g. "Hedera", "HBAR") |
| Get available tokens for cross-network swapping, optionally filtered by chain |
| Get full SODAX configuration (chains + tokens) in one call |
| Detailed spoke chain configs with contract addresses and RPCs |
| Chain ID to intent relay chain ID mapping |
| Hub (Sonic) assets representing spoke tokens |
| Money market supported tokens by chain |
| Money market reserve assets |
Intents & Solver (9 tools)
Tool | Description |
| Look up an intent transaction by hash — status, amounts, and details |
| Look up a specific intent by its intent hash |
| Get intent/transaction history for a specific wallet address |
| Get solver volume data (filled intents) with filtering and pagination |
| Get aggregated solver volume statistics |
| Get current cross-chain orderbook entries from solver |
| Get solver-side intent details and fill history |
| Get the solver's oracle prices for every supported (chain, token) pair |
| Get a swap quote from the solver (exact_input or exact_output) |
Intent Relay (3 tools)
Tool | Description |
| Submit a confirmed spoke-chain tx to the intent relay for cross-chain delivery |
| List every cross-chain packet emitted by a source tx |
| Fetch a single relay packet by connection serial number |
AMM & Liquidity (2 tools)
Tool | Description |
| Get AMM liquidity provider NFT positions by owner |
| Get OHLCV candlestick chart data for an AMM pool |
Money Market (6 tools)
Tool | Description |
| List all lending/borrowing assets and rates |
| Get detailed info for a specific asset by reserve address |
| Get a user's money market position (supply, borrow, health) |
| Get borrowers for a specific money market asset |
| Get suppliers (lenders) for a specific money market asset |
| Get all borrowers across all money market assets |
Partners & Token (6 tools)
Tool | Description |
| List SODAX integration partners across networks |
| Get volume and activity summary for a specific partner |
| Get SODA token supply info (total, circulating, burned) |
| Get SODA total supply as a plain number |
| Get SODA circulating supply as a plain number |
| Clear cached data to get fresh results (at most once a minute) |
Swaps (need an API key)
Tool | Description |
| Price a cross-chain swap; builds and holds nothing |
| Prepare a swap: the transactions for the user's wallet to sign, and its quoteId |
| Submit and track a swap once the user's wallet has sent it; repeated calls never resubmit |
| Cancel a submitted swap that hasn't been filled: the cancel transaction to sign, then the relay (none from Sonic) |
| A wallet's native balance on a chain and, optionally, one token's |
| Look up a token on a chain: address, decimals and hub asset |
See Swapping for the order they're called in.
Cross-Chain SDK Documentation (dynamic)
Tools prefixed with docs_ are automatically proxied from the SODAX docs MCP at docs.sodax.com. They update automatically when documentation changes — no manual sync needed.
Tool | Description |
| Search cross-chain SDK docs, integration guides, and code examples |
| Read a full documentation page from the docs filesystem |
| List all available documentation tools |
| Check SDK docs MCP connection status |
| Refresh the tools list from the docs MCP |
Example Prompts
Once connected, try asking your AI coding assistant:
Cross-Network Swaps & Tokens
"What networks does SODAX support for cross-chain swaps?"
"Get available swap tokens across chains on Base"
"How do I integrate cross-chain swaps with the SODAX SDK?"
Swaps (with an API key)
"Swap 10 USDC on Arbitrum for ETH on Base from 0x..."
"How much USDC does 0x... hold on Polygon?"
"Is my swap done? The tx hash is 0x..."
"Cancel that swap"
Solver Volume & Intent History
"Show me cross-network solver volume for today"
"Look up this intent transaction: 0x..."
"Get intent history for this wallet address"
"Quote me 100 USDC into SODA on Sonic"
"What's the current oracle price the solver has for bnUSD on Avalanche?"
Cross-Chain Relay
"Track the relay packets for this source tx: 0x..."
"Has packet conn_sn=42 from this tx been executed yet?"
Money Market & Lending
"What are the lending rates on SODAX money market?"
"Show me borrowing APY rates across assets"
"Get my money market position"
SDK Documentation
"How do I integrate with the SODAX cross-chain SDK?"
"Show me code examples for cross-network token swaps"
"What SDK methods are available for intent-based execution?"
Data Sources
Source | Type | Cache |
SODAX Backend API (api.sodax.com/v1/be) | Live cross-network data | 2 min |
SODAX Solver API (api.sodax.com/v1/intent) | Oracle prices + swap quotes | 2 min (oracle); none (quote) |
SODAX Intent Relay (api.sodax.com/v1/relay) | Cross-chain packet tracking | none |
SODAX Swaps API (api.sodax.com/v1/swaps) | Swap token list, quotes and transactions (swap tools) | 2 min for the token list (up to 30 min while the API is down) |
SODAX SDK ( | Swap tools: wallet balances, source-tx receipts, NEAR / Stellar recipient checks, address encoding, the pinned swap contracts | Packaged with the release; balance reads kept 5 s; other chain reads uncached |
Aggregator | Cross-chain swap token data | 2 min |
SODAX Docs MCP (docs.sodax.com) | SDK documentation | Auto-sync |
Local Development
# Install dependencies
pnpm install
# Run in development mode
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run the unit tests
pnpm testCI & Local Checks
Every pull request, into any branch, runs .github/workflows/ci.yml, which executes the same four checks you can run locally:
Command | What it does |
| Type-checks the project, and the scripts under |
| Runs Biome ( |
| Compiles TypeScript and copies |
| Runs the Vitest unit suite ( |
| Runs the swap contract tests against the live Swaps API (production; |
| Makes one real 5 USDC swap between Arbitrum and Base through a running server's swap tools, signed by a funded test wallet (see below). |
Canary swap E2E
.github/workflows/e2e-canary.yml runs pnpm e2e:canary on demand only (manual dispatch), against a server it starts in the runner with SODAX_ENV=canary. Canary runs on mainnet chains, so it moves real funds: 5 USDC from whichever of Arbitrum and Base holds more to the other, so runs alternate. It never runs on pull requests. A failure posts the failing stage to Discord: setup means the swap never started (install, build or the server start failed, or an env value is missing or malformed); read_wallet means the balance reads failed; balance_floor means the wallet needs a top-up (USDC, or ETH for gas); quote means no ready quote came back, its steps weren't the USDC approve and swap this route needs, or its minimum output was under 97% of the amount. Nothing was signed in any of these. send means the swap wasn't sent, or the node refused it and no node had it (an approve may have been mined): check the logged swap hash, if there is one; track means a swap may be on chain and needs a look; arrival means it was solved but the funds haven't reached the destination yet. The script's output is printed after the run, and the server log after a failure, unless a secret (the API key, the wallet key with or without 0x, an RPC URL's host or path) shows up in either: that fails the run on its own, Discord gets the stage a secret in the logs, and neither is printed.
The secrets live in the canary-e2e GitHub environment, limited to the default branch: E2E_WALLET_PRIVATE_KEY (a wallet used only here), E2E_SODAX_API_KEY (a canary key), DISCORD_WEBHOOK_URL, and optionally SODAX_RPC_URL_42161 / SODAX_RPC_URL_8453, which the workflow passes to the server and the script as their RPC_CONFIG. AMOUNT is at most 20. A manual run with an amount the wallet doesn't hold makes a deliberate red run that sends nothing; a manual dry run only quotes, to check the environment and key before the wallet is funded.
To run it locally, start a server with pnpm build && SODAX_ENV=canary node dist/index.js (not pnpm start, which loads .env), then MCP_URL=http://127.0.0.1:3000/mcp?profile=swap SODAX_API_KEY=… pnpm e2e:canary with E2E_WALLET_PRIVATE_KEY exported from read -rs (not typed on the command line, where shell history keeps it). E2E_DRY_RUN=1 stops after the quote and needs no wallet. Don't run it while the workflow runs: both use the same wallet's nonces.
Git hooks (husky + commitlint + lint-staged)
pnpm install installs the hooks automatically via the prepare script:
pre-commit— runspnpm checkTs,pnpm test, thenlint-staged(which runsbiome check --writeon staged files, applying both formatting and safe lint fixes).commit-msg— runscommitlintagainst the Conventional Commits spec. Messages likefeat: add Xpass;bad messageis rejected.
To skip the hooks in a one-off emergency:
HUSKY=0 git commit -m "your message"Don't make a habit of it — CI will still enforce the same checks on the PR.
Environment Variables
The server auto-loads a .env file on startup (via Node's --env-file-if-exists
flag; the OpenTelemetry SDK that ships the logs needs Node ≥ 22.15.0). Copy .env.example to .env for local development;
if no .env exists, every variable falls back to the default below. In production,
Coolify injects these directly into the process environment.
Variable | Default | Description |
|
| Server port |
|
| Transport mode ( |
|
| SODAX API host: |
| - | stdio only: the SODAX API key ( |
|
| stdio only: the tool profile ( |
|
| Kill switch for the swap tools: |
|
| A quote worth more than this many USD (solver oracle price) tells the agent to confirm the amount with the user. It never blocks. A positive number; anything else stops the server at startup. |
| SDK defaults | The RPCs the swap tools read chains through (track, cancel, balances, the quote's NEAR storage and Stellar trustline checks, and the swap tx it builds on a non-EVM chain), in the SODAX backend's format, so the backend's value works as is: a JSON object keyed by chain key, in the SDK's field names (in a |
| - | stdio only: the partner fee on swap quotes (see Partner fee). Ignored over HTTP. |
| - | Set to |
|
| Log verbosity. One of |
| - | Discord webhook for runtime alerts: server status (start/stop), significant errors (uncaught/unhandled), API-drift summaries and the swap alerts (see Operating the swap tools). Empty/unset = silent (staging/local). |
| - |
|
| - | The log gateway's URL: the full |
| - | The bearer token for that gateway, one per environment. Secret: the deployment's env only. The server sends it as its only header: |
| - |
|
| - | The host's label, as |
| package version | The running commit, the records' |
Deployment
Environments
The server is deployed via Coolify with a branch-based promotion flow:
Production — tracks
master, serves https://mcp.sodax.comStaging — tracks
development(internal-only)
Promotion flow:
Feature branches → PR into
development→ auto-deploys to staging on merge.development→ PR intomaster→ auto-deploys to production on merge.
Hotfixes can branch off master and PR directly into master, then be merged back into development.
Docker
docker build -t sodax-mcp .
docker run -p 3000:3000 sodax-mcpDocker Compose
docker-compose up -dDeployment notes
Coolify builds the Dockerfile, the same image CI builds. The image sets NODE_ENV=production; PORT defaults to
3000. With Coolify's "Include Source Commit in Build" on, the image also sets GIT_SHA, the version the log records
carry (see Logging). nixpacks.toml is kept for a nixpacks build, which sets no GIT_SHA.
Operating the swap tools
Swap quotes live in the server's memory, so:
Run one replica. Another replica doesn't have the first one's quotes.
A merge deploys (into
developmentfor staging, intomasterfor production), so checkGET /healthbefore merging, and before a restart.swapQuotes.opencounts the quotes whose deposit hasn't reached the backend yet, signed or not, andswapQuotes.openUntilis when the last of them expires (its deadline plus 30 minutes). New quotes keep arriving while you wait, so on a busy server the count may not reach 0: deploy at a quiet moment, or once theopenUntilyou read has passed, accepting that quotes made since then are lost. A lost quote only matters if its deposit was sent: that deposit stays on chain until someone relays it.Set
DISCORD_WEBHOOK_URLin production. The stop message and a crash alert say how many quotes were lost (a kill without SIGTERM, such as running out of memory, sends nothing). When an agent then tracks such a deposit with its chain and quoteId (a call with the quoteId alone is first asked for the chain), Discord gets "Swap deposit without its quote: relay it by hand", with the chain and the tx hash. Swap alerts are capped per hour: 20 for deposits this server checked, 5 for deposits it has no quote for or can't check against one (any key can name one) and 5 for tool errors. Past its cap an alert is held and listed in one post at the end of the hour; past 12 held per cap, it is only in the logs (alert: <kind>), so check them after a restart that lost many quotes.To recover one, relay the deposit tx with
sodax_relay_submit_tx(the chain's relay id is insodax_get_relay_chain_id_map). That puts the intent on the hub; past its deadline the backend's canceller refunds it, as it does when track relays an expired deposit.SODAX_SWAP_TOOLS_ENABLED=falseturns the swap tools off without a rollback. It takes a restart, so the same wait applies.
Logging
Logs go to stderr as JSON (one line per record, URLs and keys redacted). With OTEL_LOGS_ENABLED=true the same records also ship to unified logging, with SeverityText in lowercase (info, warn, error) as the backend sends it. Every record of one HTTP request (or one stdio tool call) carries request.id, so a call can be followed from the agent's request to the answer; a swap's quote, track and cancel calls are joined by quote.id, tx.hash and intent.hash. Each MCP response carries its request's id in an X-Request-Id header, for a builder to quote when reporting a problem (over SSE, the tool calls' ids are on the POST /messages responses, not on the stream), and calls to SODAX's own APIs send it in the same header. Names follow the OpenTelemetry conventions where one exists. The records to query and alert on:
Record | Level | When | Attributes |
| info ( | each MCP request ( |
|
| info for the caller's failure, | each tool call, and each call the SDK refuses before a handler runs |
|
| info, | each call to the SODAX APIs, the solver, the relay and the docs MCP |
|
| info, | each bounded SDK or RPC read |
|
| info | track handed a checked deposit to the backend |
|
| info | the cache drops a quote no deposit claimed: within a minute of its expiry, 30 minutes past its deadline ( |
|
| info |
|
|
| info | boot |
|
| warn | boot, when |
|
| warn | boot, when an old RPC variable is still set (it has no effect) |
|
| warn, error | the SDK's own log lines |
|
| warn | a Swaps API error answer |
|
an operator alert, titled by its kind | error | a swap needs an operator: a deposit that can't be submitted or doesn't match its quote, a refund that couldn't start, a swap the service built wrong ( |
|
| warn | a limiter's first refusal per client per window |
|
| info | every five minutes, whatever |
|
A record's body is a constant (Body = 'Tool call'); what varies is in its attributes. One failure is one record of each kind: the data services don't log what Upstream call, Chain read and Tool call already say.
error.type says why:
HTTP request, the guard that refused it:UNKNOWN_PROFILE,SWAP_PROFILE_OFF,API_KEY_REQUIRED,API_KEY_MALFORMED,INVALID_PARTNER_FEE,SSE_KEY_MISMATCH,SSE_SESSION_LIMIT,SSE_SESSION_NOT_FOUND,BATCH_TOO_LARGE,RATE_LIMITED,METHOD_NOT_ALLOWED,INVALID_JSON,BODY_TOO_LARGE,INVALID_REQUEST,INTERNAL. A refusal the MCP SDK's transport sends itself (406, 415) has only its status.Tool callthe SDK refused before a handler ran:TOOL_NOT_FOUND,INVALID_ARGUMENTS,TOOL_DISABLED,TOOL_CALL_REFUSED.A swap tool's failure: the code the tool returned.
A data or docs tool's failure, by its cause:
UPSTREAM_NOT_FOUND,UPSTREAM_4XX,UPSTREAM_5XX,UPSTREAM_TIMEOUT,UPSTREAM_UNREACHABLE,UPSTREAM_BAD_RESPONSE;RATE_LIMITED(a 429 on the caller's key) orUPSTREAM_RATE_LIMITED(a 429 on a keyless call, so this server's shared egress);INVALID_INPUT;DOCS_RPC_ERROR,DOCS_TOOL_ERROR,DOCS_UNAVAILABLE(a 4xx from the docs server: its endpoint moved or gone);INTERNALwhen nothing explains it.
A Tool call is at warn when the failure is on SODAX's side: UPSTREAM_RATE_LIMITED, UPSTREAM_5XX,
UPSTREAM_TIMEOUT, UPSTREAM_UNREACHABLE, UPSTREAM_BAD_RESPONSE, DOCS_UNAVAILABLE, UPSTREAM_UNAVAILABLE,
CHAIN_UNAVAILABLE, SWAP_MISMATCH, PRICE_OFF_MARKET, INTERNAL.
Export is batched and bounded: a gateway outage drops records and never slows a tool call; a stop or crash flushes what it can; a failure to start leaves the logs on stderr and the server serving. GET /health reports unifiedLogging (on, records written, exported and failed, lastFailureAt), so a token or allowlist problem shows there before Grafana; the heartbeat keeps a quiet server from looking like a stopped producer. A batch the gateway accepted but partly rejected counts as exported and is logged as a warning. The hub's unified-logging-connect skill has the connect check.
API Endpoints
Endpoint | Description |
| Landing page |
| Server info, tool list and profiles |
| Health check; |
| MCP endpoint (streamable HTTP); |
| SSE endpoint (legacy transport) |
| SSE message endpoint |
Errors and limits
/mcp answers HTTP errors with a JSON-RPC error, {"jsonrpc":"2.0","error":{"code":…,"message":"…"},"id":null}.
Read error.message; error is an object here.
Every MCP response carries an X-Request-Id header (over SSE, on the POST /messages responses). Quote it when
reporting a problem: the server's logs find the request by it.
Status | On |
|
400 | Invalid JSON | -32700 |
400 | A batch of more than 10 messages | -32600 |
405 |
| -32000 |
413 | A body over 100 kB | -32600 |
429 | A rate limit | -32000 |
500 | A server error | -32603 |
On /sse and /messages, the rate limits, an unknown session and server errors answer {"error":"…"}; the SSE
transport's own errors (a message it can't parse, for one) are plain text.
Limits are per client IP (IPv6 per /56): 100 requests a minute on all routes, and 60 a minute on /mcp, /sse and
/messages, where each message of a /mcp batch counts. A rate-limit 429 carries Retry-After and RateLimit-*
headers. SSE allows 10 open sessions per client and 200 in all, and closes a session after an hour without a message.
Related
SODAX — sodax.com
SDK Documentation — docs.sodax.com (proxied automatically)
License
MIT
Available Tools
40 toolsdocs_healthARead-onlyInspect
Check SDK documentation availability. Call this first if docs tools seem unavailable.
Inputs: no named parameters.
docs_list_toolsARead-onlyInspect
List all SDK documentation tools with parameters. Essential for discovering what's available.
Inputs: no named parameters.
docs_query_docs_filesystem_sodax_docsARead-onlyInspect
[SDK Docs] Run a read-only shell-like query against a virtualized, in-memory filesystem rooted at / that contains ONLY the SODAX Docs documentation pages. This is NOT a shell on any real machine — nothing runs on the user's computer, the server host, or any network. The filesystem is a sandbox backed by documentation chunks.
This is how you read documentation pages: there is no separate "get page" tool. To read a page, pass its .mdx path to head or cat — a page at the URL path /some/page lives at /some/page.mdx. To search the docs with exact keyword or regex matches, use rg. To understand the docs structure, use tree or ls.
Paths are specific to this site — never guess them. Discover real paths with tree / -L 2, ls /, or the search tool before reading. If a path does not exist, that only means the guess was wrong; it does NOT mean the topic is undocumented — use rg -il "keyword" / to find where it is covered.
Workflow: Start with the search tool for broad or conceptual queries like "how to authenticate" or "rate limiting". Use this tool when you need exact keyword/regex matching, structural exploration, or to read the full content of a specific page by path.
Supported commands: rg (ripgrep), grep, find, tree, ls, cat, head, tail, stat, wc, sort, uniq, cut, sed, jq, plus basic text utilities. No writes, no network, no process control. Run --help on any command for usage.
Each call is STATELESS: the working directory always resets to / and no shell variables, aliases, or history carry over between calls. If you need to operate in a subdirectory, chain commands in one call with && or pass absolute paths (e.g., cd /some-directory && ls or ls /some-directory). Do NOT assume that cd in one call affects the next call.
Examples (replace the placeholder paths with real ones from tree or search):
tree / -L 2— see the top-level directory layoutrg -il "rate limit" /— find all files mentioning "rate limit"rg -C 3 "apiKey" /some-directory/— show matches with 3 lines of context around each hithead -80 /some/page.mdx— read the top 80 lines of a specific pagehead -80 /page-one.mdx /page-two.mdx /section/page-three.mdx— read multiple pages in one callcat /some/page.mdx— read a full page when you need everything
Output is truncated to 30KB per call. Prefer targeted rg -C or head -N over broad cat on large files. To read only the relevant sections of a large file, use rg -C 3 "pattern" /path/file.mdx. Batch multiple file reads into a single head or cat call whenever possible.
When referencing pages in your response to the user, convert filesystem paths to URL paths by removing the .mdx extension. For example, /some/page.mdx becomes /some/page.
Inputs: command (required).
docs_refreshAIdempotentInspect
Reconnect to SDK documentation and refresh available tools. Use if docs seem stale or unavailable.
Inputs: no named parameters.
docs_search_sodax_docsARead-onlyInspect
[SDK Docs] Search across the SODAX Docs knowledge base to find relevant information, code examples, API references, and guides. Use this tool when you need to answer questions about SODAX Docs, find specific documentation, understand how features work, or locate implementation details. The search returns contextual content with titles and direct links to the documentation pages. If you need the full content of a specific page, use the query_docs_filesystem tool to head or cat the page path (append .mdx to the path returned from search — e.g. a result at /some/page is read with head -200 /some/page.mdx).
Inputs: query (required).
sodax_check_chain_supportARead-onlyInspect
Check whether SODAX supports a specific blockchain, given its name, ticker, chain key or EVM chain id (e.g. 'Hedera', 'HBAR', 'hedera', 'Base', 'Arbitrum', '8453'). Use this to answer 'does SODAX support X?' questions authoritatively instead of guessing — it resolves the name to a chain key and confirms against the live network registry.
Inputs: chain (required).
sodax_get_all_borrowersARead-onlyInspect
Get all borrowers across all money market assets with pagination
Inputs: limit, format, offset.
sodax_get_all_chains_configsARead-onlyInspect
Get detailed configuration for all spoke chains including contract addresses, RPCs, and token configs
Inputs: format.
sodax_get_all_configARead-onlyInspect
Get full SODAX configuration including all supported chains, swap tokens, and protocol settings in one call
Inputs: format.
sodax_get_amm_pool_candlesCRead-onlyInspect
Get OHLCV candlestick chart data for an AMM pool
Inputs: to (required), from (required), poolId (required), chainId (required), +2 more.
sodax_get_amm_positionsARead-onlyInspect
Get AMM liquidity provider NFT positions, optionally filtered by owner address
Inputs: limit, owner, format, offset.
sodax_get_asset_borrowersARead-onlyInspect
Get borrowers for a specific money market asset by its reserve address
Inputs: reserveAddress (required), limit, format, offset.
sodax_get_asset_suppliersARead-onlyInspect
Get suppliers (lenders) for a specific money market asset by its reserve address
Inputs: reserveAddress (required), limit, format, offset.
sodax_get_circulating_supplyARead-onlyInspect
Get SODA token circulating supply as a plain number
Inputs: format.
sodax_get_hub_assetsBRead-onlyInspect
Get assets representing spoke tokens on the hub (Sonic) chain, optionally filtered by source chain
Inputs: format, chainId.
sodax_get_intentARead-onlyInspect
Look up a specific intent by its intent hash (different from transaction hash)
Inputs: intentHash (required), format.
sodax_get_money_market_assetARead-onlyInspect
Get detailed information for a specific money market asset by its reserve address
Inputs: reserveAddress (required), format.
sodax_get_money_market_assetsBRead-onlyInspect
List all assets available for lending and borrowing in the SODAX money market
Inputs: format.
sodax_get_money_market_reserve_assetsBRead-onlyInspect
Get money market reserve assets used as collateral backing
Inputs: format.
sodax_get_money_market_tokensARead-onlyInspect
Get tokens supported for money market lending/borrowing, optionally filtered by chain
Inputs: format, chainId.
sodax_get_orderbookARead-onlyInspect
Get current orderbook entries showing pending/open intents
Inputs: limit, format, offset, creator, +7 more.
sodax_get_partnersARead-onlyInspect
List all SODAX integration partners including wallets, DEXs, and other protocols
Inputs: format, chainId.
sodax_get_partner_summaryARead-onlyInspect
Get volume and activity summary for a specific integration partner by their receiver address
Inputs: receiver (required), format, chainId.
sodax_get_relay_chain_id_mapARead-onlyInspect
Get mapping between chain IDs and intent relay chain IDs used by the SODAX relay network
Inputs: format.
sodax_get_solver_intentARead-onlyInspect
Get solver-side details for an intent including fill history. Use includeAll to see all solver documents.
Inputs: intentHash (required), format, includeAll.
sodax_get_solver_oracleARead-onlyInspect
Get the solver's oracle USD prices per (chain, token). For quoting with sodax_get_solver_quote, filter chainId='146': chainId-146 addresses pass the quote service's compatibility check, while spoke-chain (non-146) addresses are rejected with 'not compatible with the quote service'. Caveat: passing that check (being listed/priced) does NOT guarantee a swap route — canonical bridged *_ASSET hub tokens and major stablecoins route most reliably, while many wrapped/derivative/money-market entries (e.g. WBTC, waLocBTC, SONIC_SODA_ASSET) are priced but frequently return 'No path was found', and routability is pair/amount/liquidity-dependent. Also useful for sanity-checking quote amounts against the USD prices the solver uses.
Inputs: format, symbol, chainId.
sodax_get_solver_quoteARead-onlyInspect
Get a swap quote from the SODAX solver. tokenSrc/tokenDst MUST be hub-chain (Sonic, chainId 146) asset addresses — look them up with sodax_get_solver_oracle (chainId='146'). Working example: tokenSrc='0xeb0393893b5bf98a50073d6740738b08e575058b' (BTC_BTC_ASSET) → tokenDst='0xaeafa26e43f46cd83efe89b1e57c858eb5685a24' (ETH_ASSET), amount='99800', quoteType='exact_input' returns a quoted_amount. exact_input quotes the destination amount you'd receive; exact_output quotes the source amount you'd need. There are two distinct HTTP-400 failures, both naming the two addresses: (1) 'not compatible with the quote service' = an address isn't a recognized hub asset (a spoke-chain or otherwise non-chainId-146 address was passed) → use a chainId-146 address from sodax_get_solver_oracle, and for a reliable pick prefer a canonical bridged *_ASSET hub token or major stablecoin (chainId 146 alone doesn't guarantee a route). (2) 'No path was found between X and Y' = both tokens are valid hub assets but the solver couldn't route this pair for this amount → routing is pair/amount/liquidity-dependent, so retry with a smaller amount or a more liquid counterparty (a canonical bridged *_ASSET token, or a major stablecoin like SONIC_USDC_ASSET). Many wrapped/derivative entries (e.g. WBTC, waLocBTC, SONIC_SODA_ASSET) are oracle-priced but frequently have no route — prefer canonical bridged *_ASSET hub tokens.
Inputs: amount (required), tokenDst (required), tokenSrc (required), format, +1 more.
sodax_get_supported_chainsBRead-onlyInspect
List all blockchain networks supported by SODAX for cross-chain swaps and DeFi operations
Inputs: format.
sodax_get_swap_tokensARead-onlyInspect
Get available tokens for swapping on SODAX, optionally filtered by chain
Inputs: format, chainId.
sodax_get_token_supplyBRead-onlyInspect
Get SODA token supply information including total, circulating, and burned amounts
Inputs: format.
sodax_get_total_supplyARead-onlyInspect
Get SODA token total supply as a plain number
Inputs: format.
sodax_get_transactionARead-onlyInspect
Look up a specific transaction by its hash to see status, amounts, and details
Inputs: txHash (required), format.
sodax_get_user_positionARead-onlyInspect
Get a user's lending and borrowing position in the money market
Inputs: userAddress (required), format.
sodax_get_user_transactionsARead-onlyInspect
Get intent/transaction history for a specific wallet address
Inputs: userAddress (required), limit, format, offset, +2 more.
sodax_get_volumeARead-onlyInspect
Get solver volume data showing filled intents with filtering and pagination. Requires inputToken and outputToken. Optional filters: chain, solver, block range OR time range (don't mix both).
Inputs: inputToken (required), outputToken (required), sort, toTs, +11 more.
sodax_get_volume_statsARead-onlyInspect
Get aggregate solver volume stats: the approximate total number of filled-intent records (fill documents, not distinct intents). Cached ~60s upstream.
Inputs: format.
sodax_refresh_cacheAIdempotentInspect
Clear both the backend API cache and the solver oracle cache to force fresh fetches on next requests. Reports the number of entries cleared per cache. At most once a minute across the server.
Inputs: no named parameters.
sodax_relay_get_packetARead-onlyInspect
Fetch a single relay packet by its connection serial number (conn_sn). Returns the packet data on success or a {success:false, message} shape if the packet isn't found.
Inputs: connSn (required), txHash (required), chainId (required), format.
sodax_relay_get_transaction_packetsARead-onlyInspect
List every cross-chain packet emitted by a given source transaction. Use this to track relay status — a packet is complete when status='executed' and dst_tx_hash is populated.
Inputs: txHash (required), chainId (required), format.
sodax_relay_submit_txAIdempotentInspect
Submit a confirmed spoke-chain transaction to the SODAX intent relay so it can be delivered to the destination chain. The tx must already be finalized on the source chain. Re-submitting the same tx is a no-op. For split-tx chains (Solana, Bitcoin) supply the optional data argument.
Inputs: txHash (required), chainId (required), data, format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Many tools are genuinely distinct (intents, AMM, relay, money market, docs), but several clusters overlap: sodax_get_circulating_supply / sodax_get_total_supply / sodax_get_token_supply all report SODA supply, and sodax_get_all_config / sodax_get_all_chains_configs / sodax_get_supported_chains are hard to tell apart at a glance. The verbose descriptions do help disambiguate on closer reading, but an agent must read carefully to pick correctly among the config and supply families.
A consistent prefix pattern holds: nearly all domain tools use sodax_ + verb + noun (mostly sodax_get_*, with sodax_relay_* and a few action verbs like refresh_cache, check_chain_support). The docs group breaks the pattern (docs_health, docs_refresh, docs_list_tools vs. docs_search_sodax_docs, docs_query_docs_filesystem_sodax_docs), which are suffix-tagged generated names, creating a minor style split.
40 tools is a large surface that exceeds the comfortable range, especially with three separate supply tools and multiple config/token-listing tools that could be consolidated. The domain is broad (cross-chain intents, money market, AMM, relay, token stats, docs), but the count feels heavy rather than tightly scoped.
Coverage is genuinely broad: configuration, chains, intents (user and solver views), money market, AMM pools/candles, relay packets and submission, volume/supply stats, plus a full docs subsystem — so most read paths exist. The main gap is that swap quoting exists but there's no intent-creation/execution path beyond relay submission, leaving a partial write surface.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
API discovery and x402 paid execution via MCP. Search by natural-language, call with USDC payment on Arbitrum, Base, BNB, Solana, SEI
Agent MCP for DeFi: cross-chain LINQ fan-out, AMM quotes/swaps, bridge, AI. Solana+EVM. Free+x402.
Related MCP Servers
- AlicenseBqualityDmaintenanceInteract with the NEAR blockchain through MCP calls2332MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables cross-chain token swapping between different blockchains using 1inch Fusion+ API, along with portfolio management tools for tracking assets across chains.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with LI.FI's cross-chain infrastructure, providing access to blockchain networks, token data, bridges, and transaction services through a standardized protocol.-
- AlicenseBqualityDmaintenanceEnables LLM assistants to interact with the Hyperlane cross-chain protocol for deploying blockchain infrastructure, sending cross-chain messages, managing validators and relayers, and facilitating asset transfers between multiple blockchains.67MIT