Skip to main content

GET /api/health/servers

Returns the most recent health check result for each configured server.
curl http://localhost:8000/api/health/servers
[
  {
    "server_name": "postgres-mcp",
    "status": "up",
    "latency_ms": 42.0,
    "tools_count": 5,
    "schema_hash": "bcf0ec26dff44929",
    "error": null,
    "checked_at": "2026-03-17T12:00:00Z"
  }
]

GET /api/health/servers/

Returns the most recent result for one server. Returns 404 if no data exists.
curl http://localhost:8000/api/health/servers/postgres-mcp

GET /api/health/servers//history

Returns health history, newest first. limit parameter: 1–100 (default 10).
curl "http://localhost:8000/api/health/servers/postgres-mcp/history?limit=20"

POST /api/health/check

Triggers an immediate health check against all configured servers. Results are persisted and returned.
curl -X POST http://localhost:8000/api/health/check

Status values

StatusMeaning
upServer responding normally
degradedSchema drift detected — investigate
downServer unreachable
staleNo check in last N minutes
unknownNever checked