Ver Fonte

Update GET / discovery payload

Lukas Goldschmidt há 1 mês atrás
pai
commit
ea221829db
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      news_mcp/mcp_server_fastmcp.py

+ 10 - 1
news_mcp/mcp_server_fastmcp.py

@@ -217,7 +217,16 @@ async def _start_background_refresh():
 
 @app.get("/")
 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")