-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
ai-generatedcookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!enhancementNew feature or requestNew feature or requestperformanceplan
Description
Objective
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 30s
MCP_TOOL_TIMEOUT: 20000 # Reduce from 60s to 20sFiles 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
- Changes tested with all supported MCP servers
Related to Running goal: Improve and optimize time to start of coding agent and overall workflow time #12543
AI generated by Plan Command for #12543
Copilot
Metadata
Metadata
Labels
ai-generatedcookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!enhancementNew feature or requestNew feature or requestperformanceplan