-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[MCP] Improve startup errors for timeouts and github #5595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cd05828 to
47c758f
Compare
💡 Codex Reviewhttps://github.com/openai/codex/blob/cd05828a80134866ccffae36d88a7170c6ad1179/codex-rs/core/src/codex.rs#L3142-L3153 The newly added timeout hint test still asserts the old message text ( ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
💡 Codex Reviewhttps://github.com/openai/codex/blob/cd05828a80134866ccffae36d88a7170c6ad1179/codex-rs/core/src/codex.rs#L3143-L3153 The new ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
codex-rs/core/src/codex.rs
Outdated
| let display = mcp_init_error_display(server_name, None, &err); | ||
|
|
||
| let expected = format!( | ||
| "MCP client for `slow` timed out after 10 seconds. Add or adjust `startup_timeout_sec` in the `mcp_servers.slow` section of your config.toml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: consider providing an exact snippet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, just did
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean printing something like
[mcp_servers.slow]
startup_timeout_sec = 60
that users can copy-paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good idea. I was fixated on making it one line but this is better.
Uh oh!
There was an error while loading. Please reload this page.