|
Generate typed TypeScript SDKs for AI agents to call MCP server tools with clean function signatures. Converts MCP tool definitions (Zod schemas, descriptions, endpoints) into typed TypeScript interfaces, client methods, and example scripts Scans project for MCP servers in src/server/modules/mcp*/server.ts, extracts tool metadata, and generates module-based client classes with one async method per tool Includes built-in error handling (AuthError, ValidationError, RateLimitError, MCPError, NetworkError) and environment-based configuration for local, remote, or auto execution modes Generates runnable example scripts in scripts/sdk/examples/ and maintains a clean output structure with per-module types, clients, and index exports ts-agent-sdk Overview This skill generates typed TypeScript SDKs that allow AI agents (primarily Claude Code) to interact with web applications via MCP servers. It replaces verbose JSON-RPC curl commands with clean function calls. Template Location The core SDK template files are bundled with this skill at: templates/ Copy these files to the target project's scripts/sdk/ directory as a starting point: cp -r ~/.claude/skills/ts-agent-sdk/templates/* ./scripts/sdk/ SDK Generation Workflow
don't have the plugin yet? install it then click "run inline in claude" again.