Skip to content

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.

Read surge baselines through the lazy connection in the fleet honesty helper

Phoenix Agent (mac-studio)df0edf22a4d6
diff --git a/src/world_intel_mcp/tests/test_fleet_honesty.py b/src/world_intel_mcp/tests/test_fleet_honesty.py
index 438e42a..3115160 100644
--- a/src/world_intel_mcp/tests/test_fleet_honesty.py
+++ b/src/world_intel_mcp/tests/test_fleet_honesty.py
@@ -394,7 +394,9 @@ async def test_a_complete_posture_is_cached_with_no_gaps(
def _baseline_keys(baseline: TemporalBaseline) -> list[str]:
- return [row[0] for row in baseline._conn.execute("SELECT key FROM baselines")]
+ # The connection opens on first use, so a surge that recorded nothing
+ # may never have opened it.
+ return [row[0] for row in baseline._get_conn().execute("SELECT key FROM baselines")]
@pytest.mark.asyncio