From a4140333543c854efb7be24939238a37d5903d3b Mon Sep 17 00:00:00 2001 From: Maxwell Gerber Date: Tue, 1 Apr 2025 20:09:36 -0700 Subject: [PATCH] fix: Use same protocol for proxy server URL --- client/src/utils/configUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/configUtils.ts b/client/src/utils/configUtils.ts index a6f2dd2..dcd4c97 100644 --- a/client/src/utils/configUtils.ts +++ b/client/src/utils/configUtils.ts @@ -6,7 +6,7 @@ export const getMCPProxyAddress = (config: InspectorConfig): string => { if (proxyFullAddress) { return proxyFullAddress; } - return `http://${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`; + return `${window.location.protocol}//${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`; }; export const getMCPServerRequestTimeout = (config: InspectorConfig): number => {