Repository navigation
Honor per-server timeout from MCP config entries - #5760
CRYPTONIKAV wants to merge 2 commits into
Conversation
🤖 Generated with Claude Code
|
This pull request is awaiting maintainer assignment. Linked PRs stay open while maintainers triage the issue; this check remains failing until assignment. Per CONTRIBUTING.md, an external PR must reference an issue that's assigned to its author. To get there:
Once you're assigned and the link is present, this check is re-run automatically. Previously gate-closed PRs also reopen — no further action needed. Maintainers: reopen this PR or remove the |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a2843d99b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
BrickerP
left a comment
There was a problem hiding this comment.
Approve — clearest fix for #5754, including timeout: 0
This is one of three open PRs for the same bug (#5757, #5758, #5760). Of the three, this one gets the semantics right:
config_entry_timeout_secondsreturns(is_set, seconds), so a settimeout: 0overrides the client default and disables the session timeout (None), matchingClient/normalize_timeout_to_seconds(“0 means disabled”).- Single-server path overrides
read_timeout_secondsonly when the entry is set; multi-server proxy path applies the same helper. - Docs + focused tests for set / unset / override behavior.
Minor nits (non-blocking): the datetime.timedelta branch on the config field looks unused if the schema is ms int/float only; fine to keep for defensive parsing.
I re-requested changes on #5757 for the zero case and will comment on #5758 as a duplicate — maintainers should land one of these and close the other two.
🤖 Generated with Claude Code
|
Thanks for the contribution. #5758 incorporates the ClientGroup timeout fix and preserves CRYPTONIKAV’s co-authorship. It keeps the existing outer-client and backend timeout limits. Closing this overlapping PR. |
|
Thanks for folding the ClientGroup timeout fix into #5758 and preserving co-authorship — closing this one is the right call. Happy to help review further changes in that area. |
The
timeoutfield onRemoteMCPServerandStdioMCPServerconfig entries was silently dropped:to_transport()never forwarded it, so a config that looks capped actually runs unlimited. This threads it throughMCPConfigTransportinstead, converting the entry's milliseconds to the session'sread_timeout_secondsfor single-server configs and per-backend proxy clients in multi-server ones. An unset entry leaves the client default untouched, andtimeout: 0keeps its disabled meaning.Closes #5754.
�F916 Generated with Claude Code