diff options
| author | Bryan Morgan <[email protected]> | 2025-06-07 18:30:56 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-07 18:30:56 -0400 |
| commit | e95a6086fc89191888f2a4e41a3c875273311d96 (patch) | |
| tree | 907073862c859af9eb2222578b637f455325e6e2 /packages/cli/src/ui/components/ContextSummaryDisplay.tsx | |
| parent | dd08582f81b1cab4d3ded0f21fc4359ac88b231e (diff) | |
Bryanmorgan/add mcp description support (#825)
Diffstat (limited to 'packages/cli/src/ui/components/ContextSummaryDisplay.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/ContextSummaryDisplay.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
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>; |
