providers/anthropic/mcp_models library

Anthropic MCP Connector models

This file contains models for Anthropic's MCP connector feature, which allows connecting to remote MCP servers directly from the Messages API without a separate MCP client. This is distinct from general MCP protocol implementations.

Reference: https://docs.anthropic.com/en/docs/agents-and-tools/mcp-connector

Classes

AnthropicMCPServer
Anthropic MCP server configuration for the MCP connector feature
AnthropicMCPToolConfiguration
Tool configuration for Anthropic MCP servers
AnthropicMCPToolResult
Anthropic MCP Tool Result content block
AnthropicMCPToolUse
Anthropic MCP Tool Use content block