[mcp] Increase default tool timeout to 300 seconds (#28234)

Summary
- Increase the default MCP tool-call timeout from 120 to 300 seconds.

Validation
- `just test -p codex-mcp`
- `just fmt`
This commit is contained in:
Alex Daley
2026-06-15 16:07:01 -04:00
committed by GitHub
Unverified
parent 1b81365926
commit 41db093aa0
+1 -1
View File
@@ -75,7 +75,7 @@ pub(crate) const MCP_TOOLS_LIST_DURATION_METRIC: &str = "codex.mcp.tools.list.du
pub(crate) const MCP_TOOLS_FETCH_UNCACHED_DURATION_METRIC: &str =
"codex.mcp.tools.fetch_uncached.duration_ms";
pub(crate) const DEFAULT_STARTUP_TIMEOUT: Duration = Duration::from_secs(30);
pub(crate) const DEFAULT_TOOL_TIMEOUT: Duration = Duration::from_secs(120);
pub(crate) const DEFAULT_TOOL_TIMEOUT: Duration = Duration::from_secs(300);
const UNTRUSTED_CONNECTOR_META_KEYS: &[&str] = &[
"connector_id",