概要
MCP Tools as Code provides a structured framework for converting discrete Model Context Protocol (MCP) tool calls into a unified, typed TypeScript library. By exposing MCP servers as code modules rather than context-heavy tool definitions, this skill allows AI agents to interact with external services with over 98% fewer tokens. It is an essential pattern for developers building sophisticated agents that manage complex workflows across multiple platforms, requiring native error handling, loops, and efficient data filtering within limited context windows.