Skip to content

Commit 45facba

Browse files
doobidooclaude
andcommitted
docs: improve first-time setup documentation and user experience (v6.13.1)
- Add prominent "First-Time Setup Expectations" section to README - Create comprehensive docs/first-time-setup.md guide - Enhance troubleshooting with first-time warnings section - Improve install.py with clear progress messages - Clarify that "No snapshots directory" warning is normal - Add Ubuntu 24-specific installation instructions Fixes #95: Users now understand that initial warnings are expected behavior during first run when models are being downloaded (~25MB). 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ef9df0c commit 45facba

File tree

7 files changed

+260
-4
lines changed

7 files changed

+260
-4
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to the MCP Memory Service project will be documented in this
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [6.13.1] - 2025-09-03
8+
9+
### 📚 **Documentation & User Experience**
10+
11+
#### First-Time Setup Documentation (Addresses Issue #95)
12+
- **Added First-Time Setup Section**: New prominent section in README.md explaining expected warnings on initial run
13+
- **Created Comprehensive Guide**: New `docs/first-time-setup.md` with detailed explanations of:
14+
- Normal warnings vs actual errors
15+
- Model download process (~25MB, 1-2 minutes)
16+
- Success indicators and verification steps
17+
- Ubuntu 24-specific installation instructions
18+
- **Enhanced Troubleshooting**: Updated `docs/troubleshooting/general.md` with first-time warnings section
19+
- **Improved Installer Messages**: Enhanced `install.py` with clear first-time setup expectations and progress indicators
20+
21+
### 🐛 **Bug Fixes**
22+
23+
#### User Experience Improvements
24+
- **Fixed Issue #95**: Clarified that "No snapshots directory" warning is normal on first run
25+
- **Addressed Confusion**: Distinguished between expected initialization warnings and actual errors
26+
- **Ubuntu 24 Support**: Added specific documentation for Ubuntu 24 installation issues
27+
28+
### 📝 **Changes**
29+
- Added clear messaging that warnings disappear after first successful run
30+
- Included estimated download times and model sizes in documentation
31+
- Improved installer output to set proper expectations for first-time users
32+
733
## [6.13.0] - 2025-08-25
834

