MCPcopy
hub / github.com/lightningpixel/modly / cmd_health

Function cmd_health

tools/modly-cli/agent.py:356–360  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

354
355
356def cmd_health(args: argparse.Namespace) -> int:
357 base_url = args.base_url.rstrip("/")
358 data = _request_json("GET", f"{base_url}/health", timeout=args.request_timeout)
359 _json_print({"ok": True, "base_url": base_url, "health": data}, compact=args.compact)
360 return 0
361
362
363def cmd_status(args: argparse.Namespace) -> int:

Callers

nothing calls this directly

Calls 2

_request_jsonFunction · 0.85
_json_printFunction · 0.85

Tested by

no test coverage detected