entity_graph_mcp/lib.rs
1//! `entity-graph-mcp` — MCP server for the Prometheus entity-graph ecosystem.
2//!
3//! Exposes entity data as MCP **resources** (`entity://{type}/{id}`) and
4//! **tools** (`entity_query`, `entity_upsert`, `entity_delete`,
5//! `entity_list_types`) via two transports:
6//!
7//! * **stdio** — for embedding inside Claude Desktop / local MCP hosts.
8//! * **Streamable HTTP** — for remote or multi-tenant deployments (Axum +
9//! `rmcp::transport::StreamableHttpService`).
10//!
11//! The in-process entity store is a `DashMap`-backed graph that mirrors the
12//! shape of `@prometheus-ags/entity-graph-core`. In production, wire the
13//! `EntityStore` to your real persistence layer by replacing the `DashMap`
14//! with database calls inside each method.
15
16pub mod cli;
17pub mod server;
18pub mod store;
19pub mod transport;
20
21pub use server::EntityGraphServer;
22pub use store::EntityStore;