POST
/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 tool-list fetch when the probe passes. Used by the registry UI's Test connection button and ops triage when a server flips to unreachable. Any org member can trigger — it's a read-only probe of an org-owned server, mutating only the server's own health_status row.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.
Parameters
id in pathrequiredmcp_servers row id
stringResponse
200 example
{
"status": "healthy",
"latencyMs": 0,
"detail": "string",
"ran": false,
"lastHealthCheckAt": "2026-05-29T20:54:19.748Z",
"tools": [
{}
]
}All status codes
200Probe complete.
401(no description)
403Forbidden — caller not a member of the server's org.
404Server not found.
429(no description)
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/mcp/servers/{id}/health-check \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \TypeScript
import { EvalGuard } from "@evalguard/sdk";
const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });
const response = await client.request({
method: "POST",
path: "/api/v1/mcp/servers/{id}/health-check",
});
console.log(response);Python
from evalguard import EvalGuard
import os
client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])
response = client.request(method="POST", path="/api/v1/mcp/servers/{id}/health-check")
print(response)Go
package main
import (
"context"
"fmt"
"os"
"github.com/evalguard/evalguard-go"
)
func main() {
client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
resp, err := client.Request(context.Background(), "POST", "/api/v1/mcp/servers/{id}/health-check", nil)
if err != nil { panic(err) }
fmt.Println(resp)
}Errors
401403404429