|
@@ -217,7 +217,16 @@ async def _start_background_refresh():
|
|
|
|
|
|
|
|
@app.get("/")
|
|
@app.get("/")
|
|
|
def root():
|
|
def root():
|
|
|
- return {"status": "ok", "transport": "fastmcp+sse", "mount": "/mcp", "tools": ["get_latest_events"]}
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ "status": "ok",
|
|
|
|
|
+ "transport": "fastmcp+sse",
|
|
|
|
|
+ "mount": "/mcp",
|
|
|
|
|
+ "tools": ["get_latest_events", "get_events_for_entity", "get_event_summary", "detect_emerging_topics"],
|
|
|
|
|
+ "refresh": {
|
|
|
|
|
+ "enabled": NEWS_BACKGROUND_REFRESH_ENABLED,
|
|
|
|
|
+ "interval_seconds": NEWS_REFRESH_INTERVAL_SECONDS,
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.get("/health")
|
|
@app.get("/health")
|