MCP-memento
mcp
Fail
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 10 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .github/workflows/move-server-latest.yml
- process.env — Environment variable access in vscode-extension/src/extension.js
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Local-first MCP server that gives AI agents durable repo memory and fast semantic code context.
README.md
memento-mcp
A local-first MCP server that gives AI agents durable, high-signal memory for your repository: indexed code context, semantic relationships, fast search, and explicit notes that persist across sessions.
fun easy tl;dr version of the change logs: Nomit Memento
Languages
- English:
README.md - Brazilian Portuguese:
README.pt-BR.md
Documentation
- Project docs:
docs/README.md - Generic MCP clients:
docs/clients.md - VS Code usage:
docs/vscode.md - VS Code extension:
vscode-extension/README.md - ADR guide:
docs/adr/README.md - ADR index and decisions:
docs/adr/ADRs.md
What It Does
- Exposes MCP tools for repo operations:
repo_list_files,repo_read_file,repo_search,repo_related_files,repo_context,repo_switch_workspace - Maintains an on-disk code index per repository for fast, bounded context retrieval
- Stores explicit repo-scoped notes:
memory_upsert,memory_search,memory_clear - Supports a companion VS Code extension that installs and configures the server
How It Works
- The server starts over stdio JSON-RPC and registers MCP tools.
- It builds and updates a local chunk index under
~/.memento-mcp/. - Change detection is incremental:
- Default (
auto): filesystem watcher first, fallback togit statuspolling for git repos if watcher fails - Configurable via
MEMENTO_CHANGE_DETECTOR(auto/fs/git)
- Default (
- Context tools combine:
- Indexed chunks and scoring
- Language-aware relationships (Go, TS/JS, PHP)
- Hard byte and line limits for LLM context safety
- Explicit notes are stored separately as durable, repo-scoped memory.
Project Structure
cmd/server/- entrypointinternal/mcp/- MCP server and tool handlersinternal/indexing/- chunking, manifest, search, incremental indexinginternal/app/- app lifecycle wiringvscode-extension/- companion extension (installer and MCP config UX)docs/- usage docs and ADRs
Contributing
Prerequisites
- Go
1.25.5 - Node.js (only if working on
vscode-extension/)
Local Development
git clone https://github.com/caiowilson/MCP-memento.git
cd MCP-memento
make build
./bin/memento-mcp
Generic Client Onboarding
./bin/memento-mcp print-config
./bin/memento-mcp print-guidance
Run Tests
go test ./...
VS Code Extension Development
cd vscode-extension
npm install
npm run build
Contribution Flow
- Create a branch from
main. - Make focused changes with tests and docs updates.
- Run
go test ./...(and extension build/tests when applicable). - Open a PR with:
- Problem statement
- Approach
- Validation steps
- Any tool or behavior changes
Roadmap Themes
- Better context quality and ranking
- Broader semantic language support
- Extension UX and install reliability
- Release automation and operational tooling
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found