Update readme

This commit is contained in:
Pulkit Sharma
2025-04-01 19:46:55 +05:30
parent 51c7eda6a6
commit 0dcd10c1dd
2 changed files with 2 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ The MCP Inspector supports the following configuration settings. To change them
| Name | Purpose | Default Value | | 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_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 ### From this repository

View File

@@ -233,14 +233,13 @@ export function useConnection({
}, },
); );
const mcpProxyServerUrl = new URL(`${proxyServerUrl}/sse`);
try { try {
await checkProxyHealth(); await checkProxyHealth();
} catch { } catch {
setConnectionStatus("error-connecting-to-proxy"); setConnectionStatus("error-connecting-to-proxy");
return; return;
} }
const mcpProxyServerUrl = new URL(`${proxyServerUrl}/sse`);
mcpProxyServerUrl.searchParams.append("transportType", transportType); mcpProxyServerUrl.searchParams.append("transportType", transportType);
if (transportType === "stdio") { if (transportType === "stdio") {
mcpProxyServerUrl.searchParams.append("command", command); mcpProxyServerUrl.searchParams.append("command", command);