Skip to content

Commit 32e6bdd

Browse files
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
1 parent 9dbd173 commit 32e6bdd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

client/src/components/Sidebar.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,13 @@ const Sidebar = ({
666666
switch (connectionStatus) {
667667
case "connected":
668668
return "Connected";
669-
case "error":
670-
return "Connection Error, is your MCP server running?";
669+
case "error": {
670+
const hasProxyToken = config.MCP_PROXY_AUTH_TOKEN?.value;
671+
if (!hasProxyToken) {
672+
return "Connection Error - Did you add the proxy session token in Configuration?";
673+
}
674+
return "Connection Error - Check if your MCP server is running and proxy token is correct";
675+
}
671676
case "error-connecting-to-proxy":
672677
return "Error Connecting to MCP Inspector Proxy - Check Console logs";
673678
default:

0 commit comments

Comments
 (0)