feat: include mcp loading errors in config loading errors (#8017)

This commit is contained in:
Dallin Romney 2025-09-30 20:03:08 -07:00 • committed by GitHub
parent fac7f5c449
commit 4afcf200a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,