Skip to main content

microsoft_365_mcp/
lib.rs

1//! microsoft-365-mcp — hybrid vector + BM25 RAG over the official
2//! Microsoft 365 documentation.
3//!
4//! The corpus is the MicrosoftDocs/microsoft-365-docs repository
5//! (microsoft-365/ and copilot/ trees, English markdown). A CLI walks the
6//! corpus checkout, chunks markdown with line provenance, embeds every
7//! chunk locally (fastembed ONNX, no API key), builds a tantivy BM25
8//! index, and serves hybrid retrieval (reciprocal rank fusion) over MCP
9//! or a CLI query command.
10//!
11//! Build with the embedded builder, run build-index, install, and query.
12//! See docs/setup.md for the full workflow.
13
14pub mod bm25;
15pub mod chunk;
16pub mod embed;
17pub mod install;
18pub mod rag;
19pub mod scan;
20pub mod server;
21
22/// Name used for the MCP server registration, the installed binary, the
23/// skill directory, and the tools' namespace. Rename here (and in
24/// Cargo.toml) when you copy this template into a project. The
25/// MICROSOFT_365_MCP_SERVER_NAME environment variable overrides it at install
26/// time.
27pub const SERVER_NAME: &str = "microsoft-365-mcp";