mcp-server-usdd-test

v1.2.4
mcp-server-usdd-test Checked 2 days ago Published 6 months ago

MCP server for the USDD protocol across TRON, Ethereum, and BSC.

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

get_supported_networks

List supported USDD networks.

get_protocol_metrics

Get aggregated protocol metrics from website data (mainnet).

get_chain_metrics

Get chain-level core metrics from website data (mainnet).

ParameterTypeDescription
chain *string

get_collateral_prices

Get latest collateral highest-price data from website API (mainnet).

connect_browser_wallet

Connect a browser wallet (TronLink-compatible) and switch to browser mode.

ParameterTypeDescription
addressstringOptional browser wallet address override
networkstringTarget network. Default: tron

set_wallet_mode

Switch signing mode between browser and agent.

ParameterTypeDescription
mode *stringWallet signing mode
networkstringTarget network. Default: tron

get_wallet_mode

Get current signing mode (`browser` / `agent`) and active address.

ParameterTypeDescription
networkstringTarget network. Default: tron

set_network

Set default network for one family. Supports aliases (tron_mainnet, tron_nile, eth_mainnet, eth_sepolia, bsc_mainnet, bsc_testnet) or explicit network keys.

ParameterTypeDescription
network *stringNetwork alias or key, e.g. tron_mainnet, tron_nile, eth_mainnet, bsc_testnet, tron, eth_sepolia
familystringNetwork family. Use with aliases like mainnet.

get_network

Get per-family default networks.

get_wallet_address

Get wallet status and active address for a network.

ParameterTypeDescription
networkstringTarget network. Default: tron

list_wallets

List encrypted wallets stored in ~/.agent-wallet and show which ones are active.

import_wallet

Import a private key or mnemonic into the encrypted local wallet store.

ParameterTypeDescription
secret *stringPrivate key or mnemonic phrase
secretType *stringSecret type to import
walletType *stringWallet family: tron or evm
indexintegerMnemonic derivation index. Default: 0

set_active_wallet

Set the active encrypted wallet by ID. Active wallet selection is tracked separately for tron and evm.

ParameterTypeDescription
walletId *stringWallet id from list_wallets
walletTypestringOptional wallet family to activate independently (tron or evm)

get_protocol_overview

Get protocol addresses, ceilings, configured ilks, and PSM markets for USDD.

ParameterTypeDescription
networkstringTarget network. Default: tron

get_supported_ilks

List configured collateral types and PSM joins for a network.

ParameterTypeDescription
networkstringTarget network. Default: tron

get_oracle_status

Inspect liquidation ratio, penalty, and oracle status for a collateral type.

ParameterTypeDescription
ilk *stringCollateral type like TRX-A, WBTC-A, USDT-A, PSM-USDT
networkstringTarget network. Default: tron

get_psm_status

Inspect PSM fees and enablement state.

ParameterTypeDescription
market *stringPSM market like PSM-USDT
networkstringTarget network. Default: tron

get_psm_metrics

Get PSM swap metrics by route, including fromToken/toToken/available/fee.

ParameterTypeDescription
market *stringPSM market like PSM-USDT
networkstringTarget network. Default: tron

get_user_vaults

List all vault IDs for the configured wallet or a given address.

ParameterTypeDescription
addressstringOptional wallet address
networkstringTarget network. Default: tron

get_vault_summary

Get collateral, debt, and liquidation metrics for one vault.

ParameterTypeDescription
cdpId *stringVault/CDP id
networkstringTarget network. Default: tron

analyze_vault_risk

Get risk analysis for one vault with warnings.

ParameterTypeDescription
cdpId *stringVault/CDP id
networkstringTarget network. Default: tron

get_savings_status

Inspect USDD Savings metrics where supported.

ParameterTypeDescription
networkstringTarget network. Default: tron

open_vault

Open a vault/CDP via DSProxy. Idempotent: if a vault for the given ilk already exists, returns the existing CDP id without submitting a transaction.

ParameterTypeDescription
ilk *stringCollateral type like TRX-A, WBTC-A, or SA001-A
networkstringTarget network. Default: tron

get_native_balance

Get native token balance (TRX/ETH/BNB) for the configured wallet or a specified owner.

ParameterTypeDescription
networkstringTarget network. Default: tron
ownerstringOptional owner address; defaults to configured wallet

get_token_balance

Get ERC20/TRC20 token balance for the configured wallet or a specified owner.

ParameterTypeDescription
token *stringToken contract address
decimalsintegerOptional token decimals override
networkstringTarget network. Default: tron
ownerstringOptional owner address; defaults to configured wallet

check_allowance

Check ERC20/TRC20 allowance for a spender, optionally against a required amount.

ParameterTypeDescription
spender *stringSpender contract or proxy address
token *stringToken contract address
amountstringOptional human-readable amount to compare against
decimalsintegerOptional token decimals override
networkstringTarget network. Default: tron
ownerstringOptional owner address; defaults to configured wallet

prepare_token_transfer

Prepare a native/token transfer and return a preview for user review. After calling this tool, you MUST present the transfer details to the user and wait for their explicit confirmation before calling confirm_token_transfer. Do NOT proceed automatically.

ParameterTypeDescription
amount *stringHuman-readable amount, e.g. 0.1
to *stringRecipient address
decimalsintegerOptional token decimals override for non-standard/proxy tokens.
networkstringTarget network. Default: tron
tokenAddressstringToken contract address. Omit for native TRX transfer.

confirm_token_transfer

Execute a previously prepared transfer. IMPORTANT: MUST ONLY be called after the human user has explicitly reviewed the prepare_token_transfer output and verbally confirmed they want to proceed (e.g. 'yes', 'confirm', 'go ahead'). Never call this automatically right after prepare_token_transfer — always wait for the user's explicit approval first.

ParameterTypeDescription
confirm *booleanMust be true to execute. Pass false to cancel.
confirmationId *stringID returned by prepare_token_transfer

approve_token

Approve an ERC20/TRC20 token spender. Use before ERC20 collateral or PSM writes when needed.

ParameterTypeDescription
amount *stringHuman-readable amount or 'max'
spender *stringSpender contract or proxy address
token *stringToken contract address
decimalsintegerOptional token decimals override
networkstringTarget network. Default: tron

deposit_and_mint

Deposit collateral and mint USDD. If cdpId is omitted, reuses an existing vault for the ilk if one exists; otherwise opens a new vault and funds it in one transaction.

ParameterTypeDescription
collateralAmount *string
drawAmount *string
ilk *string
cdpIdstring
networkstringTarget network. Default: tron
transferFrombooleanFor ERC20 collaterals, whether proxy action should pull from wallet. Default: true

mint_usdd

Draw additional USDD debt from an existing vault.

ParameterTypeDescription
amount *string
cdpId *string
networkstringTarget network. Default: tron

repay_usdd

Repay USDD debt for an existing vault.

ParameterTypeDescription
amount *string
cdpId *string
networkstringTarget network. Default: tron

withdraw_collateral

Withdraw collateral from an existing vault.

ParameterTypeDescription
amount *string
cdpId *string
ilk *string
networkstringTarget network. Default: tron

close_vault

Repay all debt and free collateral using wipeAllAndFree* proxy actions.

ParameterTypeDescription
amountToFree *string
cdpId *string
ilk *string
networkstringTarget network. Default: tron

psm_swap_to_usdd

Swap gem collateral into USDD through the PSM.

ParameterTypeDescription
amount *string
market *string
networkstringTarget network. Default: tron

psm_swap_from_usdd

Swap USDD into the PSM gem asset.

ParameterTypeDescription
amount *string
market *string
networkstringTarget network. Default: tron

deposit_savings

Deposit USDD into sUSDD where supported.

ParameterTypeDescription
amount *string
networkstringTarget network. Default: tron

withdraw_savings

Withdraw USDD from sUSDD where supported.

ParameterTypeDescription
amount *string
networkstringTarget network. Default: tron

get_treasury_summary

Get latest USDD treasury report summary (mainnet data).

get_jst_buyback_stats

Get JST buyback/burn statistics from treasury report data (mainnet data).

get_smart_allocator_overview

Get Smart Allocator overview (debt, invested amount, earnings, APY).

get_assets_breakdown

Get Smart Allocator invested-asset breakdown by protocol, network, or asset.

ParameterTypeDescription
dimension *string

get_proof_of_reserve

Get Smart Allocator proof-of-reserve style platform investment details.

get_debt_overview

Get Smart Allocator debt overview grouped by network vault.