@joseairosa/recall 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +17 -0
- package/.env.example +5 -0
- package/.mcp.json +14 -0
- package/.mcp.json.example +14 -0
- package/CHANGELOG.md +189 -0
- package/CLAUDE.md +345 -0
- package/LICENSE +21 -0
- package/QUICKSTART.md +149 -0
- package/README.md +612 -0
- package/WORKSPACE_MODES.md +201 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2293 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
package/QUICKSTART.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Quick Start Guide
|
|
2
|
+
|
|
3
|
+
## Setup (5 minutes)
|
|
4
|
+
|
|
5
|
+
### 1. Start Redis
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# macOS
|
|
9
|
+
brew services start redis
|
|
10
|
+
|
|
11
|
+
# Or Docker
|
|
12
|
+
docker run -d -p 6379:6379 redis:latest
|
|
13
|
+
|
|
14
|
+
# Verify Redis is running
|
|
15
|
+
redis-cli ping # Should return PONG
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 2. Set Environment Variables
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Copy example env file
|
|
22
|
+
cp .env.example .env
|
|
23
|
+
|
|
24
|
+
# Edit .env and add your OpenAI API key
|
|
25
|
+
# REDIS_URL=redis://localhost:6379
|
|
26
|
+
# OPENAI_API_KEY=sk-your-key-here
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### 3. Configure Claude Desktop
|
|
30
|
+
|
|
31
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"mcpServers": {
|
|
36
|
+
"memory": {
|
|
37
|
+
"command": "node",
|
|
38
|
+
"args": ["/Users/joseairosa/Development/mcp/mem/dist/index.js"],
|
|
39
|
+
"env": {
|
|
40
|
+
"REDIS_URL": "redis://localhost:6379",
|
|
41
|
+
"OPENAI_API_KEY": "sk-your-openai-key"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 4. Restart Claude Desktop
|
|
49
|
+
|
|
50
|
+
Completely quit and reopen Claude Desktop to load the MCP server.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## First Test
|
|
55
|
+
|
|
56
|
+
Ask Claude:
|
|
57
|
+
|
|
58
|
+
> "Store a memory that I prefer informal communication. Make it importance 8 and tag it with 'preference' and 'communication'"
|
|
59
|
+
|
|
60
|
+
Claude should use the `store_memory` tool and return a success message with a memory ID.
|
|
61
|
+
|
|
62
|
+
Then ask:
|
|
63
|
+
|
|
64
|
+
> "Search for memories about communication preferences"
|
|
65
|
+
|
|
66
|
+
Claude should use the `search_memories` tool and find your stored memory.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Common Usage Patterns
|
|
71
|
+
|
|
72
|
+
### Store Important Directive
|
|
73
|
+
|
|
74
|
+
> "Remember: Always use ULIDs for database IDs, never auto-increment. This is critical (importance 10)"
|
|
75
|
+
|
|
76
|
+
### Store Code Pattern
|
|
77
|
+
|
|
78
|
+
> "Store a code pattern: In this project, use Drizzle ORM with text('id').primaryKey() for ULID fields. Tag it with 'drizzle', 'database', and 'patterns'"
|
|
79
|
+
|
|
80
|
+
### Search Previous Context
|
|
81
|
+
|
|
82
|
+
> "What do you remember about database conventions?"
|
|
83
|
+
|
|
84
|
+
### Get Recent Context
|
|
85
|
+
|
|
86
|
+
> "Show me the last 10 memories we've stored"
|
|
87
|
+
|
|
88
|
+
### Create Session Snapshot
|
|
89
|
+
|
|
90
|
+
> "Create a session called 'Feature X Development - Day 1' with the last 5 memories"
|
|
91
|
+
|
|
92
|
+
### Retrieve Session
|
|
93
|
+
|
|
94
|
+
> "Show me memories from the 'Feature X Development - Day 1' session"
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Verification
|
|
99
|
+
|
|
100
|
+
Check if server is running:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Check Claude Desktop logs
|
|
104
|
+
tail -f ~/Library/Logs/Claude/mcp*.log
|
|
105
|
+
|
|
106
|
+
# Should see:
|
|
107
|
+
# Redis Client Connected
|
|
108
|
+
# Redis Client Ready
|
|
109
|
+
# MCP Memory Server started successfully
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Troubleshooting
|
|
115
|
+
|
|
116
|
+
### "Failed to connect to Redis"
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Check Redis is running
|
|
120
|
+
redis-cli ping
|
|
121
|
+
|
|
122
|
+
# Start Redis if not running
|
|
123
|
+
brew services start redis
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### "OPENAI_API_KEY environment variable is required"
|
|
127
|
+
|
|
128
|
+
Make sure your API key is set in the Claude Desktop config, not just in `.env`.
|
|
129
|
+
|
|
130
|
+
### Server not appearing in Claude
|
|
131
|
+
|
|
132
|
+
1. Check config file syntax (valid JSON)
|
|
133
|
+
2. Verify absolute path to `dist/index.js`
|
|
134
|
+
3. Completely quit and restart Claude Desktop
|
|
135
|
+
4. Check logs: `~/Library/Logs/Claude/`
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Next Steps
|
|
140
|
+
|
|
141
|
+
- Store project-specific conventions and directives
|
|
142
|
+
- Create sessions at the end of each work day
|
|
143
|
+
- Use semantic search to find relevant past context
|
|
144
|
+
- Tag memories for easy retrieval
|
|
145
|
+
- Mark critical information with high importance scores
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
**Ready to use!** Your Claude now has a persistent memory brain.
|