Skip to content

Commit ea374fa

Browse files
committed
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
1 parent fc11476 commit ea374fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/mcp/McpHub.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,8 @@ export class McpHub {
759759
} else {
760760
console.error(`No stderr stream for ${name}`)
761761
}
762-
} else if (configInjected.type === "http" || configInjected.type === "streamable-http") {
763-
// HTTP connection (streamable-http is mapped to http for backward compatibility)
762+
} else if (configInjected.type === "http") {
763+
// HTTP connection (streamable-http is normalized to http by schema transformation)
764764
transport = new StreamableHTTPClientTransport(new URL(configInjected.url), {
765765
requestInit: {
766766
headers: configInjected.headers,

0 commit comments

Comments
 (0)