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: ship collector plist as a template, resolve repo root at runtime
Phoenix Agent (Marcs-Mac-Studio)5986a4e70a5d
diff --git a/README.md b/README.mdindex 3ace263..9db2cfa 100644--- a/README.md+++ b/README.md@@ -447,6 +447,23 @@ intel-collector --sources markets,cyber # specific domains onlyintel-collector # single collection cycle```+### Running as a macOS launchd Service++`scripts/collector-daemon.sh` manages the collector as a `launchd` agent so it+survives reboots. It fills in `com.agentic.intel-collector.plist.template`+with this checkout's own path (resolved from the script's own location, so+it works from any clone) and installs the result to+`~/Library/LaunchAgents/`.++```bash+scripts/collector-daemon.sh start # install + load the launchd job+scripts/collector-daemon.sh status # check state and log info+scripts/collector-daemon.sh logs # tail stdout (logs err for stderr)+scripts/collector-daemon.sh stop # unload the launchd job+scripts/collector-daemon.sh restart+scripts/collector-daemon.sh render # print the filled-in plist without installing it+```+### Semantic Search ExamplesOnce data accumulates, AI agents can query across all domains:diff --git a/com.agentic.intel-collector.plist b/com.agentic.intel-collector.plist.templatesimilarity index 70%rename from com.agentic.intel-collector.plistrename to com.agentic.intel-collector.plist.templateindex 5bd6b09..0cabfa9 100644--- a/com.agentic.intel-collector.plist+++ b/com.agentic.intel-collector.plist.template@@ -7,7 +7,7 @@<key>ProgramArguments</key><array>- <string>/Volumes/SSDRAID0/agentic-system/mcp-servers/world-intel-mcp/.venv/bin/python</string>+ <string>__REPO_ROOT__/.venv/bin/python</string><string>-m</string><string>world_intel_mcp.collector</string><string>--daemon</string>@@ -16,7 +16,7 @@</array><key>WorkingDirectory</key>- <string>/Volumes/SSDRAID0/agentic-system/mcp-servers/world-intel-mcp</string>+ <string>__REPO_ROOT__</string><key>RunAtLoad</key><true/>@@ -36,9 +36,9 @@<key>EnvironmentVariables</key><dict><key>PATH</key>- <string>/Volumes/SSDRAID0/agentic-system/mcp-servers/world-intel-mcp/.venv/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>+ <string>__REPO_ROOT__/.venv/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string><key>PYTHONPATH</key>- <string>/Volumes/SSDRAID0/agentic-system/mcp-servers/world-intel-mcp/src</string>+ <string>__REPO_ROOT__/src</string><key>WORLD_INTEL_LOG_LEVEL</key><string>INFO</string></dict>diff --git a/scripts/collector-daemon.sh b/scripts/collector-daemon.shindex ac1bf60..cf3c4e8 100755--- a/scripts/collector-daemon.sh+++ b/scripts/collector-daemon.sh@@ -9,7 +9,9 @@set -euo pipefail-PLIST_SRC="/Volumes/SSDRAID0/agentic-system/mcp-servers/world-intel-mcp/com.agentic.intel-collector.plist"+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"+PLIST_TEMPLATE="$REPO_ROOT/com.agentic.intel-collector.plist.template"PLIST="$HOME/Library/LaunchAgents/com.agentic.intel-collector.plist"LABEL="com.agentic.intel-collector"LOG="/tmp/intel-collector.log"@@ -21,15 +23,25 @@ YELLOW='\033[1;33m'CYAN='\033[0;36m'NC='\033[0m'+# Fill in the plist template with this checkout's repo root and write it to+# the given path (defaults to the LaunchAgents install location). Does not+# touch launchctl; safe to call for inspection.+render_plist() {+ local out="${1:-$PLIST}"+ if [ ! -f "$PLIST_TEMPLATE" ]; then+ echo -e "${RED}Missing plist template: $PLIST_TEMPLATE${NC}" >&2+ exit 1+ fi+ sed "s#__REPO_ROOT__#$REPO_ROOT#g" "$PLIST_TEMPLATE" > "$out"+}+case "${1:-help}" instart)if launchctl list "$LABEL" &>/dev/null; thenecho -e "${YELLOW}Intel collector already running${NC}"exit 0fi- if [ ! -f "$PLIST" ]; then- cp "$PLIST_SRC" "$PLIST"- fi+ render_plist "$PLIST"launchctl load "$PLIST"sleep 1if launchctl list "$LABEL" &>/dev/null; then@@ -104,10 +116,15 @@ case "${1:-help}" inesac;;+ render)+ OUT="${2:-/dev/stdout}"+ render_plist "$OUT"+ ;;+help|*)echo "Intel Collector Daemon Control"echo ""- echo "Usage: $0 {start|stop|restart|status|logs}"+ echo "Usage: $0 {start|stop|restart|status|logs|render}"echo ""echo " start Start the intel collector daemon"echo " stop Stop the intel collector daemon"@@ -115,5 +132,8 @@ case "${1:-help}" inecho " status Show daemon state and log info"echo " logs Tail stdout log (follow mode)"echo " logs err Tail stderr log (follow mode)"+ echo " render [path] Fill the plist template with this checkout's"+ echo " repo root and print it (or write it to path)."+ echo " Does not install or touch launchctl.";;esac