File tree Expand file tree Collapse file tree 1 file changed +25
-22
lines changed
gui/src/pages/config/sections Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -511,29 +511,32 @@ export function ToolsSection() {
511511 < Card >
512512 < EmptyState message = "MCP servers are disabled in your organization" />
513513 </ Card >
514- ) : mode === "chat" ? (
515- < Alert type = "info" size = "sm" >
516- < span className = "text-2xs italic" >
517- All MCPs are disabled in Chat, switch to Plan or Agent mode to use
518- MCPs
519- </ span >
520- </ Alert >
521- ) : mergedBlocks . length > 0 ? (
522- mergedBlocks . map ( ( { block, blockFromYaml } ) => {
523- return (
524- < MCPServerPreview
525- key = { block . name }
526- server = { block }
527- serverFromYaml = { blockFromYaml }
528- allToolsOff = { allToolsOff }
529- duplicateDetection = { duplicateDetection }
530- />
531- ) ;
532- } )
533514 ) : (
534- < Card >
535- < EmptyState message = "No MCP servers configured. Click the + button to add your first server." />
536- </ Card >
515+ < >
516+ { mode === "chat" && (
517+ < Alert type = "info" size = "sm" >
518+ < span className = "text-2xs italic" >
519+ All MCPs are disabled in Chat, switch to Plan or Agent mode to
520+ use MCPs
521+ </ span >
522+ </ Alert >
523+ ) }
524+ { mergedBlocks . length > 0 ? (
525+ mergedBlocks . map ( ( { block, blockFromYaml } ) => (
526+ < MCPServerPreview
527+ key = { block . name }
528+ server = { block }
529+ serverFromYaml = { blockFromYaml }
530+ allToolsOff = { allToolsOff }
531+ duplicateDetection = { duplicateDetection }
532+ />
533+ ) )
534+ ) : (
535+ < Card >
536+ < EmptyState message = "No MCP servers configured. Click the + button to add your first server." />
537+ </ Card >
538+ ) }
539+ </ >
537540 ) }
538541 </ div >
539542 </ >
You can’t perform that action at this time.
0 commit comments