From d6bc0fdd643a4824680f9ec132956c9ba99fd299 Mon Sep 17 00:00:00 2001 From: ssalbdivad Date: Thu, 9 Oct 2025 17:45:38 -0400 Subject: [PATCH] iter --- agents/claude.ts | 9 +++++++++ entry.cjs | 7 +++++++ package.json | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/agents/claude.ts b/agents/claude.ts index 0f88d21..0ccb693 100644 --- a/agents/claude.ts +++ b/agents/claude.ts @@ -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; diff --git a/entry.cjs b/entry.cjs index f236eea..ec7ba5f 100755 --- a/entry.cjs +++ b/entry.cjs @@ -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": diff --git a/package.json b/package.json index 50892b9..18d9b81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pullfrog/action", - "version": "0.0.16", + "version": "0.0.17", "type": "module", "files": [ "index.js",