Skip to main content

DEFAULT_MCP_TOOL_TIMEOUT

Constant DEFAULT_MCP_TOOL_TIMEOUT 

Source
pub const DEFAULT_MCP_TOOL_TIMEOUT: Duration;
Available on crate feature rmcp only.
Expand description

Default per-call timeout applied to MCP tools (see issue #1914).

MCP tool calls await a response that can be silently lost by the transport (e.g. an rmcp StreamableHttp session re-init dropping an in-flight request), which would otherwise hang the agent forever. A generous default bounds that without disrupting normal, long-running tools. Override per tool with McpTool::with_timeout (pass None to disable, e.g. for tools that may legitimately run longer than this).