ping
Check server and backend health status for the ComfyMCP Studio AI game asset generation system.
Instructions
Check if the MCP server and backend are healthy.
Returns:
Status message indicating server and backend health
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/main.py:74-88 (handler)The 'ping' tool handler. Decorated with @mcp.tool() which registers it in the FastMCP server and defines its schema via function signature and docstring. Executes backend health check and returns JSON status.@mcp.tool() async def ping() -> str: """Check if the MCP server and backend are healthy. Returns: Status message indicating server and backend health """ backend_healthy = await backend.health_check() return json.dumps({ "status": "ok", "backend": backend.get_name(), "backend_type": BACKEND_TYPE, "backend_healthy": backend_healthy, "timestamp": datetime.now().isoformat() }, indent=2)