ts-agent-sdk
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
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K