Expand description
MCP (Model Context Protocol) support for Claude Agent SDK.
Structs§
- MCPServer
Status - Status of an MCP server.
- MCPTool
- Information about an MCP tool.
- MCPTool
Annotations - Annotations for an MCP tool.
- SdkMcp
Tool - Definition for an SDK MCP tool.
- SimpleMCP
Server
Enums§
- MCPConnection
Status - Connection status of an MCP server.
- MCPContent
- Content block for MCP tool results.
- MCPServer
Config - Configuration for an MCP server.
Functions§
- create_
sdk_ mcp_ server - Create an in-process SDK MCP server with pre-registered tools.
- create_
sdk_ mcp_ server_ with_ version - Create an in-process SDK MCP server with an explicit version.
- initialize_
server - Initialize an MCP server.
- tool
- Construct an SDK MCP tool definition.
- tool_
with_ annotations - Construct an SDK MCP tool definition with MCP annotations.