🐛 Bug Fix Release
This patch release fixes a critical bug preventing document ingestion through the web console.
Fixed
Document Ingestion Bug - Missing Import (PR #312 by @feroult)
-
Problem:
NameError: name 'generate_content_hash' is not definedwhen ingesting documents via web consolegenerate_content_hashwas used inweb/api/documents.pybut never imported- Runtime error occurred when attempting document ingestion through the web interface
-
Root Cause: Missing import statement in documents.py API handler
-
Solution:
- Added
from ...utils.hashing import generate_content_hashtoweb/api/documents.py - Changed import in
document_processing.pyfromfrom . import generate_content_hashtofrom .hashing import generate_content_hashto prevent circular imports
- Added
-
Impact: Fixes document ingestion via web console (PDF, DOCX, PPTX, TXT/MD files)
-
Files Changed:
src/mcp_memory_service/web/api/documents.py- Added missing importsrc/mcp_memory_service/utils/document_processing.py- Fixed import to prevent circular dependency
Upgrade Instructions
pip install --upgrade mcp-memory-serviceFor source installations:
cd mcp-memory-service
git pull origin main
pip install -e .Credits
Special thanks to @feroult (Fernando Ultremare) for identifying and fixing this issue.
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com