From ea374fa6748af2b062d1902fb5989c00ee1ba58b Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sun, 26 Oct 2025 17:54:24 +0000 Subject: [PATCH] fix: Resolve TypeScript error for streamable-http type check - Remove redundant streamable-http check since schema transformation normalizes it to http - TypeScript correctly identifies that streamable-http type cannot exist at runtime --- src/services/mcp/McpHub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/mcp/McpHub.ts b/src/services/mcp/McpHub.ts index af0a7563b5..658c4793c1 100644 --- a/src/services/mcp/McpHub.ts +++ b/src/services/mcp/McpHub.ts @@ -759,8 +759,8 @@ export class McpHub { } else { console.error(`No stderr stream for ${name}`) } - } else if (configInjected.type === "http" || configInjected.type === "streamable-http") { - // HTTP connection (streamable-http is mapped to http for backward compatibility) + } else if (configInjected.type === "http") { + // HTTP connection (streamable-http is normalized to http by schema transformation) transport = new StreamableHTTPClientTransport(new URL(configInjected.url), { requestInit: { headers: configInjected.headers,