File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,6 @@ export function useConnection({
280
280
return ;
281
281
}
282
282
let mcpProxyServerUrl ;
283
- const originalUrl = new URL ( sseUrl ) ;
284
283
285
284
switch ( transportType ) {
286
285
case "stdio" :
@@ -292,12 +291,12 @@ export function useConnection({
292
291
293
292
case "sse" :
294
293
mcpProxyServerUrl = new URL ( `${ getMCPProxyAddress ( config ) } /sse` ) ;
295
- mcpProxyServerUrl . searchParams . append ( "url" , originalUrl . toString ( ) ) ;
294
+ mcpProxyServerUrl . searchParams . append ( "url" , sseUrl ) ;
296
295
break ;
297
296
298
297
case "streamable-http" :
299
298
mcpProxyServerUrl = new URL ( `${ getMCPProxyAddress ( config ) } /mcp` ) ;
300
- mcpProxyServerUrl . searchParams . append ( "url" , originalUrl . toString ( ) ) ;
299
+ mcpProxyServerUrl . searchParams . append ( "url" , sseUrl ) ;
301
300
break ;
302
301
}
303
302
( mcpProxyServerUrl as URL ) . searchParams . append (
You can’t perform that action at this time.
0 commit comments