Skip to main content

Module mcp

Module mcp 

Source
Expand description

MCP (Model Context Protocol) support for Claude Agent SDK.

Structs§

MCPServerStatus
Status of an MCP server.
MCPTool
Information about an MCP tool.
MCPToolAnnotations
Annotations for an MCP tool.
SdkMcpTool
Definition for an SDK MCP tool.
SimpleMCPServer

Enums§

MCPConnectionStatus
Connection status of an MCP server.
MCPContent
Content block for MCP tool results.
MCPServerConfig
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.