Crig::McpTool
Inherits Crig::ToolDyn < Struct < Value < Object
Constructors
from_mcp_server(definition : MCP::Protocol::Tool, client : MCP::Client::Client) : self
Sourcenew(mcp_definition : MCP::Protocol::Tool, client : MCP::Client::Client, timeout : Time::Span | Nil = DEFAULT_MCP_TOOL_TIMEOUT)
SourceClass methods
Instance methods
client
Sourcedescription
Sourcemcp_definition
Sourcename
Sourceparameters
Sourcetimeout
SourceSet (or clear) the per-call timeout, returning a new tool. On elapse the call resolves to a ToolError instead of blocking forever (upstream #1914).