Skip to content

Commit 4afcf20

Browse files
authored
feat: include mcp loading errors in config loading errors (#8017)
1 parent fac7f5c commit 4afcf20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/config/profile/doLoadConfig.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ export default async function doLoadConfig(options: {
210210
newConfig.mcpServerStatuses = serializableStatuses;
211211

212212
for (const server of mcpServerStatuses) {
213+
server.errors.forEach((error) => {
214+
// MCP errors will also show as config loading errors
215+
errors.push({
216+
fatal: false,
217+
message: error,
218+
});
219+
});
213220
if (server.status === "connected") {
214221
const serverTools: Tool[] = server.tools.map((tool) => ({
215222
displayTitle: server.name + " " + tool.name,

0 commit comments

Comments
 (0)