| 12345678910111213141516171819202122232425262728293031 |
- """FastAPI entrypoint for Atlas-MCP."""
- from __future__ import annotations
- from datetime import datetime, timezone
- from typing import Dict
- from fastapi import FastAPI
- from .mcp_server import mcp
- START_TIME = datetime.now(timezone.utc)
- app = FastAPI(
- title="Atlas-MCP",
- description="Semantic intelligence layer for entity resolution and enrichment.",
- version="0.0.2",
- )
- app.mount("/mcp", mcp.sse_app())
- @app.get("/health", tags=["liveness"])
- async def health() -> Dict[str, object]:
- now = datetime.now(timezone.utc)
- uptime_seconds = (now - START_TIME).total_seconds()
- return {
- "status": "ok",
- "uptime_seconds": round(uptime_seconds, 2),
- "fastmcp_registered": False,
- "tools": ["resolve_entity", "enrich_entity"],
- }
|