MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / deriveCheckIntervalMs

Function deriveCheckIntervalMs

src/mcp/liveness-watchdog.ts:85–87  ·  view source on GitHub ↗
(timeoutMs: number)

Source from the content-addressed store, hash-verified

83
84/** Derive a heartbeat cadence that emits several beats inside the timeout window. */
85export function deriveCheckIntervalMs(timeoutMs: number): number {
86 return Math.min(2000, Math.max(50, Math.round(timeoutMs / 5)));
87}
88
89/** Arming/teardown diagnostics, gated on the existing MCP debug switch. */
90function debug(msg: string): void {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected