Conversation
MCP servers boot in the background while a query starts, but a query that needs an MCP tool before startup finishes used to wait silently with no feedback. Once the wait passes 4 seconds, the CLI now prints a single updating line naming the pending servers, e.g. `⏱ Starting MCP server bookworm… 4.3s`, so a slow server doesn't look like a hang. The line is cleared once every server has started or a required one fails. The indicator is configurable under `[style.mcp_startup]`: `show` disables it, `delay_secs` controls how long a server can take before the line appears (default 4s, set to 0 to show immediately), and `interval_ms` controls the update rate. Each MCP server also gets its own configurable startup timeout via `startup_timeout_secs` (default 60s), replacing the previous hardcoded 1-minute timeout. Servers that legitimately take longer, such as ones that compile from source on spawn, can now raise this per server. The resulting `InitializeTimeout` error reports the configured deadline and includes the captured stderr tail, which usually points at the actual problem. Closes: #845 Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP servers boot in the background while a query starts, but a query that needs an MCP tool before startup finishes used to wait silently with no feedback. Once the wait passes 4 seconds, the CLI now prints a single updating line naming the pending servers, e.g.
⏱ Starting MCP server bookworm… 4.3s, so a slow server doesn't look like a hang. The line is cleared once every server has started or a required one fails.The indicator is configurable under
[style.mcp_startup]:showdisables it,delay_secscontrols how long a server can take before the line appears (default 4s, set to 0 to show immediately), andinterval_mscontrols the update rate.Each MCP server also gets its own configurable startup timeout via
startup_timeout_secs(default 60s), replacing the previous hardcoded 1-minute timeout. Servers that legitimately take longer, such as ones that compile from source on spawn, can now raise this per server. The resultingInitializeTimeouterror reports the configured deadline and includes the captured stderr tail, which usually points at the actual problem.Closes: #845