gdelt 0.1.0

CLI for GDELT Project - optimized for agentic usage with local data caching
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! MCP (Model Context Protocol) server for GDELT.
//!
//! Provides an MCP server that exposes GDELT tools to AI assistants.
//! This module is only available when the `mcp` feature is enabled.

#[cfg(feature = "mcp")]
pub mod server;
#[cfg(feature = "mcp")]
pub mod tools;

#[cfg(feature = "mcp")]
pub use server::start_mcp_server;

/// Check if MCP feature is available
#[allow(dead_code)]
pub fn is_available() -> bool {
    cfg!(feature = "mcp")
}