Toreva
Non-custodial DeFi execution primitives for Solana. Best-execution routing for perpetual futures across Jupiter Perps, Pacifica, Drift, and Flash Trade. 1 bps fee to open. Everything else is free. 20 MCP tools for perps, yield, scanning, simulation, and execution.
toreva kit
Non-custodial execution primitives for Solana.
Best-execution routing across Jupiter Perps, Pacifica, Drift, and Flash Trade.
1 bps to open. Everything else is free.
Your agent decides. Toreva executes. Every action receipted.
Agentic perps setup
Use toreva_establish before perps execution when an agent needs delegated
authority for a human wallet. The standard perps pattern is:
human wallet
-> Toreva/Swig master authority
-> venue-specific child capability
-> Pacifica API agent wallet when Pacifica is selected
The human wallet remains the root owner. The Swig authority is the policy and capital-management control layer. Pacifica uses a separate API agent wallet because Pacifica REST orders require an on-curve Ed25519 signer. Toreva can create, bind, fund, route, monitor, and revoke that child capability through Toreva surfaces; the user does not need to open Pacifica.
For best execution, omit venue on toreva_perps_long or
toreva_perps_short. Toreva will compare enabled venues and route by estimated
all-in cost. Set venue only when you intentionally want a specific venue.
Perps tools use the Gateway MCP field contract: walletAddress, token,
sizeUsd, leverage, collateralToken, and collateralAmount.
The public integration packet lives in this repo:
Install
The fastest path — wires Toreva into your MCP-aware client (Claude Desktop, OpenClaw, Cursor) and authenticates you in two commands:
npx toreva init --client=claude-desktop # or openclaw | cursor
npx toreva login
toreva init writes the Toreva MCP server stanza into your client's
config file. toreva login runs the gateway's device-code flow and
stores the resulting token at ~/.config/toreva/config.json (chmod
600).
Restart your MCP client and verify:
npx toreva doctor
You should see three [ OK ] lines: config_present, auth_token,
mcp_call.
Per-client snippets live in examples/ — one folder per
supported client (claude-desktop, openclaw, cursor).
Direct package installs (advanced)
npm install @toreva/sdk # TypeScript client library
npm install -g @toreva/cli # global `toreva` binary
MCP server (stdio, run-it-yourself)
TOREVA_AUTH_TOKEN=your_token npx @toreva/mcp
MCP server (remote, no install)
https://mcp.toreva.com
Authentication
toreva login is the standard path. For CI / power users, set
TOREVA_AUTH_TOKEN directly to skip the device-code flow:
export TOREVA_AUTH_TOKEN=your_token
npx toreva login # writes the token to ~/.config/toreva/config.json
Use toreva login for the standard device-code flow, or request an integration
token from your Toreva contact. The Kit repository is the public source of
truth for agent, SDK, CLI, Skills, and MCP integration details.
Environment variables
| Var | Default | Purpose |
|---|---|---|
TOREVA_MCP_URL | https://mcp.toreva.com | Gateway URL |
TOREVA_AUTH_TOKEN | — | Skip device-code flow, persist this token |
TOREVA_CONFIG_DIR | ~/.config/toreva | Override on-disk config dir |
Perps tools
| Tool | Fee | What it does |
|---|---|---|
toreva_perps_long | 1 bps | Open long — routes to better fill |
toreva_perps_short | 1 bps | Open short — routes to better fill |
toreva_perps_close | Free | Close position at venue |
toreva_perps_add_margin | Free | Add margin |
toreva_perps_remove_margin | Free | Remove margin |
toreva_perps_cancel_order | Free | Cancel order |
toreva_perps_funding_settle | Free | Settle funding |
toreva_perps_simulate | Free | Preview before execution |
toreva_perps_explain | Free | Explain trade or position |
toreva_perps_query_* | Free | Position, funding, venues, markets |
Venues
| Venue | Fee | Model |
|---|---|---|
| Jupiter Perps | 6.0 bps flat | Oracle-based |
| Pacifica | 4.0 bps (Tier 1) | Order book variant |
| Drift Protocol | 3.5 bps taker | Order book |
| Flash Trade | 4.0 bps (Tier 1) | Order book variant |
Trades routed to Drift via toreva receive a 5% fee discount.
Strategy tools
| Tool | What it does |
|---|---|
toreva_strategies | Browse strategy catalog with pricing |
toreva_establish | Attach a delegated agent authority and child capabilities to a wallet |
toreva_earn | Deploy USDC to yield across venues |
toreva_scan | Survey portfolio state |
toreva_simulate | Dry-run without execution |
toreva_execute | Execute a strategy |
toreva_explain | Narrate what happened |
toreva_configure | Adjust settings |
Packages
| Package | What |
|---|---|
@toreva/sdk | TypeScript client library |
@toreva/cli | Command-line interface |
@toreva/mcp | MCP server for agent integration |
@toreva/types | Shared schemas and types |
Regulatory notice
This software provides tooling for interacting with the toreva execution service. It does not provide financial advice, investment advice, trading advice, or any other form of advice. Use of this software does not create a fiduciary relationship, advisory relationship, or any other professional relationship between you and Toreva Pty Ltd.
Toreva Pty Ltd is not responsible for any modifications made to this software by third parties, including modifications that alter or remove compliance language, disclaimers, or risk warnings. If you use a modified version of this software, you do so at your own risk and are responsible for ensuring your use complies with applicable law.
License
MIT — see LICENSE
Verwandte Server
Drainbrain
AI-powered Solana token rug pull detection with ML ensemble scoring, honeypot detection, and temporal rug stage prediction.
EU AI Act Omnibus Tracker MCP
Tracks EU AI Act Digital Omnibus amendments in real time — monitors deadline shifts (Annex III delayed to Dec 2027, watermarking to Nov 2026), generates compliance impact assessments, and alerts on regulatory changes.
tip.md x402 + CDP
An MCP server for the tip.md platform that enables AI agents to facilitate crypto tipping using x402 payment collection and CDP automatic disbursement.
StockSpark MCP Server
An MCP server for AI-powered vehicle dealership management.
CarAPI.dev
Remote MCP server giving AI agents instant access to comprehensive vehicle data: VIN decoding, license-plate lookup, stolen-vehicle checks, mileage history, inspection records, photos, and market valuations across 24 markets. Connect with a single Authorization: Bearer API key from any MCP client (Claude Desktop, Claude Code, Cursor, ChatGPT, Cline, Zed). Stateless and hosted at https://mcp.carapi.dev/mcp — no setup, no session management, just plug in your key and start querying. Includes a free carapi_docs tool for searching CarAPI documentation without authentication.
myinstants-mcp
A soundboard MCP server with millions of meme sounds from myinstants.com — search, play, and browse categories. npx myinstants-mcp to get started.
Ontheia (MCP-Client)
Self-hosted, open-source AI agent platform with native MCP support. Connect agents to any MCP server, run multi-agent workflows, and keep all data on your own infrastructure. GDPR by design.
mcp-datadog-server
Datadog MCP Server
Hawaii Conditions MCP
Real-time surf, trails, volcano, ocean safety, weather, and restaurants for all Hawaiian islands — built for AI agents.
Monzo
Access and manage your Monzo banking data, allowing you to check balances and view transactions.