Revert re-parsing url
This commit is contained in:
parent
7bf363cca9
commit
fe827426ae
1 changed files with 2 additions and 3 deletions
|
|
@ -280,7 +280,6 @@ export function useConnection({
|
|||
return;
|
||||
}
|
||||
let mcpProxyServerUrl;
|
||||
const originalUrl = new URL(sseUrl);
|
||||
|
||||
switch (transportType) {
|
||||
case "stdio":
|
||||
|
|
@ -292,12 +291,12 @@ export function useConnection({
|
|||
|
||||
case "sse":
|
||||
mcpProxyServerUrl = new URL(`${getMCPProxyAddress(config)}/sse`);
|
||||
mcpProxyServerUrl.searchParams.append("url", originalUrl.toString());
|
||||
mcpProxyServerUrl.searchParams.append("url", sseUrl);
|
||||
break;
|
||||
|
||||
case "streamable-http":
|
||||
mcpProxyServerUrl = new URL(`${getMCPProxyAddress(config)}/mcp`);
|
||||
mcpProxyServerUrl.searchParams.append("url", originalUrl.toString());
|
||||
mcpProxyServerUrl.searchParams.append("url", sseUrl);
|
||||
break;
|
||||
}
|
||||
(mcpProxyServerUrl as URL).searchParams.append(
|
||||
|
|
|
|||
Loading…
Reference in a new issue