feat: improve error messaging for proxy authentication failures

- Update connection error message to guide users about proxy token configuration
- Add specific message when proxy token is missing directing to Configuration section
- Help users quickly identify and resolve authentication issues
This commit is contained in:
Felix Weinberger 2025-06-10 17:33:29 +01:00
commit 32e6bdd13c
No known key found for this signature in database

View file

@ -666,8 +666,13 @@ const Sidebar = ({
switch (connectionStatus) {
case "connected":
return "Connected";
case "error":
return "Connection Error, is your MCP server running?";
case "error": {
const hasProxyToken = config.MCP_PROXY_AUTH_TOKEN?.value;
if (!hasProxyToken) {
return "Connection Error - Did you add the proxy session token in Configuration?";
}
return "Connection Error - Check if your MCP server is running and proxy token is correct";
}
case "error-connecting-to-proxy":
return "Error Connecting to MCP Inspector Proxy - Check Console logs";
default: