Merge pull request #500 from sebastian93921/sebastian/patch-remove-addition-slash

Fix: Remove addition slash for check proxy health
This commit is contained in:
Cliff Hall 2025-07-02 15:54:37 -04:00 • committed by GitHub
commit 13014a0471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,8 +14,9 @@ const getSearchParam = (key: string): string | null => {
};
export const getMCPProxyAddress = (config: InspectorConfig): string => {
const proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
let proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
if (proxyFullAddress) {
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
return proxyFullAddress;
}