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)
Sourcenew(pull : JSON::PullParser)
MCP (Model Context Protocol) tool - connects to external MCP servers
new(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
allowed_tools
Sourcename
Sourceserver_url
Sourcetype
Source