mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T23:12:13Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5fbd22d23
commit
5202bfdf9f
1 file changed
+10
-4
@@ -242,11 +242,17 @@ export class MCPServerManager extends EventEmitter {
|
||||
metrics?: Record<string, number>;
|
||||
}> {
|
||||
if (this.options.transport === 'stdio') {
|
||||
// For stdio, just check if process is running
|
||||
// For stdio, check if process is running
|
||||
const pid = await this.readPidFile();
|
||||
return {
|
||||
healthy: pid !== null && this.isProcessRunning(pid),
|
||||
};
|
||||
if (pid === null) {
|
||||
return { healthy: false, error: 'No PID file found' };
|
||||
}
|
||||
if (!this.isProcessRunning(pid)) {
|
||||
// Clean up stale PID file
|
||||
await this.removePidFile();
|
||||
return { healthy: false, error: 'Process not running (cleaned up stale PID)' };
|
||||
}
|
||||
return { healthy: true };
|
||||
}
|
||||
|
||||
// For HTTP/WebSocket, make health check request
|
||||
|
||||
Reference in new issue
Block a user