|
|
@@ -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
|