Skip to main content

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/// HNSW vector index for approximate nearest-neighbour search.
16pub mod index;
17/// Git-backed memory repository — read, write, sync, and diff operations.
18pub mod repo;
19/// MCP server implementation — tool handlers for the memory protocol.
20pub mod server;
21/// Domain types: memories, scopes, metadata, validation, and application state.
22pub mod types;