Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CSPR_TRADE_PORT | No | HTTP server port. | 3000 |
| CSPR_TRADE_NETWORK | No | Casper network to connect to ('mainnet' or 'testnet'). | mainnet |
| CSPR_TRADE_TRANSPORT | No | Transport mode: 'stdio' or 'http'. | http |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_tokens | List all tradable tokens on CSPR.trade with optional fiat pricing |
| get_pairs | List trading pairs on CSPR.trade with reserves and pricing data |
| get_pair_details | Get detailed information about a specific trading pair |
| get_quote | Get a swap quote for trading between two tokens. Returns amounts, price impact, and routing path. |
| get_currencies | List supported fiat currencies for price display |
| build_swap | Build an unsigned swap transaction. Returns the deploy JSON for external signing, plus a human-readable summary. |
| build_approve_token | Build an unsigned token approval transaction. Spender defaults to the CSPR.trade router. |
| submit_transaction | Submit a signed transaction to the Casper network via node RPC. |
| build_add_liquidity | Build an unsigned add-liquidity transaction for a token pair |
| build_remove_liquidity | Build an unsigned remove-liquidity transaction |
| get_liquidity_positions | Get liquidity positions for an account |
| get_impermanent_loss | Calculate impermanent loss for a liquidity position |
| get_swap_history | Get swap transaction history |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |