Skip to content

Commit 7872b5f

Browse files
Using ping for the keep alive, doing it on a 10min cycle
1 parent 4771d8f commit 7872b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ export class MCPConnectionManager {
654654
// Start health check every 30 seconds
655655
this.healthCheckInterval = setInterval(async () => {
656656
await this.performHealthCheck();
657-
}, 30000);
657+
}, 10 * 60 * 1000); // 10 minutes
658658

659659
}
660660

@@ -666,7 +666,7 @@ export class MCPConnectionManager {
666666

667667
try {
668668
// Try to list tools as a health check - this is a lightweight operation
669-
await this.client.listTools();
669+
await this.client.ping();
670670
} catch (error) {
671671
console.warn(`Health check failed for ${this.connection.name}:`, error);
672672
await this.handleHealthCheckFailure(error);

0 commit comments

Comments
 (0)