diff --git a/client/src/hooks/Nav/useSideNavLinks.ts b/client/src/hooks/Nav/useSideNavLinks.ts index 13657c058e..306cb7f90e 100644 --- a/client/src/hooks/Nav/useSideNavLinks.ts +++ b/client/src/hooks/Nav/useSideNavLinks.ts @@ -19,7 +19,6 @@ import { Blocks, MCPIcon, AttachmentIcon } from '~/components/svg'; import Parameters from '~/components/SidePanel/Parameters/Panel'; import FilesPanel from '~/components/SidePanel/Files/Panel'; import MCPPanel from '~/components/SidePanel/MCP/MCPPanel'; -import { useGetStartupConfig } from '~/data-provider'; import { useHasAccess } from '~/hooks'; export default function useSideNavLinks({ @@ -61,7 +60,6 @@ export default function useSideNavLinks({ permissionType: PermissionTypes.AGENTS, permission: Permissions.CREATE, }); - const { data: startupConfig } = useGetStartupConfig(); const Links = useMemo(() => { const links: NavLink[] = []; @@ -152,20 +150,13 @@ export default function useSideNavLinks({ }); } - if ( - startupConfig?.mcpServers && - Object.values(startupConfig.mcpServers).some( - (server) => server.customUserVars && Object.keys(server.customUserVars).length > 0, - ) - ) { - links.push({ - title: 'com_nav_setting_mcp', - label: '', - icon: MCPIcon, - id: 'mcp-settings', - Component: MCPPanel, - }); - } + links.push({ + title: 'com_nav_mcp_panel', + label: '', + icon: MCPIcon, + id: 'mcp-settings', + Component: MCPPanel, + }); links.push({ title: 'com_sidepanel_hide_panel', @@ -189,7 +180,6 @@ export default function useSideNavLinks({ hasAccessToBookmarks, hasAccessToCreateAgents, hidePanel, - startupConfig, ]); return Links; diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.json index c816d4921f..f1571cc657 100644 --- a/client/src/locales/en/translation.json +++ b/client/src/locales/en/translation.json @@ -431,6 +431,7 @@ "com_nav_log_out": "Log out", "com_nav_long_audio_warning": "Longer texts will take longer to process.", "com_nav_maximize_chat_space": "Maximize chat space", + "com_nav_mcp_panel": "MCP Servers", "com_nav_mcp_vars_update_error": "Error updating MCP custom user variables: {{0}}", "com_nav_mcp_vars_updated": "MCP custom user variables updated successfully.", "com_nav_modular_chat": "Enable switching Endpoints mid-conversation",