CLI
mcp-to-ai-sdk
CLI that generates versioned, code-owned AI SDK tool stubs from any MCP server to cut token cost and reduce prompt-injection risk.
- Type
- CLI
- Updated
- 2026-08-26
Install
via Positronick CLI
$positronick cli install mcp-to-ai-sdk --run
Official
$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.