-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Throw error and exit on MCP failure in headless mode #8559
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
In headless/CLI mode, when an MCP server fails to load, the process now throws an error and exits rather than silently continuing. This provides clear feedback to users about configuration issues. Changes: - Track headless mode flag in MCPService - Throw errors on MCP connection failures in headless mode - Throw errors when MCP tools/prompts fail to load in headless mode - Aggregate and report all MCP failures after connection attempts Fixes CON-4568 Co-authored-by: Nate Sesti <nate@continue.dev> Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev>
|
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.
No issues found across 1 file
|
🎉 This PR is included in version 1.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.29.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
In headless/CLI mode, when an MCP server fails to load, the process now throws an error and exits rather than silently continuing. This provides clear feedback to users about configuration issues.
Changes
Testing
The changes affect the CLI's MCPService which is used in headless mode. When MCP servers are configured and fail to connect:
Fixes CON-4568
This agent session was co-authored by Nate Sesti and Continue.
Summary by cubic
Headless/CLI mode now fails fast when MCP servers, tools, or prompts fail to load, exiting with clear error messages. Meets CON-4568 by throwing and exiting on MCP failures; TUI behavior is unchanged.
Written for commit 3f6eb30. Summary will update automatically on new commits.