memory_mcp/lib.rs
1//! Semantic memory engine with pure-Rust embeddings and git-backed storage.
2//!
3//! This crate provides the library core for `memory-mcp`, an MCP server that
4//! stores and retrieves memories using vector similarity search. Embeddings
5//! are computed on-device via candle (BERT inference) with no C/C++ FFI.
6
7#![warn(missing_docs)]
8
9/// Token resolution, OAuth device flow, and credential storage backends.
10pub mod auth;
11/// Embedding backends for computing vector representations of text.
12pub mod embedding;
13/// Error types used throughout the crate.
14pub mod error;
15/// Filesystem utilities — atomic writes with crash-safe temp-file-then-rename.
16pub(crate) mod fs_util;
17/// HNSW vector index for approximate nearest-neighbour search.
18pub mod index;
19/// Git-backed memory repository — read, write, sync, and diff operations.
20pub mod repo;
21/// MCP server implementation — tool handlers for the memory protocol.
22pub mod server;
23/// Domain types: memories, scopes, metadata, validation, and application state.
24pub mod types;