Skip to content

Commit 03e21bd

Browse files
Move remove slashes logic to getMCPProxyAddress
1 parent 6c7c417 commit 03e21bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/utils/configUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import {
55
} from "@/lib/constants";
66

77
export const getMCPProxyAddress = (config: InspectorConfig): string => {
8-
const proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
8+
var proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
99
if (proxyFullAddress) {
10+
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
1011
return proxyFullAddress;
1112
}
1213
return `${window.location.protocol}//${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`;

0 commit comments

Comments
 (0)