A smart context management system for coding projects that uses knowledge graphs and vector databases for intelligent storage and retrieval.
- Zero-friction storage: Just say "add this to context" - no manual categorization needed
- Smart auto-categorization: AI-powered category detection and assignment
- Intelligent relationships: Automatic discovery of connections between contexts
- Semantic search: Find contexts by meaning, not just keywords
- Session continuity: Never lose project context again
# Install dependencies
uv sync
# Run setup script
uv run python scripts/setup_dev.pypip install -e .
python scripts/setup_dev.py- Copy environment template:
cp .env.example .env- Run the MCP server:
uv run python -m src.main
# OR with pip: python -m src.mainThe server exposes 5 simple tools:
list_categories()- Show available context categoriesstore_context(content, category)- Store new context with auto-categorizationget_context(topic, category)- Retrieve contexts about a topicget_related_contexts(topic)- Find related contexts using knowledge graphdelete_context(topic, category)- Remove contexts about a topic
- Vector Database: LanceDB for high-performance semantic search with Apache Arrow
- Knowledge Graph: NetworkX for relationship management
- Embeddings: Sentence Transformers (all-MiniLM-L6-v2) for local, fast embeddings
- Auto-categorization: Smart category detection
- Duplicate detection: Prevents redundant contexts
- Local storage: All data stored locally in
./data/
- LanceDB: Ultra-fast vector database built on Apache Arrow
- NetworkX: Directed graph for context relationships
- Sentence Transformers: Local embedding generation
- Pydantic: Type safety and validation
- Python 3.10+: Modern Python features
# Install development dependencies
uv sync
# Format code
uv run black .
uv run ruff check .
# Type checking
uv run mypy src/- 2-3x faster than ChromaDB for queries
- Lower memory footprint with zero-copy operations
- Built-in analytics capabilities for complex filtering
- Apache Arrow based for maximum performance
- Local-first with no external dependencies
MIT