소스 검색

Update GET / discovery payload

Lukas Goldschmidt 1 개월 전
부모
커밋
ea221829db
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  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")