From 4080c7c30c723ddc71be6c981e2598a76c8a0810 Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Mon, 21 Jul 2025 08:22:59 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor:=20Clean=20up=20imports?= =?UTF-8?q?=20in=20MCPPanel=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Merged import statements for better organization. - Removed unused `reinitializeMCPServerMutation` --- .../src/components/SidePanel/MCP/MCPPanel.tsx | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/client/src/components/SidePanel/MCP/MCPPanel.tsx b/client/src/components/SidePanel/MCP/MCPPanel.tsx index 69dc263422..3ada126a5a 100644 --- a/client/src/components/SidePanel/MCP/MCPPanel.tsx +++ b/client/src/components/SidePanel/MCP/MCPPanel.tsx @@ -1,24 +1,20 @@ -import { Constants } from 'librechat-data-provider'; import { ChevronLeft } from 'lucide-react'; -import React, { useState, useCallback, useMemo } from 'react'; -import { - useUpdateUserPluginsMutation, - useReinitializeMCPServerMutation, -} from 'librechat-data-provider/react-query'; import { useQueryClient } from '@tanstack/react-query'; -import { QueryKeys } from 'librechat-data-provider'; +import React, { useState, useCallback, useMemo } from 'react'; +import { Constants, QueryKeys } from 'librechat-data-provider'; +import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query'; import type { TUpdateUserPlugins } from 'librechat-data-provider'; -import { Button } from '~/components/ui'; -import { useGetStartupConfig } from '~/data-provider'; -import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries'; -import MCPPanelSkeleton from './MCPPanelSkeleton'; -import { useToastContext } from '~/Providers'; -import { useLocalize } from '~/hooks'; import { CustomUserVarsSection, ServerInitializationSection, type ConfigFieldDetail, } from '~/components/ui/MCP'; +import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries'; +import { useGetStartupConfig } from '~/data-provider'; +import MCPPanelSkeleton from './MCPPanelSkeleton'; +import { useToastContext } from '~/Providers'; +import { Button } from '~/components/ui'; +import { useLocalize } from '~/hooks'; export default function MCPPanel() { const localize = useLocalize(); @@ -27,7 +23,6 @@ export default function MCPPanel() { const [selectedServerNameForEditing, setSelectedServerNameForEditing] = useState( null, ); - const reinitializeMCPMutation = useReinitializeMCPServerMutation(); const queryClient = useQueryClient(); // Get real connection status from MCPManager