/api/v1/mcp/servers/{id}/health-checkTrigger an immediate MCP server health check
Runs the same connectivity probe the 60s health-check cron uses, plus a `tools/list` fetch when the probe passes and the transport is http (SSRF-revalidated; a blocked or failed tool-list soft-fails to `tools: null` without failing the probe). Used by the registry UI's Test connection button and ops triage when a server flips to unreachable. Returns `{status, latencyMs, detail, ran, lastHealthCheckAt, tools}` and persists `health_status` + `last_health_check_at` on the server's own row. The MCP Registry is a Team-tier feature, so the caller's org must be on Team or above; within such an org any member can trigger it. Takes no request body.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Parameters
id in pathrequiredmcp_servers row id
stringResponse
200 example
{
"status": "healthy",
"latencyMs": 0,
"detail": "string",
"ran": false,
"lastHealthCheckAt": "2026-01-01T00:00:00.000Z",
"tools": [
{}
]
}All status codes
Code samples
cURL
# {id} is shown with an EXAMPLE value — replace it with real values.
curl -X POST \
https://evalguard.ai/api/v1/mcp/servers/00000000-0000-0000-0000-000000000000/health-check \
-H "Authorization: Bearer $EVALGUARD_API_KEY"TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
// {id} is shown with an EXAMPLE value — replace it with real values.
const res = await fetch("https://evalguard.ai/api/v1/mcp/servers/00000000-0000-0000-0000-000000000000/health-check", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
# {id} is shown with an EXAMPLE value — replace it with real values.
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("POST", "https://evalguard.ai/api/v1/mcp/servers/00000000-0000-0000-0000-000000000000/health-check", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
// {id} is shown with an EXAMPLE value — replace it with real values.
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "POST", "https://evalguard.ai/api/v1/mcp/servers/00000000-0000-0000-0000-000000000000/health-check", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}