memory_project_contextcontextEntry point: returns the full project tree with current facts and edge IDs, or historical state via as_of.
Stop re-explaining your codebase every new chat. RustGraph is a self-hosted bitemporal knowledge graph over POST /mcp that remembers modules, decisions, bugs, and session history—what is true now, and what was true two months ago.
$ cargo run -p rustgraph -- serve --config config/default.toml --db rustgraph.sqlite{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "memory_project_context",
"arguments": { "group_id": "rustgraph" }
}
}One lightweight Rust process, 1 CPU core.
Binary, SQLite vault & 7 rolling backups.
Native JSON-RPC tools over Streamable HTTP.
No API keys on server; optional local Ollama.
RustGraph wires directly into Claude Code and Cursor using zero-dependency Python 3 hooks.
# Triggered automatically on new Claude Code / Cursor session
1. Resolve workspace folder -> project group ("rustgraph")
2. Fetch memory_project_context(group_id="rustgraph")
3. Inject compact brief into system context:
- Open bugs & active todos
- Architectural decisions (valid_now)
- Every module & feature status
- Last 3 session episodesRead timelines, batch-write facts atomically, supersede outdated decisions, and clean up duplicate entities.
memory_project_contextcontextEntry point: returns the full project tree with current facts and edge IDs, or historical state via as_of.
memory_meaning_searchcontextPC-side semantic search blending AI-supplied related words with optional local Ollama vector similarity.
memory_searchcontextKeyword and prefix FTS5 search with related terms (also), vector similarity, and include_ended history.
memory_get_entitycontextRead full details and active attributes for a single entity in the knowledge graph.
memory_timelinecontextInspect the complete chronological history of facts and status transitions for any entity.
memory_get_episodecontextRetrieve a saved coding session note (episode) linked to a project group.
memory_changes_sincecontextList everything added, ended, or modified in a project since a specific date.
memory_exportcontextExport every entity and edge ID in a project group for backup or migration.
memory_batchwriteExecute multiple graph writes in a single atomic SQLite transaction (all or nothing).
memory_add_modulewriteRegister a new codebase module under the active project in one MCP call.
memory_add_featurewriteAttach a feature with its current status and timestamp to a project module.
memory_add_itemwriteRecord a project todo, bug, or architectural decision in one call.
memory_upsert_entitywriteCreate or update a graph entity node with normalized naming.
memory_upsert_edgewriteCreate or update a typed relationship edge between two entities.
memory_ingestwriteStore a structured session note as an episode in the vault.
memory_suggestwriteRule-based parser that proposes entities, facts, todos, bugs, and decisions from raw notes without writing.
memory_supersedetemporalReplace an outdated fact while preserving the previous version as historical truth.
memory_invalidatetemporalMark a fact as ended with a timestamp without deleting its audit trail.
memory_set_statustemporalUpdate a feature status while keeping full historical state transitions.
memory_close_itemtemporalClose a todo or bug along with its resolution outcome.
memory_confirmtemporalRe-confirm that existing facts, todos, or bugs are still true and current.
memory_cleanup_reporthygieneAudit duplicates, look-alikes, conflicting facts, orphan nodes, and items unconfirmed for 14+ days.
memory_mergehygieneMerge two duplicate entities into a single canonical node.
memory_undo_mergehygieneSafely reverse a previous entity merge if needed.
memory_link_folderhygieneBind a local PC directory to a specific RustGraph project group ID.
memory_list_groupshygieneList accessible project groups with node and edge counts (plus memory_move_to_group).
memory_embed_synchygieneSync pending local Ollama embeddings via memory_embeddings_pending and memory_embeddings_upsert.
Facts are ended via memory_supersede rather than deleted, enabling exact as_of historical project reconstruction.
Served directly via rust-embed with force-directed graph visualization, neighbor focus, type filters, and 10s Live refresh.
Meaning search works out of the box via SQLite FTS5 + AI-expanded terms, with optional local Ollama (nomic-embed-text).
Stores only the blake3 token digest in auth.token_blake3_hex. All routes except /v1/health and /ui require Bearer auth.
Detect duplicates, contradictions, and 14-day stale todos via memory_cleanup_report, with safe memory_merge and undo.
Isolate each repo in its own group while personal facts live in default. Full JSONL export and import built in.
Clone the repo and launch the RustGraph vault on localhost:8080 with an embedded graph UI at /ui.
git clone https://github.com/vishvajeet2012/RustGraph.git cd RustGraph cargo run -p rustgraph -- serve --config config/default.toml --db rustgraph.sqlite # Open the embedded force-directed graph dashboard: # http://127.0.0.1:8080/ui