~/work/mcp-server-platformDe-facto lead engineer
MCP server platform
02 / 16
Project
MCP server platform — DeFi tools for AI agents
De-facto lead engineer
AltLayer's internal MCP DeFi server — the stateless Hono service that powers AltLLM's DeFi tool surface. Registers ~37 DeFi protocols (EVM + Solana) as MCP tool packages and exposes them through one JSON-RPC endpoint over Streamable HTTP, with a router pattern that makes the catalog usable by small models and a READ-first posture across the public surface.
Led the rewrite of the server runtime from Next.js to stateless Hono on Vercel serverless without breaking the public API, then designed the router-pattern consolidation and guided-mode ergonomics that let small models drive the catalog correctly.
- Owned the Next.js → Hono migration end-to-end — MCP protocol handler, auth routes, transaction API, OAuth and sign pages as Hono JSX, framework-agnostic auth library, and the Streamable HTTP transport on `@hono/mcp`.
- Designed `TOOL_MODE=lite` — collapses the per-tool catalog into ~10 category routers (swap, staking, lending, DEX, wallet, yield, automation, prediction, bridge, market-data) so small models pick 1-of-10 instead of 1-of-hundreds.
- Designed `TOOL_GUIDED=true` — workflow hints, schema-level examples, and `_meta.guided` metadata so weak / open-source LLMs can call the catalog without fabricating arguments.
- Authored the bulk of the protocol coverage end-to-end across lending and staking (Spark, Convex, EigenLayer, Rocket Pool, Marinade, Jito), DEX and aggregators (Balancer V3, 1inch, OKX, ParaSwap, Jupiter), NFT and prediction markets (OpenSea, Kalshi), cross-chain (LI.FI), data (DefiLlama, CoinGecko, DexPaprika, DeBank, crypto-mcp, 8004scan), wallet ops, and automation.
- Led the READ-first repositioning across 28 protocol tool packages — deferred WRITE / BUILD operations by default so the public surface is safe-by-default, and retired the obsolete API-key-gated build packages.
- Built the LLM tool-validation harness the team uses to gate releases — a Python runner over ~37 protocols and ~176 tools that reached ~97% pass rate on `altllm-basic` in dual-model runs.
- Flipped tools from a framework-internal signing abstraction back to raw calldata returns so any wallet — AltLLM's CDP wallets, external integrators, or autonomous agents — can consume the catalog without going through a hosted sign page.
- Hardened the catalog for multi-chain — RPC fallbacks across every CDP-supported network in `tools-common`, deterministic chain string-name resolution, multi-chain token-address enforcement in guided mode, and EVM + Solana parity through CDP embedded wallets.
Coverage & write-ups