You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Reduce MCP connection timeouts to speed up agent startup #12557
Reduce MCP connection timeout values to speed up error detection and reduce waiting time during agent initialization.
Context
Current MCP timeout configuration uses conservative values:
MCP connection timeout: 120 seconds
MCP tool timeout: 60 seconds
These long timeouts add unnecessary wait time when connections fail or tools are unresponsive. Most successful connections complete within 10-20 seconds.
Impact: Save 5-8s (3-6% of agent startup time)
Approach
Review current timeout values in MCP configuration
Analyze successful MCP connection times from workflow logs
Set aggressive but safe timeout values based on real data
Test with multiple MCP servers (GitHub, safe outputs, custom)
Add retry logic if needed for robustness
Recommended Configuration
env:
MCP_TIMEOUT: 30000# Reduce from 120s to 30sMCP_TOOL_TIMEOUT: 20000# Reduce from 60s to 20s
Files to Modify
MCP configuration generation in pkg/workflow/
Environment variable setup in workflow templates
MCP gateway initialization scripts in actions/setup/
Any timeout constants in Go code
Acceptance Criteria
MCP connection timeout reduced to 30 seconds
MCP tool timeout reduced to 20 seconds
Agent initialization completes faster with new timeouts
No increase in MCP connection failures
Timeout values configurable via workflow frontmatter if needed
Activity
pelikhan commentedon Jan 29, 2026
Leave the time out as is. Some services load large database. It's the nature of the beast.
github-actions commentedon Jan 29, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.
The Copilot agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