From 370feb9e9ab72fd63e12d5486cbf9ffd5c6bfeb8 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 28 Oct 2025 18:01:09 +0530 Subject: [PATCH] feat: show mcp warning message with configured mcps --- .../pages/config/sections/ToolsSection.tsx | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/gui/src/pages/config/sections/ToolsSection.tsx b/gui/src/pages/config/sections/ToolsSection.tsx index f9054ae2e..a48bd5df7 100644 --- a/gui/src/pages/config/sections/ToolsSection.tsx +++ b/gui/src/pages/config/sections/ToolsSection.tsx @@ -511,29 +511,32 @@ export function ToolsSection() { - ) : mode === "chat" ? ( - - - All MCPs are disabled in Chat, switch to Plan or Agent mode to use - MCPs - - - ) : mergedBlocks.length > 0 ? ( - mergedBlocks.map(({ block, blockFromYaml }) => { - return ( - - ); - }) ) : ( - - - + <> + {mode === "chat" && ( + + + All MCPs are disabled in Chat, switch to Plan or Agent mode to + use MCPs + + + )} + {mergedBlocks.length > 0 ? ( + mergedBlocks.map(({ block, blockFromYaml }) => ( + + )) + ) : ( + + + + )} + )}