()
| 416 | }, |
| 417 | |
| 418 | async getSnapshot(): Promise<McpLifecycleSnapshot> { |
| 419 | return buildMcpLifecycleSnapshot({ |
| 420 | phase: state.phase, |
| 421 | shutdownReason: state.shutdownReason, |
| 422 | startedAtMs: state.startedAtMs, |
| 423 | commandExecutor: options.commandExecutor, |
| 424 | }); |
| 425 | }, |
| 426 | |
| 427 | async shutdown(reason: McpShutdownReason, error?: unknown): Promise<void> { |
| 428 | if (state.shutdownPromise) { |
nothing calls this directly
no test coverage detected