/** * Smart MCP Error Parser * Detects configuration needs from stderr error messages using generic patterns * NO hardcoded MCP-specific logic - purely pattern-based detection */ export interface ConfigurationNeed { type: 'api_key' | 'env_var' | 'command_arg' | 'package_missing' | 'unknown'; variable: string; description: string; prompt: string; sensitive: boolean; extractedFrom: string; } export declare class MCPErrorParser { /** * Parse stderr and exit code to detect configuration needs */ parseError(mcpName: string, stderr: string, exitCode: number): ConfigurationNeed[]; /** * Detect if npm package doesn't exist */ private detectPackageMissing; /** * Detect API key requirements (e.g., ELEVENLABS_API_KEY, GITHUB_TOKEN) */ private detectAPIKeys; /** * Detect generic environment variable requirements */ private detectEnvVars; /** * Detect command-line argument requirements from Usage messages */ private detectCommandArgs; /** * Detect missing paths, files, or directories */ private detectPaths; /** * Extract the full line containing the pattern */ private extractLine; /** * Common false positives to skip */ private isCommonFalsePositive; /** * Generate a summary of all configuration needs */ generateSummary(needs: ConfigurationNeed[]): string; } //# sourceMappingURL=mcp-error-parser.d.ts.map