Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions Server/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
CustomToolService,
resolve_project_id_for_unity_instance,
)
from services.overseer_ledger import register_overseer_routes
from core.config import config
from starlette.routing import WebSocketRoute
from starlette.responses import JSONResponse
Expand Down Expand Up @@ -383,6 +384,11 @@ def create_mcp_server(project_scoped_tools: bool) -> FastMCP:
global custom_tool_service
custom_tool_service = CustomToolService(
mcp, project_scoped_tools=project_scoped_tools)
register_overseer_routes(
mcp,
include_internal_routes=not config.http_remote_hosted,
allow_default_tokens=not config.http_remote_hosted,
)

@mcp.custom_route("/health", methods=["GET"])
async def health_http(_: Request) -> JSONResponse:
Expand Down
Loading