Install
npx mcp-to-ai-sdk@latest
$
A CLI that generates Vercel AI SDK tool stubs from any MCP server, described as "shadcn for MCP". Point it at an HTTP, SSE, or local MCP endpoint and it writes a client plus one TypeScript file per tool into your repo. Owning that code instead of calling the MCP live cuts context cost from unneeded tools, blocks prompt injection from server-side definition changes, and lets you narrow or override tool arguments.