diff --git a/README.md b/README.md index b0e18de..c43f943 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The MCP Inspector supports the following configuration settings. To change them | Name | Purpose | Default Value | | -------------------------- | ----------------------------------------------------------------------------------------- | ------------- | | MCP_SERVER_REQUEST_TIMEOUT | Maximum time in milliseconds to wait for a response from the MCP server before timing out | 10000 | +| MCP_PROXY_FULL_ADDRESS | The full URL of the MCP Inspector proxy server (e.g. `http://10.2.1.14:2277`) | `null` | ### From this repository diff --git a/client/src/lib/hooks/useConnection.ts b/client/src/lib/hooks/useConnection.ts index 0bb8124..404cd98 100644 --- a/client/src/lib/hooks/useConnection.ts +++ b/client/src/lib/hooks/useConnection.ts @@ -233,14 +233,13 @@ export function useConnection({ }, ); - const mcpProxyServerUrl = new URL(`${proxyServerUrl}/sse`); try { await checkProxyHealth(); } catch { setConnectionStatus("error-connecting-to-proxy"); return; } - + const mcpProxyServerUrl = new URL(`${proxyServerUrl}/sse`); mcpProxyServerUrl.searchParams.append("transportType", transportType); if (transportType === "stdio") { mcpProxyServerUrl.searchParams.append("command", command);