Skip to content

Commit 00f8628

Browse files
committed
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 anomalyco#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 anomalyco#544 Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Lidang-Jiang <[email protected]>
1 parent 8b6140d commit 00f8628

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.codex/config.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,30 @@ notify = [
3838
[mcp_servers.github]
3939
command = "npx"
4040
args = ["-y", "@modelcontextprotocol/server-github"]
41+
startup_timeout_sec = 30
4142

4243
[mcp_servers.context7]
4344
command = "npx"
4445
args = ["-y", "@upstash/context7-mcp@latest"]
46+
startup_timeout_sec = 30
4547

4648
[mcp_servers.exa]
4749
url = "https://mcp.exa.ai/mcp"
4850

4951
[mcp_servers.memory]
5052
command = "npx"
5153
args = ["-y", "@modelcontextprotocol/server-memory"]
54+
startup_timeout_sec = 30
5255

5356
[mcp_servers.playwright]
5457
command = "npx"
5558
args = ["-y", "@playwright/mcp@latest", "--extension"]
59+
startup_timeout_sec = 30
5660

5761
[mcp_servers.sequential-thinking]
5862
command = "npx"
5963
args = ["-y", "@modelcontextprotocol/server-sequential-thinking"]
64+
startup_timeout_sec = 30
6065

6166
# Additional MCP servers (uncomment as needed):
6267
# [mcp_servers.supabase]

0 commit comments

Comments
 (0)