worldmonitor 0.1.0

Official Rust SDK for World Monitor intelligence data and MCP tools
Documentation
1
2
3
4
5
6
7
8
9
use serde_json::json;
use worldmonitor::Client;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::from_env()?;
    let result = client.call_tool("get_sources", json!({"view": "summary"}))?;
    println!("{}", serde_json::to_string_pretty(&result)?);
    Ok(())
}