* Simple constructor for module initialization * Server initialization is handled by the toolbar button provider
(
private app: AppService,
private config: ConfigService,
private mcpService: McpService,
private logger: McpLoggerService,
private hostWindow: HostWindowService,
private mcpHotkeyService: McpHotkeyService
)
| 87 | * Server initialization is handled by the toolbar button provider |
| 88 | */ |
| 89 | private constructor( |
| 90 | private app: AppService, |
| 91 | private config: ConfigService, |
| 92 | private mcpService: McpService, |
| 93 | private logger: McpLoggerService, |
| 94 | private hostWindow: HostWindowService, |
| 95 | private mcpHotkeyService: McpHotkeyService |
| 96 | ) { |
| 97 | console.log('[McpModule] Module initialized'); |
| 98 | |
| 99 | // Initialize the server properly after app and config are ready |
| 100 | this.app.ready$.subscribe(() => { |
| 101 | this.config.ready$.toPromise().then(() => { |
| 102 | this.initServerOnBoot(); |
| 103 | }); |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Initialize server on boot based on configuration |
nothing calls this directly
no test coverage detected