FastMCP server for idfkit — EnergyPlus model authoring, validation, and simulation.
health_check(_request)
async
Health check endpoint for load balancer probes.
Source code in src/idfkit_mcp/server.py
| @mcp.custom_route("/health", methods=["GET"])
async def health_check(_request: Request) -> Response:
"""Health check endpoint for load balancer probes."""
from starlette.responses import JSONResponse
return JSONResponse({"status": "ok"})
|
main()
CLI entry point with configurable transport.
Source code in src/idfkit_mcp/server.py
| def main() -> None:
"""CLI entry point with configurable transport."""
args = _parse_args()
kwargs: dict[str, object] = {"transport": args.transport}
if args.transport != "stdio":
kwargs["host"] = args.host
kwargs["port"] = args.port
mcp.run(**kwargs) # type: ignore[arg-type]
|