From 00f8628b8372ae1285313c9d8e36e58cf1d8a10e Mon Sep 17 00:00:00 2001 From: Lidang-Jiang Date: Sat, 28 Mar 2026 09:52:17 +0800 Subject: [PATCH] fix(codex): add startup_timeout_sec to MCP servers to prevent first-run timeouts On first startup, npx-based MCP servers need to download packages before they can respond. The default timeout is too short for this, causing frequent "timed out after 10 seconds" errors reported in #544. Add startup_timeout_sec = 30 to all five command-based MCP servers (github, context7, memory, playwright, sequential-thinking). The URL-based exa server is unaffected and left unchanged. 30 seconds was chosen over the 20s precedent in merge-mcp-config.js to give extra headroom for slow networks on first run. Fixes #544 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Lidang-Jiang --- .codex/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.codex/config.toml b/.codex/config.toml index e1e1bf52..2b0f1f39 100644 --- a/.codex/config.toml +++ b/.codex/config.toml @@ -38,10 +38,12 @@ notify = [ [mcp_servers.github] command = "npx" args = ["-y", "@modelcontextprotocol/server-github"] +startup_timeout_sec = 30 [mcp_servers.context7] command = "npx" args = ["-y", "@upstash/context7-mcp@latest"] +startup_timeout_sec = 30 [mcp_servers.exa] url = "https://mcp.exa.ai/mcp" @@ -49,14 +51,17 @@ url = "https://mcp.exa.ai/mcp" [mcp_servers.memory] command = "npx" args = ["-y", "@modelcontextprotocol/server-memory"] +startup_timeout_sec = 30 [mcp_servers.playwright] command = "npx" args = ["-y", "@playwright/mcp@latest", "--extension"] +startup_timeout_sec = 30 [mcp_servers.sequential-thinking] command = "npx" args = ["-y", "@modelcontextprotocol/server-sequential-thinking"] +startup_timeout_sec = 30 # Additional MCP servers (uncomment as needed): # [mcp_servers.supabase]