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

Method hasConnection

apps/sim/lib/mcp/connection-manager.ts:249–254  ·  view source on GitHub ↗

* Check whether a managed connection exists for the given server.

(serverId: string)

Source from the content-addressed store, hash-verified

247 * Check whether a managed connection exists for the given server.
248 */
249 hasConnection(serverId: string): boolean {
250 for (const state of this.states.values()) {
251 if (state.serverId === serverId) return true
252 }
253 return false
254 }
255
256 /**
257 * Get all managed connection states (for diagnostics).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected