MCPcopy Index your code
hub / github.com/simstudioai/sim / isServerUnhealthy

Method isServerUnhealthy

apps/sim/lib/mcp/service.ts:406–413  ·  view source on GitHub ↗
(workspaceId: string, serverId: string)

Source from the content-addressed store, hash-verified

404 }
405
406 private async isServerUnhealthy(workspaceId: string, serverId: string): Promise<boolean> {
407 try {
408 const entry = await this.cacheAdapter.get(failureCacheKey(workspaceId, serverId))
409 return entry !== null
410 } catch {
411 return false
412 }
413 }
414
415 private async clearServerFailure(workspaceId: string, serverId: string): Promise<void> {
416 try {

Callers 2

discoverToolsMethod · 0.95

Calls 2

failureCacheKeyFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected