Skip to content

Commit 06fcc74

Browse files
authored
Merge pull request modelcontextprotocol#247 from max-stytch/fix/use-https-protocol
fix: Use same protocol for proxy server URL
2 parents a75dd7b + a414033 commit 06fcc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/utils/configUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const getMCPProxyAddress = (config: InspectorConfig): string => {
66
if (proxyFullAddress) {
77
return proxyFullAddress;
88
}
9-
return `http://${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`;
9+
return `${window.location.protocol}//${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`;
1010
};
1111

1212
export const getMCPServerRequestTimeout = (config: InspectorConfig): number => {

0 commit comments

Comments
 (0)