iter
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pullfrog/action",
|
||||
"version": "0.0.16",
|
||||
"version": "0.0.17",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"index.js",
|
||||
|
||||
Reference in New Issue
Block a user