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: wildfire data parsing + dashboard cascade failure protection
Marc Shade2d1c95389a02
diff --git a/src/world_intel_mcp/analysis/exposure.py b/src/world_intel_mcp/analysis/exposure.pyindex 0871426..e6fd284 100644--- a/src/world_intel_mcp/analysis/exposure.py+++ b/src/world_intel_mcp/analysis/exposure.py@@ -117,17 +117,17 @@ async def fetch_population_exposure("detail": f"M{eq.get('magnitude', '?')} {eq.get('place', '')}",})- # Wildfires- for region_data in results.get("wildfire", {}).get("regions", []):- for fire in region_data.get("detections", []):- lat = fire.get("latitude") or fire.get("lat")- lon = fire.get("longitude") or fire.get("lon")+ # Wildfires (fires_by_region is a dict keyed by region name)+ for region_name, region_data in results.get("wildfire", {}).get("fires_by_region", {}).items():+ for cluster in region_data.get("top_clusters", []):+ lat = cluster.get("lat")+ lon = cluster.get("lon")if lat is not None and lon is not None:events.append({"lat": float(lat),"lon": float(lon),"type": "wildfire",- "detail": f"FRP {fire.get('frp', '?')} in {region_data.get('region', '?')}",+ "detail": f"FRP {cluster.get('max_frp', '?')} ({cluster.get('fire_count', '?')} fires) in {region_name}",})# Conflictdiff --git a/src/world_intel_mcp/dashboard/index.html b/src/world_intel_mcp/dashboard/index.htmlindex 8c980b6..5e893f6 100644--- a/src/world_intel_mcp/dashboard/index.html+++ b/src/world_intel_mcp/dashboard/index.html@@ -1887,30 +1887,35 @@ function updateTicker(data) {function updateAll(data) {latestData = data;- // Map layers- updateMapQuakes(data.earthquakes);- updateMapMilitary(data.military_flights);+ // Map layers (each wrapped to prevent cascade failures)var conflictData = (data.acled_events && !data.acled_events.error && data.acled_events.count > 0) ? data.acled_events: (data.ucdp_events && !data.ucdp_events.error && data.ucdp_events.count > 0) ? data.ucdp_events: data.conflict_zones;- updateMapConflict(conflictData);- updateMapFires(data.wildfires);- updateMapConvergence(data.signal_convergence);- updateMapNuclear(data.nuclear_monitor);- updateMapInfra(data);- updateMapExposure(data.population_exposure);+ var mapUpdates = [+ ['quakes', function() { updateMapQuakes(data.earthquakes); }],+ ['military', function() { updateMapMilitary(data.military_flights); }],+ ['conflict', function() { updateMapConflict(conflictData); }],+ ['fires', function() { updateMapFires(data.wildfires); }],+ ['convergence', function() { updateMapConvergence(data.signal_convergence); }],+ ['nuclear', function() { updateMapNuclear(data.nuclear_monitor); }],+ ['infra', function() { updateMapInfra(data); }],+ ['exposure', function() { updateMapExposure(data.population_exposure); }]+ ];+ mapUpdates.forEach(function(pair) {+ try { pair[1](); } catch(e) { console.warn('updateAll: ' + pair[0] + ' failed:', e); }+ });// Alert banner- updateAlertBanner(data.alert_digest);+ try { updateAlertBanner(data.alert_digest); } catch(e) { console.warn('updateAll: alert_banner failed:', e); }// HUD- updateHudStats(data);+ try { updateHudStats(data); } catch(e) { console.warn('updateAll: hud failed:', e); }// Drawer- updateDrawer(data);+ try { updateDrawer(data); } catch(e) { console.warn('updateAll: drawer failed:', e); }// Ticker- updateTicker(data);+ try { updateTicker(data); } catch(e) { console.warn('updateAll: ticker failed:', e); }// Feed healthvar feedKeys = Object.keys(data).filter(function(k) { return k !== 'source_health' && k !== 'cache_stats' && k !== 'timestamp'; });