935
### **Major Features**

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ docker-compose -f docker-compose.http.yml up -d
3838
npx -y @smithery/cli install @doobidoo/mcp-memory-service --client claude
3939
```
4040

41+
## ⚠️ First-Time Setup Expectations
42+
43+
On your first run, you'll see some warnings that are **completely normal**:
44+
45+
- **"WARNING: Failed to load from cache: No snapshots directory"** - The service is checking for cached models (first-time setup)
46+
- **"WARNING: Using TRANSFORMERS_CACHE is deprecated"** - Informational warning, doesn't affect functionality
47+
- **Model download in progress** - The service automatically downloads a ~25MB embedding model (takes 1-2 minutes)
48+
49+
These warnings disappear after the first successful run. The service is working correctly! For details, see our [First-Time Setup Guide](docs/first-time-setup.md).
50+
4151
## 📚 Complete Documentation
4252

4353
**👉 Visit our comprehensive [Wiki](https://github.com/doobidoo/mcp-memory-service/wiki) for detailed guides:**

docs/first-time-setup.md

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# First-Time Setup Guide
2+
3+
This guide explains what to expect when running MCP Memory Service for the first time.
4+
5+
## 🎯 What to Expect on First Run
6+
7+
When you start the MCP Memory Service for the first time, you'll see several warnings and messages. **This is completely normal behavior** as the service initializes and downloads necessary components.
8+
9+
## 📋 Normal First-Time Warnings
10+
11+
### 1. Snapshots Directory Warning
12+
```
13+
WARNING:mcp_memory_service.storage.sqlite_vec:Failed to load from cache: No snapshots directory
14+
```
15+
16+
**What it means:**
17+
- The service is checking for previously downloaded embedding models
18+
- On first run, no cache exists yet, so this warning appears
19+
- The service will automatically download the model
20+
21+
**This is normal:** ✅ Expected on first run
22+
23+
### 2. TRANSFORMERS_CACHE Warning
24+
```
25+
WARNING: Using TRANSFORMERS_CACHE is deprecated
26+
```
27+
28+
**What it means:**
29+
- This is an informational warning from the Hugging Face library
30+
- It doesn't affect the service functionality
31+
- The service handles caching internally
32+
33+
**This is normal:** ✅ Can be safely ignored
34+
35+
### 3. Model Download Progress
36+
```
37+
Downloading model 'all-MiniLM-L6-v2'...
38+
```
39+
40+
**What it means:**
41+
- The service is downloading the embedding model (approximately 25MB)
42+
- This happens only once on first setup
43+
- Download time: 1-2 minutes on average internet connection
44+
45+
**This is normal:** ✅ One-time download
46+
47+
## 🚦 Success Indicators
48+
49+
After successful first-time setup, you should see:
50+
51+
```
52+
INFO: SQLite-vec storage initialized successfully with embedding dimension: 384
53+
INFO: Memory service started on port 8443
54+
INFO: Ready to accept connections
55+
```
56+
57+
## 📊 First-Time Setup Timeline
58+
59+
| Step | Duration | What's Happening |
60+
|------|----------|-----------------|
61+
| 1. Service Start | Instant | Loading configuration |
62+
| 2. Cache Check | 1-2 seconds | Checking for existing models |
63+
| 3. Model Download | 1-2 minutes | Downloading embedding model (~25MB) |
64+
| 4. Model Loading | 5-10 seconds | Loading model into memory |
65+
| 5. Database Init | 2-3 seconds | Creating database structure |
66+
| 6. Ready | - | Service is ready to use |
67+
68+
**Total first-time setup:** 2-3 minutes
69+
70+
## 🔄 Subsequent Runs
71+
72+
After the first successful run:
73+
- No download warnings will appear
74+
- Model loads from cache (5-10 seconds)
75+
- Service starts much faster (10-15 seconds total)
76+
77+
## 🐧 Ubuntu/Linux Specific Notes
78+
79+
For Ubuntu 24 and other Linux distributions:
80+
81+
### Prerequisites
82+
```bash
83+
# System dependencies
84+
sudo apt update
85+
sudo apt install python3.10 python3.10-venv python3.10-dev python3-pip
86+
sudo apt install build-essential libblas3 liblapack3 liblapack-dev libblas-dev gfortran
87+
```
88+
89+
### Recommended Setup
90+
```bash
91+
# Create virtual environment
92+
python3 -m venv venv
93+
source venv/bin/activate
94+
95+
# Install the service
96+
python install.py
97+
98+
# Start the service
99+
uv run memory server
100+
```
101+
102+
## 🔧 Troubleshooting First-Time Issues
103+
104+
### Issue: Download Fails
105+
**Solution:**
106+
- Check internet connection
107+
- Verify firewall/proxy settings
108+
- Clear cache and retry: `rm -rf ~/.cache/huggingface`
109+
110+
### Issue: "No module named 'sentence_transformers'"
111+
**Solution:**
112+
```bash
113+
pip install sentence-transformers torch
114+
```
115+
116+
### Issue: Permission Denied
117+
**Solution:**
118+
```bash
119+
# Fix permissions
120+
chmod +x scripts/*.sh
121+
sudo chown -R $USER:$USER ~/.mcp_memory_service/
122+
```
123+
124+
### Issue: Service Doesn't Start After Download
125+
**Solution:**
126+
1. Check logs: `uv run memory server --debug`
127+
2. Verify installation: `python scripts/verify_environment.py`
128+
3. Restart with clean state:
129+
```bash
130+
rm -rf ~/.mcp_memory_service
131+
uv run memory server
132+
```
133+
134+
## ✅ Verification
135+
136+
To verify successful setup:
137+
138+
```bash
139+
# Check service health
140+
curl -k https://localhost:8443/api/health
141+
142+
# Or using the CLI
143+
uv run memory health
144+
```
145+
146+
Expected response:
147+
```json
148+
{
149+
"status": "healthy",
150+
"storage_backend": "sqlite_vec",
151+
"model_loaded": true
152+
}
153+
```
154+
155+
## 🎉 Setup Complete!
156+
157+
Once you see the success indicators and the warnings have disappeared on subsequent runs, your MCP Memory Service is fully operational and ready to use!
158+
159+
### Next Steps:
160+
- [Configure Claude Desktop](../README.md#claude-desktop-integration)
161+
- [Store your first memory](../README.md#basic-usage)
162+
- [Explore the API](https://github.com/doobidoo/mcp-memory-service/wiki)
163+
164+
## 📝 Notes
165+
166+
- The model download is a one-time operation
167+
- Downloaded models are cached in `~/.cache/huggingface/`
168+
- The service creates a database in `~/.mcp_memory_service/`
169+
- All warnings shown during first-time setup are expected behavior
170+
- If you see different errors (not warnings), check the [Troubleshooting Guide](troubleshooting/general.md)
171+
172+
---
173+
174+
Remember: **First-time warnings are normal!** The service is working correctly and setting itself up for optimal performance.

docs/troubleshooting/general.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22

33
This guide covers common issues and their solutions when working with the MCP Memory Service.
44

5+
## First-Time Setup Warnings (Normal Behavior)
6+
7+
### Expected Warnings on First Run
8+
9+
The following warnings are **completely normal** during first-time setup:
10+
11+
#### "No snapshots directory" Warning
12+
```
13+
WARNING:mcp_memory_service.storage.sqlite_vec:Failed to load from cache: No snapshots directory
14+
```
15+
- **Status:** ✅ Normal - Service is checking for cached models
16+
- **Action:** None required - Model will download automatically
17+
- **Duration:** Appears only on first run
18+
19+
#### "TRANSFORMERS_CACHE deprecated" Warning
20+
```
21+
WARNING: Using TRANSFORMERS_CACHE is deprecated
22+
```
23+
- **Status:** ✅ Normal - Informational warning from Hugging Face
24+
- **Action:** None required - Doesn't affect functionality
25+
- **Duration:** May appear on each run (can be ignored)
26+
27+
#### Model Download Messages
28+
```
29+
Downloading model 'all-MiniLM-L6-v2'...
30+
```
31+
- **Status:** ✅ Normal - One-time model download (~25MB)
32+
- **Action:** Wait 1-2 minutes for download to complete
33+
- **Duration:** First run only
34+
35+
For detailed information, see the [First-Time Setup Guide](../first-time-setup.md).
36+
537
## Common Installation Issues
638

739
[Content from installation.md's troubleshooting section - already well documented]

install.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ def install_pytorch_macos_arm64():
640640
subprocess.check_call(cmd)
641641

642642
# Install sentence-transformers
643-
print_info("Installing sentence-transformers...")
643+
print_info("Installing sentence-transformers (for embedding generation)...")
644+
print_info("Note: Models will be downloaded on first use (~25MB)")
644645
cmd = [
645646
sys.executable, '-m', 'pip', 'install',
646647
'sentence-transformers>=2.2.2'
@@ -1236,7 +1237,8 @@ def install_package(args):
12361237
subprocess.check_call(cmd, env=env)
12371238

12381239
# Install core dependencies except torch/sentence-transformers
1239-
print_info("Installing core dependencies except ML libraries...")
1240+
print_info("Installing core dependencies (without ML libraries for compatibility)...")
1241+
print_info("Note: First run will download embedding models automatically (~25MB)")
12401242

12411243
# Create a list of dependencies to install
12421244
dependencies = [
@@ -2866,6 +2868,18 @@ def main():
28662868

28672869
print_header("Installation Complete")
28682870

2871+
# First-time setup notice
2872+
print_info("")
2873+
print_info("⚠️ FIRST-TIME SETUP EXPECTATIONS:")
2874+
print_info("On first run, you may see these NORMAL warnings:")
2875+
print_info(" • 'No snapshots directory' - Model will download automatically (~25MB)")
2876+
print_info(" • 'TRANSFORMERS_CACHE deprecated' - Informational, doesn't affect operation")
2877+
print_info(" • Model download progress - One-time download (1-2 minutes)")
2878+
print_info("")
2879+
print_info("These warnings disappear after the first successful run.")
2880+
print_info("See docs/first-time-setup.md for details.")
2881+
print_info("")
2882+
28692883
# Get final storage backend info for multi-client setup determination
28702884
if system_info["is_macos"] and system_info["is_x86"] and system_info.get("has_homebrew_pytorch"):
28712885
final_backend = 'sqlite_vec'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mcp-memory-service"
7-
version = "6.13.0"
7+
version = "6.13.1"
88
description = "Universal MCP memory service with semantic search, multi-client support, and autonomous consolidation for Claude Desktop, VS Code, and 13+ AI applications"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/mcp_memory_service/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def setup_offline_mode():
4747
# Setup offline mode immediately when this module is imported
4848
setup_offline_mode()
4949

50-
__version__ = "6.13.0"
50+
__version__ = "6.13.1"
5151

5252
from .models import Memory, MemoryQueryResult
5353
from .storage import MemoryStorage

0 commit comments

Comments
 (0)