health_check
Verify server operational status and retrieve server information to confirm the MCP Test MCP server is running correctly.
Instructions
Health check endpoint that verifies the server is running.
Returns: Dictionary with status and server information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The health_check tool handler function, decorated with @mcp.tool() for automatic registration. It performs a simple health check, logging an info message and returning a status dictionary indicating the server is healthy.@mcp.tool() async def health_check(ctx: Context) -> Dict[str, Any]: """ Health check endpoint that verifies the server is running. Returns: Dictionary with status and server information """ await ctx.info("Health check requested") return { "status": "healthy", "server": "mcp-test-mcp", "version": "0.1.6", "transport": "stdio" }