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;
+7
View File
@@ -25858,6 +25858,13 @@ function processJSONChunk(chunk, agent) {
]
])
);
if (parsedChunk.mcp_servers?.length > 0) {
const failedServers = parsedChunk.mcp_servers.filter((server) => server.status === "failed");
if (failedServers.length > 0) {
const failedNames = failedServers.map((server) => 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;
case "assistant":
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"files": [
"index.js",