MCP Server
Last updated
Was this helpful?
Was this helpful?
# Clone the SDK repo
git clone https://github.com/wheelx-fi/wheelx-sdk
cd wheelx-sdk/python
# Install dependencies
pip install fastmcp requests
# Run the server
python mcp_server.py# An AI agent calls the get_quote tool:
quote = await get_quote(
from_chain=1,
to_chain=1,
from_token="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
to_token="0xdAC17F958D2ee523a2206206994597C13D831ec7",
from_address="0x742d35Cc6634C0532925a3b8Dc9F6A7c5D3a7C6a",
to_address="0x742d35Cc6634C0532925a3b8Dc9F6A7c5D3a7C6a",
amount=1000000,
slippage=50
)
# Returns: request_id, amount_out, min_receive, transaction payload, etc.