Bryanmorgan/add mcp description support (#825)

This commit is contained in:
Bryan Morgan
2025-06-07 18:30:56 -04:00
committed by GitHub
parent dd08582f81
commit e95a6086fc
8 changed files with 246 additions and 74 deletions

View File

@@ -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>;