feat: include mcp loading errors in config loading errors (#8017)
This commit is contained in:
parent
fac7f5c449
commit
4afcf200a9
1 changed files with 7 additions and 0 deletions
|
|
@ -210,6 +210,13 @@ export default async function doLoadConfig(options: {
|
|||
newConfig.mcpServerStatuses = serializableStatuses;
|
||||
|
||||
for (const server of mcpServerStatuses) {
|
||||
server.errors.forEach((error) => {
|
||||
// MCP errors will also show as config loading errors
|
||||
errors.push({
|
||||
fatal: false,
|
||||
message: error,
|
||||
});
|
||||
});
|
||||
if (server.status === "connected") {
|
||||
const serverTools: Tool[] = server.tools.map((tool) => ({
|
||||
displayTitle: server.name + " " + tool.name,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue