Skip to main content

fabryk_mcp_graph/
lib.rs

1//! Graph query MCP tools for Fabryk.
2//!
3//! This crate provides MCP tools that delegate to `fabryk-graph` algorithms.
4//!
5//! # Tools
6//!
7//! - `graph_related` — find related nodes
8//! - `graph_path` — shortest path between nodes
9//! - `graph_prerequisites` — learning order prerequisites
10//! - `graph_neighborhood` — N-hop neighborhood exploration
11//! - `graph_info` — graph statistics
12//! - `graph_validate` — structure validation
13//! - `graph_centrality` — most important nodes
14//! - `graph_bridges` — gateway nodes
15//!
16//! # Example
17//!
18//! ```rust,ignore
19//! use fabryk_graph::load_graph;
20//! use fabryk_mcp_graph::GraphTools;
21//!
22//! let graph = load_graph("graph.json")?;
23//! let graph_tools = GraphTools::new(graph);
24//!
25//! // Register with composite registry
26//! let registry = CompositeRegistry::new().add(graph_tools);
27//! ```
28
29pub mod tools;
30
31// Re-exports
32pub use tools::{GraphTools, NeighborhoodArgs, PathArgs, PrerequisitesArgs, RelatedArgs};