vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
14 lines (13 loc) • 532 B
JavaScript
export function isCLIError(error) {
return 'code' in error && typeof error.code === 'string';
}
export function validateCLIConfig(config) {
return {
verbose: typeof config.verbose === 'boolean' ? config.verbose : false,
quiet: typeof config.quiet === 'boolean' ? config.quiet : false,
outputFormat: config.outputFormat === 'json' || config.outputFormat === 'yaml'
? config.outputFormat
: 'text',
color: typeof config.color === 'boolean' ? config.color : true
};
}