mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-08T03:38:14Z - 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
a5a8d628af
commit
f445da7eb0
1 file changed
+5
-5
@@ -530,6 +530,11 @@ export class MCPServerManager extends EventEmitter {
|
||||
* Wait for server to be ready
|
||||
*/
|
||||
private async waitForReady(timeout = 10000): Promise<void> {
|
||||
// For stdio transport, we're ready immediately (in-process)
|
||||
if (this.options.transport === 'stdio') {
|
||||
return;
|
||||
}
|
||||
|
||||
const startTime = Date.now();
|
||||
|
||||
while (Date.now() - startTime < timeout) {
|
||||
@@ -540,11 +545,6 @@ export class MCPServerManager extends EventEmitter {
|
||||
await this.sleep(100);
|
||||
}
|
||||
|
||||
// For stdio, just check if process is running
|
||||
if (this.options.transport === 'stdio' && this.process && !this.process.killed) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Error('Server failed to start within timeout');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user