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
This commit is contained in:
Roo Code 2025-10-26 17:54:24 +00:00
parent fc11476910
commit ea374fa674

View file

@ -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,