160-tool MCP server for real-time global intelligence from free public APIs: markets, liquidity, prediction markets, SEC filings, conflict, military, aircraft-cohort early warning, migration and border flows, cyber, climate, news and more. Dated observation history, 29 research prompts, cited briefs, geofences, SSE dashboard. MIT, no paid API keys.
Python ai-toolsai-watchanthropicclaudecybersecuritydashboardgeofencinggeopoliticalgeospatialintelligencemarketsmcpmigrationmilitarymodel-context-protocolnuclearosintreal-timespace-weatherthreat-intelligence
Fix two cross-module silent-zero key mismatches (world brief, fleet report)
Phoenix Agent (Marcs-Mac-Studio)7b54f51c07a3
diff --git a/src/world_intel_mcp/analysis/world_brief.py b/src/world_intel_mcp/analysis/world_brief.pyindex b78f45c..c65a227 100644--- a/src/world_intel_mcp/analysis/world_brief.py+++ b/src/world_intel_mcp/analysis/world_brief.py@@ -65,33 +65,45 @@ async def fetch_world_brief(fetcher) -> dict:# Section 2: Focal Areas (where attention should be)focal_areas = []for fp in (focal_data.get("focal_points") or [])[:8]:- focal_areas.append({- "entity": fp.get("entity", "unknown"),- "entity_type": fp.get("entity_type", "unknown"),- "signal_count": fp.get("signal_count", 0),- "domains": fp.get("domains", []),- })+ focal_areas.append(+ {+ "entity": fp.get("entity", "unknown"),+ "entity_type": fp.get("entity_type", "unknown"),+ "signal_count": fp.get("signal_count", 0),+ "domains": fp.get("domains", []),+ }+ )# Section 3: Top Stories (from news clusters)top_stories = []for cluster in (cluster_data.get("clusters") or [])[:6]:- top_stories.append({- "topic_keywords": cluster.get("keywords", [])[:5],- "article_count": cluster.get("article_count", 0),- "sources": cluster.get("sources", [])[:3],- "headline": (cluster.get("items") or [{}])[0].get("title", "") if cluster.get("items") else "",- })+ top_stories.append(+ {+ "topic_keywords": cluster.get("keywords", [])[:5],+ # fetch_news_clusters emits the member count as "size";+ # "article_count" is kept as a fallback for older callers.+ # Reading only "article_count" made this 0 in every real+ # brief (the silent-zero class).+ "article_count": cluster.get("size", cluster.get("article_count", 0)),+ "sources": cluster.get("sources", [])[:3],+ "headline": (cluster.get("items") or [{}])[0].get("title", "")+ if cluster.get("items")+ else "",+ }+ )# Section 4: Anomalies (what's unusual today)anomalies = []for a in (anomaly_data.get("anomalies") or [])[:6]:- anomalies.append({- "metric": a.get("key", "unknown"),- "z_score": a.get("z_score", 0),- "current_value": a.get("current_value", 0),- "baseline_mean": a.get("baseline_mean", 0),- "description": a.get("description", ""),- })+ anomalies.append(+ {+ "metric": a.get("key", "unknown"),+ "z_score": a.get("z_score", 0),+ "current_value": a.get("current_value", 0),+ "baseline_mean": a.get("baseline_mean", 0),+ "description": a.get("description", ""),+ }+ )# Section 5: Trending Threats (from keyword spikes + CVE/APT extraction)trending = {diff --git a/src/world_intel_mcp/sources/fleet.py b/src/world_intel_mcp/sources/fleet.pyindex 9c1e67b..ff2de16 100644--- a/src/world_intel_mcp/sources/fleet.py+++ b/src/world_intel_mcp/sources/fleet.py@@ -98,30 +98,40 @@ async def fetch_fleet_report(fetcher) -> dict:for name, t in theaters.items():if not isinstance(t, dict):continue- theater_summary.append({- "name": name,- "aircraft_count": t.get("count", 0),- "top_types": t.get("top_types", [])[:3],- })+ theater_summary.append(+ {+ "name": name,+ "aircraft_count": t.get("count", 0),+ "top_types": t.get("top_types", [])[:3],+ }+ )# Waterway summarywaterway_summary = []for ww in waterways:- waterway_summary.append({- "name": ww.get("name", "Unknown"),- "status": ww.get("status", "unknown"),- "warning_count": ww.get("warning_count", 0),- })+ waterway_summary.append(+ {+ "name": ww.get("name", "Unknown"),+ "status": ww.get("status", "unknown"),+ # fetch_vessel_snapshot emits the count as "naval_warnings";+ # "warning_count" is kept as a fallback for older shapes.+ # Reading only "warning_count" made this 0 in every real+ # fleet report (the silent-zero class).+ "warning_count": ww.get("naval_warnings", ww.get("warning_count", 0)),+ }+ )# Active surgesactive_surges = []for s in surges:- active_surges.append({- "region": s.get("region", "Unknown"),- "aircraft_count": s.get("aircraft_count", 0),- "baseline": s.get("baseline", 0),- "ratio": s.get("ratio", 0),- })+ active_surges.append(+ {+ "region": s.get("region", "Unknown"),+ "aircraft_count": s.get("aircraft_count", 0),+ "baseline": s.get("baseline", 0),+ "ratio": s.get("ratio", 0),+ }+ )return {"readiness_level": readiness_level,