vera2_mcp/lib.rs
1//! Vera MCP Server — Model Context Protocol interface for Vera.
2//!
3//! Exposes Vera's indexing and retrieval capabilities as MCP tools over
4//! JSON-RPC 2.0 with stdio transport:
5//! - `search_code` — hybrid search (auto-indexes and watches on first use)
6//! - `get_stats` — retrieve index statistics
7//! - `get_overview` — summarize project structure
8//! - `regex_search` — regex search over indexed files
9//!
10//! # Usage
11//!
12//! Start the server with `vera mcp`. The server reads JSON-RPC messages
13//! from stdin and writes responses to stdout. Logs go to stderr.
14
15pub mod protocol;
16pub mod saved_config;
17pub mod server;
18pub mod staleness;
19#[cfg(test)]
20mod test_support;
21pub mod tools;
22pub mod watcher;