Skip to main content

Technical Report · Setova Engineering · 2026-12-02

How Setova built a 33-tool non-custodial MCP server with zero autonomous spend

Most AI crypto tools force a bad trade-off: stay read-only and stop before execution, or hand private keys to an agent runtime. This report documents the exact security boundaries, OAuth 2.1 controls, and review handoffs running in production on Setova Connect MCP (xyz.setova/connect).

33

Scoped MCP tools

8

OAuth 2.1 PKCE scopes

0

Autonomous spend tools

0.5%

Flat swap fee ($0.20 min)

1. Three strict tool permission tiers

Every tool exposed on https://app.setova.xyz/api/mcp belongs to one of three server-enforced classes. No prompt instruction or model output can escalate an access token beyond the scopes you approved on the consent screen.

TierOAuth ScopesWhat it can doSpend authority
Read-only inspection6 scopes (portfolio, sets, orders, autobuy, perps, market)Reads balances, holdings, Set allocations, historical returns, open orders, quotes, indicators, and macro releases.None. Cannot change workspace state or move funds.
Reversible workspace writes1 scope (setova.workspace:write)Saves private Sets, updates watchlists, adds read-only watch wallets, and updates profile preferences.None. Every change is reversible and touches zero wallet funds.
Staged trade & action review1 scope (setova.review:prepare)Creates expiring, signed review handoffs (/review/[id] or /review/action) for swaps, Sets, limit orders, sends, AutoBuy, and cancels.None until you open the link in Setova, inspect the live quote and fee, and sign with your wallet.

2. OAuth 2.1 PKCE, token rotation, and kill-switch

PKCE S256 & Dynamic Client Registration

Clients discover authorization metadata via RFC 9728 and RFC 8414, register dynamically, and complete PKCE S256 consent at app.setova.xyz/oauth/authorize. Static API keys are never issued.

Refresh token rotation + reuse revocation

Every refresh mints a new token and invalidates the previous one. If a revoked or replayed refresh token is presented, Setova revokes the entire token family immediately.

Workspace-scoped isolation & rate limits

Access tokens bind strictly to a single workspace and audience (https://app.setova.xyz/api/mcp). Shared Postgres rate limits, concurrency caps, and payload redaction apply on every call.

One-click user revocation

Disconnect ChatGPT, Claude, Cursor, or any connected client anytime in Settings -> Connected Apps. Revocation invalidates active tokens immediately.

ScopeAccessPurpose
setova.portfolio:readRead-onlyRead current token valuations, holdings, and cross-chain balance coverage.
setova.sets:readRead-onlyInspect Featured Sets, Community Sets, personal Sets, weights, overlap, and historical returns.
setova.orders:readRead-onlyInspect open spot price orders, Hyperliquid orders, and bounded recent order history.
setova.autobuy:readRead-onlyInspect recurring AutoBuy schedules, cadences, spend caps, and expiry dates.
setova.perps:readRead-onlyRead Hyperliquid perpetual positions, margin summaries, fills, and open orders.
setova.market:readRead-onlyLook up live spot quotes, technical indicators, prediction markets, and official Fed/BLS macro releases.
setova.review:prepareStaged review onlyStage expiring in-app review links (/review/[id] and /review/action) that require your explicit wallet signature inside Setova.
setova.workspace:writeReversible workspace writesSave private Sets, update watchlists, add read-only watch wallets, and manage preferences. Never moves funds.

3. Why trade tools return expiring review links instead of executing

When you ask an AI assistant to buy a Set, swap USDC into BTC on Base or SOL on Solana, place a target price order, or cancel an existing order, the MCP tool cannot submit a transaction. Instead, Setova creates a workspace-bound, short-lived review record (/review/[id] or /review/action).

Opening the link loads your live authenticated session inside Setova, fetches fresh quotes, shows the flat 0.5% swap fee ($0.20 minimum per leg) and estimated gas, and waits for your explicit wallet signature. If you close the tab or let the link expire, nothing moves.

4. Verifiable production discovery endpoints

Every metadata document below is live in production and published under Setova's verified domain namespace xyz.setova/connect in the Official MCP Registry.

StandardIdentifierLive URL
Official MCP Registryxyz.setova/connect (v1.0.0)https://registry.modelcontextprotocol.io/v0.1/servers/xyz.setova%2Fconnect/versions/latest
Streamable HTTP MCP Endpoint/api/mcphttps://app.setova.xyz/api/mcp
ARD 1.0 AI Catalog/.well-known/ai-catalog.jsonhttps://app.setova.xyz/.well-known/ai-catalog.json
MCP Server Card (SEP-2127)/api/mcp/server-cardhttps://app.setova.xyz/api/mcp/server-card
OAuth 2.1 Discovery (RFC 9728 / 8414)/.well-known/oauth-protected-resourcehttps://app.setova.xyz/.well-known/oauth-protected-resource
API Catalog (RFC 9727)/.well-known/api-cataloghttps://app.setova.xyz/.well-known/api-catalog

Connect your AI assistant in 2 minutes

Start read-only with ChatGPT, Claude, Cursor, Claude Code, or Antigravity, then add review links only when you want them.

Canonical URL: https://setova.xyz/learn/how-setova-mcp-safety-works