UNPKG

@poai/mcpm-aider

Version:

Your MCP CLI Manager for aider(forked from @mcpm/cli). Helps you install/remove/search your MCP projects. You can also manage your MCP in Claude App with natural language.

25 lines (24 loc) 973 B
import chalk from 'chalk'; export function formatMCPServers(servers) { if (servers.length === 0) { return chalk.yellow('No MCP servers found'); } const lines = []; lines.push(chalk.bold('Your MCP Servers:')); lines.push(''); servers.forEach(server => { const statusColor = server.enabled ? chalk.green : chalk.red; const status = server.enabled ? '✓ Enabled' : '✗ Disabled'; lines.push(chalk.bold(server.info.name)); lines.push(` ${statusColor(status)}`); lines.push(` ${chalk.blue('Command:')} ${server.info.appConfig.command}`); if (server.info.appConfig.args && server.info.appConfig.args.length > 0) { lines.push(` ${chalk.blue('Args:')} ${server.info.appConfig.args.join(' ')}`); } if (server.info.from) { lines.push(` ${chalk.gray(`Source: ${server.info.from}`)}`); } lines.push(''); }); return lines.join('\n'); }