UNPKG

@flexabrain/mcp-server

Version:

Advanced electrical schematic analysis MCP server with rail engineering expertise

94 lines 2.83 kB
/** * FlexaBrain MCP Server - Core Electrical Schematic Analysis Service * * The main analysis engine that orchestrates OCR, component classification, * connection analysis, and expert recommendations to provide comprehensive * electrical schematic analysis with rail engineering expertise. */ import { AnalysisResult } from '../types/schematic'; export interface AnalysisOptions { analysis_depth: 'basic' | 'standard' | 'comprehensive'; focus_areas: Array<'safety' | 'compliance' | 'performance' | 'maintenance'>; custom_standards?: string[]; rail_system_context?: { system_type: string; voltage_system: string; region: string; applicable_standards: string[]; }; } export declare class ElectricalSchematicAnalyzer { private ocrService; private componentClassifier; constructor(); /** * Perform comprehensive electrical schematic analysis */ analyzeSchematic(imagePath: string, options?: AnalysisOptions): Promise<AnalysisResult>; /** * Build classification context from analysis options */ private buildClassificationContext; /** * Parse voltage level from system description */ private parseVoltageFromSystem; /** * Placeholder for image preprocessing */ private preprocessImage; /** * Analyze electrical connections between components */ private analyzeConnections; /** * Analyze circuit topology and power flow */ private analyzeCircuitTopology; /** * Perform comprehensive safety analysis with rail electrical expertise */ private performSafetyAnalysis; /** * Generate safety recommendations based on rail electrical expertise */ private generateSafetyRecommendations; /** * Generate standards compliance report */ private generateComplianceReport; /** * Generate maintenance guidance based on component types and rail expertise */ private generateMaintenanceGuidance; /** * Analyze performance characteristics */ private analyzePerformance; /** * Generate expert recommendations combining all analysis results */ private generateExpertRecommendations; /** * Infer schematic type from component analysis */ private inferSchematicType; /** * Calculate overall confidence score */ private calculateOverallConfidence; /** * Assess analysis quality */ private assessAnalysisQuality; /** * Identify analysis limitations */ private identifyLimitations; /** * Document analysis assumptions */ private documentAssumptions; } export declare const electricalSchematicAnalyzer: ElectricalSchematicAnalyzer; //# sourceMappingURL=electrical-analyzer.d.ts.map