Repository navigation
[BUG] Claude code does not obey values of MCP_TIMEOUT longer than 60 seconds #7575
Description
Activity
- addedhas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:linuxIssue specifically occurs on LinuxIssue specifically occurs on Linux
on Sep 14, 2025 Found 2 possible duplicate issues:
- MCP Server Timeout Configuration Ignored in SSE Connections #3033
- [BUG] timeout makes you loose session #4810
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Reacted by marcindulak and Jeroen ZuiddamThe other issues don't have "Steps to Reproduce"
Same issue when I add serena mcp server
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
- addedautocloseIssue will be closed automaticallyIssue will be closed automatically
on Dec 7, 2025 Claude Code v2.0.60still seems not obeying theMCP_TIMEOUTenvironment variable setting, when longer than 60 seconds.Reacted by Jeroen Zuiddam- removedautocloseIssue will be closed automaticallyIssue will be closed automatically
on Dec 7, 2025 This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue was incorrectly closed despite human comments being present. This autoclose bot problem is reported in #16497
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
- locked as resolved and limited conversation to collaborators
on Jan 15, 2026
Preflight Checklist
What's Wrong?
Claude code does not obey values of MCP_TIMEOUT longer than 60 seconds
What Should Happen?
Claude code should obey longer values of MCP_TIMEOUT. This is needed for MCP servers that have a long startup times, e.g. download some resources.
Error Messages/Logs
Steps to Reproduce
Output:
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
1.0.113 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
The problem with the ingored timeout value may be related to the hard-code timeout mentioned in #424 (comment)