struct

Anthropic::MCPTool

Inherits JSON::Serializable < Anthropic::ServerTool < JSON::Serializable < Struct < Value < Object

MCP (Model Context Protocol) tool - connects to external MCP servers

Constructors

new(name : String, server_label : String, server_url : String, allowed_tools : Array(String) | Nil = nil)
Source
new(pull : JSON::PullParser)

MCP (Model Context Protocol) tool - connects to external MCP servers

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_tools
Source
name
Source
server_label

Server configuration

Source
server_url
Source
type
Source