mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
fc11476910
commit
ea374fa674
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue