diff --git a/client/src/components/MCP/CustomUserVarsSection.tsx b/client/src/components/MCP/CustomUserVarsSection.tsx
index 1d6060c914..d97ce60086 100644
--- a/client/src/components/MCP/CustomUserVarsSection.tsx
+++ b/client/src/components/MCP/CustomUserVarsSection.tsx
@@ -114,9 +114,13 @@ export default function CustomUserVarsSection({
reset();
};
- // Don't render if no fields to configure
+ // Show message if no fields to configure
if (!fields || Object.keys(fields).length === 0) {
- return null;
+ return (
+
+ {localize('com_sidepanel_mcp_no_custom_vars', { '0': serverName })}
+
+ );
}
return (
diff --git a/client/src/components/MCP/MCPConfigDialog.tsx b/client/src/components/MCP/MCPConfigDialog.tsx
index 1ad0ea7b63..5bcd590ec7 100644
--- a/client/src/components/MCP/MCPConfigDialog.tsx
+++ b/client/src/components/MCP/MCPConfigDialog.tsx
@@ -132,6 +132,7 @@ export default function MCPConfigDialog({
0}
/>
diff --git a/client/src/components/MCP/ServerInitializationSection.tsx b/client/src/components/MCP/ServerInitializationSection.tsx
index 36c9ca6b17..175d5d1906 100644
--- a/client/src/components/MCP/ServerInitializationSection.tsx
+++ b/client/src/components/MCP/ServerInitializationSection.tsx
@@ -7,11 +7,13 @@ import { useLocalize } from '~/hooks';
interface ServerInitializationSectionProps {
serverName: string;
requiresOAuth: boolean;
+ hasCustomUserVars?: boolean;
}
export default function ServerInitializationSection({
serverName,
requiresOAuth,
+ hasCustomUserVars = false,
}: ServerInitializationSectionProps) {
const localize = useLocalize();
@@ -39,8 +41,8 @@ export default function ServerInitializationSection({
cancelOAuthFlow(serverName);
}, [cancelOAuthFlow, serverName]);
- // Show subtle reinitialize option if connected
- if (isConnected) {
+ // Show subtle reinitialize option if connected AND server has OAuth or custom user vars
+ if (isConnected && (requiresOAuth || hasCustomUserVars)) {
return (