MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / get_client

Function get_client

masfactory/visualizer/client.py:328–335  ·  view source on GitHub ↗

Return a client wrapper if Visualizer env vars are present; does not attempt to connect.

()

Source from the content-addressed store, hash-verified

326 return bool(VISUALIZER_ENABLED)
327
328def get_client() -> VisualizerClient | None:
329 """
330 Return a client wrapper if Visualizer env vars are present; does not attempt to connect.
331 """
332 runtime = get_visualizer_runtime()
333 if runtime is None:
334 return None
335 return VisualizerClient(runtime)
336
337def connect(*, timeout_s: float = 2.0) -> VisualizerClient | None:
338 """

Callers 1

get_bridgeFunction · 0.85

Calls 2

get_visualizer_runtimeFunction · 0.85
VisualizerClientClass · 0.85

Tested by

no test coverage detected