From e2d0de6b65df916300abf60751f39cf2a9976ff1 Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Mon, 21 Jul 2025 07:59:21 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20Fix=20errors=20causing?= =?UTF-8?q?=20unit=20tests=20and=20ESLint=20checks=20to=20fail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/services/Config/loadCustomConfig.js | 2 ++ client/src/components/Chat/Input/MCPSelect.tsx | 2 +- client/src/components/SidePanel/MCP/MCPPanel.tsx | 10 ---------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/api/server/services/Config/loadCustomConfig.js b/api/server/services/Config/loadCustomConfig.js index 2de36591b1..393281daf2 100644 --- a/api/server/services/Config/loadCustomConfig.js +++ b/api/server/services/Config/loadCustomConfig.js @@ -108,6 +108,8 @@ https://www.librechat.ai/docs/configuration/stt_tts`); return null; } else { + logger.info('Custom config file loaded:'); + logger.info(JSON.stringify(customConfig, null, 2)); logger.debug('Custom config:', customConfig); } diff --git a/client/src/components/Chat/Input/MCPSelect.tsx b/client/src/components/Chat/Input/MCPSelect.tsx index de461292b3..25c493afb7 100644 --- a/client/src/components/Chat/Input/MCPSelect.tsx +++ b/client/src/components/Chat/Input/MCPSelect.tsx @@ -2,7 +2,7 @@ import React, { memo, useCallback, useState, useMemo } from 'react'; import { SettingsIcon, PlugZap } from 'lucide-react'; import { Constants } from 'librechat-data-provider'; import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query'; -import { useMCPConnectionStatusQuery, useMCPAuthValuesQuery } from '~/data-provider'; +import { useMCPConnectionStatusQuery } from '~/data-provider'; import { useQueryClient } from '@tanstack/react-query'; import { QueryKeys } from 'librechat-data-provider'; import type { TUpdateUserPlugins, TPlugin } from 'librechat-data-provider'; diff --git a/client/src/components/SidePanel/MCP/MCPPanel.tsx b/client/src/components/SidePanel/MCP/MCPPanel.tsx index 496c6e24ba..ad0e7ad1fa 100644 --- a/client/src/components/SidePanel/MCP/MCPPanel.tsx +++ b/client/src/components/SidePanel/MCP/MCPPanel.tsx @@ -239,16 +239,6 @@ export default function MCPPanel() { return schema; }, [selectedServer]); - const initialValues = useMemo(() => { - if (!selectedServer) return {}; - // Initialize with empty strings for all fields - const values: Record = {}; - Object.keys(selectedServer.config.customUserVars).forEach((key) => { - values[key] = ''; - }); - return values; - }, [selectedServer]); - if (startupConfigLoading) { return ; }