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:
rUvandClaude Opus 4.5 committed 2026-01-13 23:12:13 +00:00
1 parent d5fbd22d23
commit 5202bfdf9f
1 file changed
+10 -4
+10 -4
View File
@@ -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