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({
280280 return ;
281281 }
282282 let mcpProxyServerUrl ;
283- const originalUrl = new URL ( sseUrl ) ;
284283
285284 switch ( transportType ) {
286285 case "stdio" :
@@ -292,12 +291,12 @@ export function useConnection({
292291
293292 case "sse" :
294293 mcpProxyServerUrl = new URL ( `${ getMCPProxyAddress ( config ) } /sse` ) ;
295- mcpProxyServerUrl . searchParams . append ( "url" , originalUrl . toString ( ) ) ;
294+ mcpProxyServerUrl . searchParams . append ( "url" , sseUrl ) ;
296295 break ;
297296
298297 case "streamable-http" :
299298 mcpProxyServerUrl = new URL ( `${ getMCPProxyAddress ( config ) } /mcp` ) ;
300- mcpProxyServerUrl . searchParams . append ( "url" , originalUrl . toString ( ) ) ;
299+ mcpProxyServerUrl . searchParams . append ( "url" , sseUrl ) ;
301300 break ;
302301 }
303302 ( mcpProxyServerUrl as URL ) . searchParams . append (
You can’t perform that action at this time.
0 commit comments