From 7ade8e4a7d442341ebedb7ac0c42821331ac8615 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Thu, 28 Aug 2025 23:18:34 +0000 Subject: [PATCH] feat: add MCP button to ChatTextArea with error indicator - Added MCP Servers button to the left of the Codebase Indexing button - Button is hidden when no MCP servers are installed - Clicking the button navigates to the MCP screen - Red indicator appears when any MCP server is erroring (disconnected and not disabled) - Added translation key for the MCP button tooltip --- .../src/components/chat/ChatTextArea.tsx | 41 ++++++++++++++++++- webview-ui/src/i18n/locales/en/chat.json | 1 + 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index ee2cc76ef3..0a176167e2 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1,7 +1,7 @@ import React, { forwardRef, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react" import { useEvent } from "react-use" import DynamicTextArea from "react-textarea-autosize" -import { VolumeX, Image, WandSparkles, SendHorizontal } from "lucide-react" +import { VolumeX, Image, WandSparkles, SendHorizontal, Server } from "lucide-react" import { mentionRegex, mentionRegexGlobal, commandRegexGlobal, unescapeSpaces } from "@roo/context-mentions" import { WebviewMessage } from "@roo/WebviewMessage" @@ -82,6 +82,7 @@ export const ChatTextArea = forwardRef( taskHistory, clineMessages, commands, + mcpServers, } = useExtensionState() // Find the ID and display text for the currently selected API configuration. @@ -1194,6 +1195,44 @@ export const ChatTextArea = forwardRef( )} + {mcpServers && mcpServers.length > 0 && ( + + + + )}