MCPcopy Create free account
hub / github.com/TanStack/ai / isPool

Function isPool

packages/ai-mcp/src/apps/call-handler.ts:85–87  ·  view source on GitHub ↗

Structurally distinguish a pool (has getServers) from a single client.

(entry: MCPClient | MCPClients)

Source from the content-addressed store, hash-verified

83
84/** Structurally distinguish a pool (has getServers) from a single client. */
85function isPool(entry: MCPClient | MCPClients): entry is MCPClients {
86 return 'getServers' in entry
87}
88
89/**
90 * The flattened view of the `clients` input used to resolve a `serverId` to a

Callers 1

buildRegistryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected