Example Workflows
Cross-Chain Swap
A full order lifecycle from quote to settlement:Solver Operations
Managing your solver presence and diagnosing issues:Example Prompts
These prompts work with any MCP-compatible AI tool connected to the LI.FI Intents MCP server.Discover Routes
Prompt: “What cross-chain routes are available on LI.FI Intents?” Tool called:get-supported-routes
Returns available chain + token pairs with fees, activity status, and supported settlement methods.
Get a Quote
Prompt: “Get me a quote for 5 USDC from Ethereum to Base for 0x42fB…749b” Tool called:request-quote with chain names, token symbol, and recipient address. The server handles EIP-7930 encoding internally — no need to convert amounts to smallest units.
Submit an Order
Prompt: “Prepare and submit an order from that quote” Tools called:prepare-order— builds theStandardOrderfrom the cached quote- The AI prompts you to sign the order using EIP-712
submit-order— submits the signed order to the order server
Check Route Health
Prompt: “Check the health of the Ethereum Sepolia to Base Sepolia USDC route” Tool called:check-route-health — runs composite diagnostics including route support, quote inventory, and recent activity. Useful for diagnosing why orders aren’t being filled.
Debug an Order
Prompt: “Debug order intent_YaY_b3qxF3…” Tool called:debug-order — returns the order’s full lifecycle, transaction hashes on both chains, solver info, and settlement status.
End-to-End Settlement Flow
To complete a full cross-chain swap (not just submit an order, but actually move tokens on-chain), you need to:- Approve the escrow settler to spend your tokens
- Request a quote, prepare, and submit the order via MCP
- Deposit funds into the escrow contract on-chain
Step 1: Token Approval
Approve the escrow settler contract to spend your input token. The escrow settler address is the same on all chains:Step 2: Submit Order via MCP
Use the MCP tools in sequence:Signed — but funds are not yet locked on-chain.
Step 3: Deposit into Escrow
Callopen() on the escrow settler contract to lock your tokens. This triggers a transferFrom using your prior approval.
What Happens Next
Once the escrow is funded:- Solver sees the deposit and delivers tokens on the destination chain
- Settlement happens automatically via the Polymer oracle
- Order status progresses:
Signed -> Deposited -> Delivered -> Settled
track-order to monitor the full lifecycle. A typical mainnet settlement takes ~10 minutes.
Testnet vs Mainnet
| Testnet | Mainnet | |
|---|---|---|
| Chains | Ethereum Sepolia, Base Sepolia, Optimism Sepolia, Arbitrum Sepolia | Ethereum, Base, Arbitrum, Optimism, + more |
| Tokens | Testnet USDC, testnet WETH | Real USDC, WETH, ETH, etc. |
| Solver availability | Limited — may not have active solvers | Active solvers filling orders |
| RPC | Public Sepolia RPCs work | Use Alchemy/Infura for reliability |
| MCP URL | https://intents-mcp-testnet.li.fi/mcp | https://intents-mcp.li.fi/mcp |

