Check the health of the MCP server and h3-cli installation.
This tool verifies that:
1. The h3-cli tool is properly installed and in the system PATH
2. The H3 API connection is working (by running the 'hello-world' test)
Use this tool to diagnose connectivity issues or confirm proper setup
before running other operations.
Args:
None
Returns:
Dict containing:
- status: "ok" if everything is working, "error" if there's a problem
- details: A human-readable message describing the status
- output: Raw output from the h3 hello-world command (if available)
Examples:
Basic health check:
health_check()
Expected successful response:
{
"status": "ok",
"details": "h3-cli is installed and API is reachable.",
"output": "{ "data": { "hello": "world!" } }"
}
Notes:
- If the h3-cli tool is not installed, the status will be "error"
- If the API key is invalid or there are connection issues, the status will be "error"
- This tool is useful for troubleshooting MCP server configuration problems