MCPcopy
hub / github.com/codeaashu/claude-code / isHealthy

Function isHealthy

src/services/lsp/LSPServerInstance.ts:338–340  ·  view source on GitHub ↗

* Checks if the server is healthy and ready to handle requests. * * @returns true if state is 'running' AND the client has completed initialization

()

Source from the content-addressed store, hash-verified

336 * @returns true if state is 'running' AND the client has completed initialization
337 */
338 function isHealthy(): boolean {
339 return state === 'running' && client.isInitialized
340 }
341
342 /**
343 * Sends an LSP request to the server with retry logic for transient errors.

Callers 2

sendRequestFunction · 0.85
sendNotificationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected