Commit 794de1b
Throw error and exit on MCP failure in headless mode (#8559)
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
Generated with [Continue](https://continue.dev)
Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: Continue <[email protected]>1 parent 6aad840 commit 794de1b
1 file changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
106 | 123 | | |
107 | 124 | | |
108 | 125 | | |
| |||
259 | 276 | | |
260 | 277 | | |
261 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
262 | 286 | | |
263 | 287 | | |
264 | 288 | | |
| |||
276 | 300 | | |
277 | 301 | | |
278 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
279 | 310 | | |
280 | 311 | | |
281 | 312 | | |
282 | | - | |
| 313 | + | |
283 | 314 | | |
284 | 315 | | |
285 | 316 | | |
286 | 317 | | |
287 | | - | |
| 318 | + | |
288 | 319 | | |
289 | 320 | | |
290 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
291 | 327 | | |
292 | 328 | | |
293 | 329 | | |
| |||
0 commit comments