Skip to content

Commit d9d40e8

Browse files
authored
Merge branch 'RooCodeInc:main' into webview-leaks
2 parents 8beac80 + af2e9ed commit d9d40e8

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Roo Code Changelog
22

3+
## [3.19.3] - 2025-06-02
4+
5+
- Fix SSE MCP Invocation - Fixed SSE connection issue in McpHub.ts by ensuring transport.start override only applies to stdio transports, allowing SSE and streamable-http transports to retain their original start methods (thanks @taylorwilsdon!)
6+
37
## [3.19.2] - 2025-06-01
48

59
- Add support for Streamable HTTP Transport MCP servers (thanks @taylorwilsdon!)

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
55
"publisher": "RooVeterinaryInc",
6-
"version": "3.19.2",
6+
"version": "3.19.3",
77
"icon": "assets/icons/icon.png",
88
"galleryBanner": {
99
"color": "#617A91",

src/services/mcp/McpHub.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,23 @@ export class McpHub {
598598
}
599599
await this.notifyWebviewOfServerChanges()
600600
}
601+
602+
transport.onclose = async () => {
603+
const connection = this.findConnection(name, source)
604+
if (connection) {
605+
connection.server.status = "disconnected"
606+
}
607+
await this.notifyWebviewOfServerChanges()
608+
}
601609
} else {
602-
// Correctly placed "unsupported type" else block
603610
// Should not happen if validateServerConfig is correct
604611
throw new Error(`Unsupported MCP server type: ${(configInjected as any).type}`)
605612
}
606-
// transport.start assignment moved after all type-specific initializations
607-
transport.start = async () => {} // No-op now, .connect() won't fail
613+
614+
// Only override transport.start for stdio transports that have already been started
615+
if (configInjected.type === "stdio") {
616+
transport.start = async () => {}
617+
}
608618

609619
const connection: McpConnection = {
610620
server: {

0 commit comments

Comments
 (0)