This commit is contained in:
ssalbdivad
2025-10-09 17:45:38 -04:00
parent 8fd0328109
commit d6bc0fdd64
3 changed files with 17 additions and 1 deletions
+9
View File
@@ -195,6 +195,15 @@ function processJSONChunk(chunk: string, agent?: ClaudeAgent): void {
],
])
);
// Check if MCP servers are expected but failed
if (parsedChunk.mcp_servers?.length > 0) {
const failedServers = parsedChunk.mcp_servers.filter((server: any) => server.status === "failed");
if (failedServers.length > 0) {
const failedNames = failedServers.map((server: any) => server.name).join(", ");
throw new Error(`MCP servers failed to start: ${failedNames}. This indicates a configuration or environment issue that prevents GitHub integration from working.`);
}
}
}
break;