From e95a6086fc89191888f2a4e41a3c875273311d96 Mon Sep 17 00:00:00 2001
From: Bryan Morgan <bryanmorgan@google.com>
Date: Sat, 7 Jun 2025 18:30:56 -0400
Subject: Bryanmorgan/add mcp description support (#825)

---
 packages/cli/src/ui/components/ContextSummaryDisplay.tsx | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'packages/cli/src/ui/components/ContextSummaryDisplay.tsx')

diff --git a/packages/cli/src/ui/components/ContextSummaryDisplay.tsx b/packages/cli/src/ui/components/ContextSummaryDisplay.tsx
index c19a8172..c4527066 100644
--- a/packages/cli/src/ui/components/ContextSummaryDisplay.tsx
+++ b/packages/cli/src/ui/components/ContextSummaryDisplay.tsx
@@ -13,12 +13,14 @@ interface ContextSummaryDisplayProps {
   geminiMdFileCount: number;
   contextFileName: string;
   mcpServers?: Record<string, MCPServerConfig>;
+  showToolDescriptions?: boolean;
 }
 
 export const ContextSummaryDisplay: React.FC<ContextSummaryDisplayProps> = ({
   geminiMdFileCount,
   contextFileName,
   mcpServers,
+  showToolDescriptions,
 }) => {
   const mcpServerCount = Object.keys(mcpServers || {}).length;
 
@@ -45,6 +47,14 @@ export const ContextSummaryDisplay: React.FC<ContextSummaryDisplayProps> = ({
   }
   if (mcpText) {
     summaryText += mcpText;
+    // Add Ctrl+T hint when MCP servers are available
+    if (mcpServers && Object.keys(mcpServers).length > 0) {
+      if (showToolDescriptions) {
+        summaryText += ' (Ctrl+T to hide descriptions)';
+      } else {
+        summaryText += ' (Ctrl+T to view descriptions)';
+      }
+    }
   }
 
   return <Text color={Colors.Gray}>{summaryText}</Text>;
-- 
cgit v1.2.3

