Documentation Index
Fetch the complete documentation index at: https://new-docs.velora.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Outcome
A minimal MCP client (≤50 lines of TypeScript) that connects to the Velora MCP server, lists available tools, and runs a single end-to-end quote → swap flow via tool calls.
Prompt
You are building a tiny standalone MCP client in TypeScript using the `@modelcontextprotocol/sdk` package.
Requirements:
- Connect to the Velora MCP server (transport and endpoint per /for-agents/mcp-server/installation).
- After connection, call `tools/list` and print the available tools.
- Run a `quote` tool call for 1 ETH → USDC on Ethereum mainnet with `partner=my-app-name`, then a `swap` tool call against the resulting quote.
- Print every tool result. Exit cleanly when the swap returns success or terminal failure.
- Total file size: ≤ 50 lines, excluding imports.
Reference these docs and follow them exactly:
- https://docs.velora.xyz/for-agents/mcp-server/overview
- https://docs.velora.xyz/for-agents/mcp-server/installation
- https://docs.velora.xyz/for-agents/mcp-server/available-tools
- https://docs.velora.xyz/for-agents/mcp-server/examples
Do NOT hardcode tool schemas — read them from `tools/list` and use the response shape at runtime.
End-state check
- The script runs end-to-end and prints a successful
swap result.
wc -l on the source file (sans imports) reports ≤ 50.