skills/smithery.ai/TypeScript SDK Reference

TypeScript SDK Reference

Installation
SKILL.md

TypeScript SDK Reference

A comprehensive reference for building applications with the Anthropic Agent SDK (TypeScript), enabling programmatic interactions with Claude Code and custom tool integrations.

Installation

npm install @anthropic-ai/claude-agent-sdk

Quick Start

Core Functions

Function Purpose Key Use Case
query() Primary interface for Claude Code interactions Send prompts, stream responses, manage multi-turn conversations
tool() Define MCP tools with type-safe schemas Create custom tools for agents using Zod validation
createSdkMcpServer() Create in-process MCP servers Host tools natively in your application
Installs
First Seen
TypeScript SDK Reference from smithery.ai