Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions joinly/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from fastmcp import Context, FastMCP
from fastmcp.server.dependencies import get_http_headers
from pydantic import AnyUrl, Field, ValidationError
from starlette.requests import Request
from starlette.responses import JSONResponse

from joinly.container import SessionContainer
from joinly.session import MeetingSession
Expand Down Expand Up @@ -271,5 +273,11 @@ async def unmute_yourself(
return "Unmuted yourself."


@mcp.custom_route("/health", methods=["GET"])
async def health_check(_req: Request) -> JSONResponse:
"""Health check endpoint."""
return JSONResponse({"status": "healthy"})


if __name__ == "__main__":
mcp.run(transport="streamable-http")