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.

546 B
Raw Blame
"""Isolate cache and temporary files before importing any package modules."""

import os
import tempfile
from pathlib import Path

_test_directory = tempfile.TemporaryDirectory(
    prefix=".test-cache-", dir=Path(__file__).parent
)
_test_root = Path(_test_directory.name)
(_test_root / "home").mkdir()
os.environ["HOME"] = str(_test_root / "home")
os.environ["XDG_CACHE_HOME"] = str(_test_root / "cache")
os.environ["WORLD_INTEL_CACHE_DB"] = str(_test_root / "cache.db")
os.environ["TMPDIR"] = str(_test_root)
tempfile.tempdir = str(_test_root)