(clients: MCPServerConnection[] = [], theme: ThemeName)
| 87 | return []; |
| 88 | } |
| 89 | export function buildMcpProperties(clients: MCPServerConnection[] = [], theme: ThemeName): Property[] { |
| 90 | const servers = clients.filter(client => client.name !== 'ide'); |
| 91 | if (!servers.length) { |
| 92 | return []; |
| 93 | } |
| 94 | |
| 95 | // Summary instead of a full server list — 20+ servers wrapped onto many |
| 96 | // rows, dominating the Status pane. Show counts by state + /mcp hint. |
| 97 | const byState = { |
| 98 | connected: 0, |
| 99 | pending: 0, |
| 100 | needsAuth: 0, |
| 101 | failed: 0 |
| 102 | }; |
| 103 | for (const s of servers) { |
| 104 | if (s.type === 'connected') byState.connected++;else if (s.type === 'pending') byState.pending++;else if (s.type === 'needs-auth') byState.needsAuth++;else byState.failed++; |
| 105 | } |
| 106 | const parts: string[] = []; |
| 107 | if (byState.connected) parts.push(color('success', theme)(`${byState.connected} connected`)); |
| 108 | if (byState.needsAuth) parts.push(color('warning', theme)(`${byState.needsAuth} need auth`)); |
| 109 | if (byState.pending) parts.push(color('inactive', theme)(`${byState.pending} pending`)); |
| 110 | if (byState.failed) parts.push(color('error', theme)(`${byState.failed} failed`)); |
| 111 | return [{ |
| 112 | label: 'MCP servers', |
| 113 | value: `${parts.join(', ')} ${color('inactive', theme)('· /mcp')}` |
| 114 | }]; |
| 115 | } |
| 116 | export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> { |
| 117 | const files = await getMemoryFiles(); |
| 118 | const largeFiles = getLargeMemoryFiles(files); |
no test coverage detected