Code Memory
未认领MCP server with local vector search for your codebase. Smart indexing, semantic search, Git history — all offline.
安装
uvx code-memory工具(4 个)
index_codebase
Indexes or re-indexes source files and documentation in the given directory. Run this before using searchcode or searchdocs to ensure the database is up to date. Uses tree-sitter for language-agnostic structural extraction and generates dense vector embeddings using sentence-transformers (runs local
search_code
Perform semantic search and find structural code definitions, locate where functions/classes are defined, or map out dependency references (call graphs). Uses hybrid retrieval (BM25 + vector embeddings) to find exact matches and semantic similarities.
search_docs
Understand the codebase conceptually — how things work, architectural patterns, SOPs. Searches markdown documentation, READMEs, and docstrings extracted from code.
search_history
Debug regressions and understand developer intent through Git history.