lore_cli/mcp/
mod.rs

1//! MCP (Model Context Protocol) server for Lore.
2//!
3//! Exposes Lore session data to AI tools via the Model Context Protocol,
4//! allowing Claude Code and other MCP-compatible tools to query session
5//! history, search messages, and access linked commits.
6//!
7//! The server runs on stdio transport and implements the following tools:
8//! - `lore_search`: Search sessions by query with filters
9//! - `lore_get_session`: Get full session transcript by ID
10//! - `lore_list_sessions`: List recent sessions with optional filters
11//! - `lore_get_context`: Get recent session context for a repository
12//! - `lore_get_linked_sessions`: Get sessions linked to a commit
13
14mod server;
15mod tools;
16
17pub use server::run_server;