5 pages for createsdkmcpserver.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
migration
Claude Developer Platform · in the page
managed-agents/migration
…(): print(msg) ``` ```typescript TypeScript import { createSdkMcpServer, query, tool } from "@anthropic-ai/claude-agent-sdk"; import { z } from "zod"; const getWeather = tool(…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…| | Register a tool with Claude | Wrap in `create_sdk_mcp_server` / `createSdkMcpServer` and pass to `mcpServers` in `query()`. See [Call a custom tool](#call-a-custom-tool). | | Pre-approve a tool |…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…hema can't be converted to JSON Schema, the server you created with [`createSdkMcpServer()`](https://code.claude.com/docs/en/agent-sdk/typescript#createsdkmcpserver) leaves that tool out when it lists…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…ent-sdk`: ```typescript theme={null} // Before import { query, tool, createSdkMcpServer } from "@anthropic-ai/claude-code"; // After import { query, tool, createSdkMcpServer } from "@anthropic-ai/cl…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…the same `query()`, `startup()`, [`prewarm()`](#prewarm), `tool()`, `createSdkMcpServer()`, and `resolveSettings()` as the root entry, along with the functions that rename, tag, and delete sessions,…