We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c7c417 commit 03e21bdCopy full SHA for 03e21bd
client/src/utils/configUtils.ts
@@ -5,8 +5,9 @@ import {
5
} from "@/lib/constants";
6
7
export const getMCPProxyAddress = (config: InspectorConfig): string => {
8
- const proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
+ var proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
9
if (proxyFullAddress) {
10
+ proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
11
return proxyFullAddress;
12
}
13
return `${window.location.protocol}//${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`;
0 commit comments