Explorar o código

docs: add get_related_entities to news-mcp README

Lukas Goldschmidt hai 1 mes
pai
achega
3a9ed19b21
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -57,6 +57,10 @@ Optional boolean:
 5) `get_news_sentiment(entity, timeframe)`
 - aggregates sentiment around an entity from cached enriched clusters
 
+6) `get_related_entities(subject, timeframe, limit)`
+- entity-only co-occurrence neighborhood: for a given subject entity, returns related entities with aggregated
+  `count`, `avg_importance`, and `sentiment`.
+
 ## Configuration
 
 See `news-mcp/.env`.
@@ -136,6 +140,13 @@ mcporter --config "$CONFIG" call news.detect_emerging_topics limit=10
 mcporter --config "$CONFIG" call news.get_news_sentiment entity=Bitcoin timeframe=24h
 mcporter --config "$CONFIG" call news.get_news_sentiment entity=Ethereum timeframe=72h
 
+### 6) Related entities (co-occurrence neighborhood)
+
+```bash
+mcporter --config "$CONFIG" call news.get_related_entities subject=iran timeframe=24h limit=8
+mcporter --config "$CONFIG" call news.get_related_entities subject="iran war" timeframe=3d limit=8
+```
+
 ## Blacklist enforcement (optional back-clean)
 
 If you change `ENTITY_BLACKLIST`, existing clusters in `news.sqlite` may still