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:
parent
9dbd17343c
commit
32e6bdd13c
1 changed files with 7 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue