health_check
Verify the operational status and configuration of the MCP server to ensure it's running correctly and identify any issues.
Instructions
Check the health status of the MCP server.
Returns: A dictionary with the server status and configuration info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/skeleton_mcp/server.py:70-85 (handler)The health_check tool handler function, decorated with @mcp.tool() for registration. It checks the server health and returns status information including whether API is configured.@mcp.tool() async def health_check() -> dict[str, Any]: """ Check the health status of the MCP server. Returns: A dictionary with the server status and configuration info. """ config = get_client_config() return { "status": "healthy", "server": "Skeleton MCP Server", "version": "0.1.0", "api_configured": config.get("api_key") is not None, }