local-memory-mcp 1.2.0 → 1.3.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/CHANGELOG.md +76 -188
- package/{README.md → README} +35 -23
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,219 +1,111 @@
|
|
|
1
|
-
# Local Memory v1.
|
|
1
|
+
# Local Memory v1.3.0
|
|
2
2
|
|
|
3
|
-
**Release Date**:
|
|
3
|
+
**Release Date**: 2026-01-10
|
|
4
4
|
**Compatibility**: Fully backwards compatible
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
## Summary
|
|
9
9
|
|
|
10
|
-
This major release
|
|
10
|
+
This major release introduces several **World Memory** R&D features, a complete knowledge management architecture that transforms Local Memory from simple RAG storage and retrieval into an intelligent knowledge system. The release includes a four-level knowledge hierarchy, automatic contradiction detection, epistemic gap tracking, and knowledge evolution mechanisms. Ten new tools enable sophisticated reasoning workflows while maintaining full backward compatibility.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Added
|
|
13
|
+
|
|
14
|
+
- **World Memory Knowledge Hierarchy** (L0 Observations, L1 Learnings, L2 Patterns, L3 Schemas)
|
|
15
|
+
- **Contradiction Detection System** - 5-layer heuristic validation
|
|
16
|
+
- **Epistemic Gap Tracking** - Questions system for unknown unknowns
|
|
17
|
+
- **Knowledge Evolution** - Validation, promotion, decay mechanisms
|
|
18
|
+
- **New MCP Tools**: observe, reflect, question, resolve, evolve, bootstrap, predict, explain, counterfactual, validate
|
|
19
|
+
- **Tool Deprecation Strategy** - Migration path for legacy tools
|
|
20
|
+
|
|
21
|
+
## Fixed
|
|
22
|
+
|
|
23
|
+
- Session ID validation failing in Claude Desktop
|
|
24
|
+
- Orphaned contradiction resolution
|
|
25
|
+
- Level/weight storage in observe tool
|
|
26
|
+
|
|
27
|
+
## Changed
|
|
28
|
+
|
|
29
|
+
- Major modular refactoring (store.go, server.go, handlers.go)
|
|
30
|
+
- Tool migration: store_memory -> observe, relationships -> relate, stats -> status
|
|
13
31
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
*See CHANGELOG_v1.3.0.md in the repository for full details.*
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# Local Memory v1.2.1
|
|
39
|
+
|
|
40
|
+
**Release Date**: 2026-01-02
|
|
41
|
+
**Compatibility**: Fully backwards compatible
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Summary
|
|
46
|
+
|
|
47
|
+
This patch release fixes critical license activation issues and improves CLI command reliability. The `--accept-terms` flag now correctly activates licenses without character encoding problems, and CLI commands have been updated to eliminate missing flags and reduce unnecessary output.
|
|
24
48
|
|
|
25
49
|
## Added
|
|
26
50
|
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
- Phase 2: Relationship management (`find_related`, `discover`, `relate`, `map_graph`)
|
|
31
|
-
- Phase 3: Management operations (9 commands for categories, domains, sessions)
|
|
32
|
-
- Phase 4: Advanced features via consolidated `analyze` command
|
|
33
|
-
- **MCP 2025-11-25 Specification Compliance** - Updated to latest MCP specification
|
|
34
|
-
- Protocol version updated from 2024-11-05 to 2025-11-25
|
|
35
|
-
- JSON Schema 2020-12 compliance for all tool schemas
|
|
36
|
-
- Tool icons support (💾 🔍 🧠 📊 🏷️ etc.)
|
|
37
|
-
- Enhanced server description fields
|
|
38
|
-
- **Comprehensive Evaluation Framework** - Advanced testing across all interfaces
|
|
39
|
-
- Cross-interface consistency validation (MCP, REST, CLI)
|
|
40
|
-
- Mandatory measurements framework (M1-M4 validation)
|
|
41
|
-
- Security testing and adversarial evaluation capabilities
|
|
42
|
-
- **Agent Harness Integration** - Long-running agent workflow patterns
|
|
43
|
-
- Session tracking and progress state management
|
|
44
|
-
- Feature tracking system with JSON-based persistence
|
|
45
|
-
- Git workflow enhancement with automatic progress markers
|
|
46
|
-
- Local Memory integration for persistent context
|
|
47
|
-
|
|
48
|
-
### CLI Commands Added
|
|
49
|
-
- `local-memory get <memory-id>` - Retrieve specific memory by ID
|
|
50
|
-
- `local-memory list` - List memories with filtering and pagination
|
|
51
|
-
- `local-memory find_related <memory-id>` - Find related memories
|
|
52
|
-
- `local-memory discover` - AI-powered relationship discovery
|
|
53
|
-
- `local-memory relate <source-id> <target-id>` - Create relationships
|
|
54
|
-
- `local-memory map_graph <memory-id>` - Visualize memory graphs
|
|
55
|
-
- `local-memory list_categories` - Manage memory categories
|
|
56
|
-
- `local-memory create_category <name>` - Create new categories
|
|
57
|
-
- `local-memory categorize <memory-id> <category>` - Assign categories
|
|
58
|
-
- `local-memory list_domains` - Manage memory domains
|
|
59
|
-
- `local-memory create_domain <name>` - Create new domains
|
|
60
|
-
- `local-memory list_sessions` - Session management
|
|
61
|
-
- `local-memory analyze` - Advanced analysis (temporal patterns, learning progression)
|
|
51
|
+
- Comprehensive documentation suite with validation reports
|
|
52
|
+
- Organized validation reports in dedicated directory structure
|
|
53
|
+
- Enhanced CLI error messages for better user guidance
|
|
62
54
|
|
|
63
55
|
## Fixed
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
68
|
-
- **Summarization tool execution fails** (#55) - Fixed analysis tool execution with enhanced CLI analyze command
|
|
69
|
-
- **Custom field selection ignored** (#52) - Implemented SQL-level field selection with 6-12% token reduction
|
|
70
|
-
- **Relationship creation no confirmation** (#54) - Added proper confirmation responses with relationship details
|
|
71
|
-
- **Semantic search without AI empty results** (#56) - Enhanced text search with improved keyword extraction
|
|
72
|
-
- **Metadata date issues** (#57) - Fixed zero-value timestamps and inaccurate memory counts
|
|
73
|
-
|
|
74
|
-
### Security Fixes
|
|
75
|
-
- **Input sanitization vulnerabilities** - Implemented comprehensive security hardening
|
|
76
|
-
- SQL injection protection across all interfaces
|
|
77
|
-
- XSS prevention with content escaping
|
|
78
|
-
- Template injection protection
|
|
79
|
-
- Security headers middleware for REST API
|
|
80
|
-
- **SQL injection defense algorithm refinement** - Fixed overly aggressive pattern matching
|
|
81
|
-
- Resolved false positives blocking legitimate quoted content like "user's guide"
|
|
82
|
-
- Enhanced context-aware patterns requiring injection indicators
|
|
83
|
-
- Preserved security against actual attacks while allowing technical documentation
|
|
84
|
-
- Added comprehensive test suite with 38 security validation tests
|
|
85
|
-
- **Dependency security updates** (#58) - Updated golang.org/x/crypto to address 5 MODERATE vulnerabilities
|
|
86
|
-
- **NPM authentication security** (#60) - Migrated to granular access tokens before December 9th deadline
|
|
87
|
-
|
|
88
|
-
### Performance Improvements
|
|
89
|
-
- **Token efficiency optimization** (#59) - Implemented intelligent format selection with 30-70% token reduction
|
|
90
|
-
- **Ultra-concise formats** - Added ResponseFormatUltra and ResponseFormatMicro achieving 94% token reduction
|
|
91
|
-
- **Enhanced token estimation** - Improved accuracy from 159% error to 79% through calibration
|
|
92
|
-
- **Cross-interface consistency** - Standardized token optimization across MCP, REST, and CLI
|
|
57
|
+
- **License activation bug**: Fixed character normalization issues preventing `--accept-terms` flag from properly activating licenses
|
|
58
|
+
- **CLI command improvements**: Resolved missing flags and eliminated useless output from various CLI commands
|
|
59
|
+
- **Documentation accuracy**: Corrected and validated all public documentation files
|
|
93
60
|
|
|
94
61
|
## Technical Details
|
|
95
62
|
|
|
96
|
-
###
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
- **Refined SQL Injection Defense**: Context-aware patterns with 0% false positives for legitimate content
|
|
111
|
-
- **Boundary Validation**: Importance values properly constrained to 1-10 range
|
|
112
|
-
- **Security Headers**: Added comprehensive security headers for REST API
|
|
113
|
-
- **Dependency Updates**: All MODERATE security vulnerabilities resolved
|
|
63
|
+
### License Activation Fix
|
|
64
|
+
- Implemented proper UTF-8 character normalization in license acceptance flow
|
|
65
|
+
- Added validation for non-breaking spaces and Unicode character variants
|
|
66
|
+
- Enhanced error handling for license activation edge cases
|
|
67
|
+
|
|
68
|
+
### CLI Improvements
|
|
69
|
+
- Added missing flags to subcommands for consistent behavior
|
|
70
|
+
- Removed unnecessary verbose output that cluttered terminal sessions
|
|
71
|
+
- Improved error messages with actionable guidance
|
|
72
|
+
|
|
73
|
+
### Documentation Updates
|
|
74
|
+
- Created comprehensive validation reports for all documentation
|
|
75
|
+
- Organized reports into `docs/public/validation-reports/` directory
|
|
76
|
+
- Validated accuracy of CLI reference, configuration, and API documentation
|
|
114
77
|
|
|
115
78
|
---
|
|
116
79
|
|
|
117
80
|
## Issue Details
|
|
118
81
|
|
|
119
|
-
|
|
120
|
-
**Status**: CLOSED
|
|
121
|
-
**Impact**: Domain-based search filtering returned ALL memories instead of filtered results
|
|
122
|
-
**Resolution**: Fixed domain filter logic in search query construction
|
|
123
|
-
|
|
124
|
-
### #52 - HIGH: Custom Field Selection Ignored
|
|
125
|
-
**Status**: CLOSED
|
|
126
|
-
**Impact**: Custom field selection with `response_format: "custom"` was completely ignored
|
|
127
|
-
**Resolution**: Implemented SQL-level field selection with performance optimization
|
|
128
|
-
|
|
129
|
-
### #53 - CRITICAL: Response Format Logic Inverted
|
|
130
|
-
**Status**: CLOSED
|
|
131
|
-
**Impact**: Concise format produced 258% MORE tokens instead of 70% fewer
|
|
132
|
-
**Resolution**: Fixed response format logic in formatters with proper token optimization
|
|
133
|
-
|
|
134
|
-
### #54 - HIGH: Relationship Creation No Confirmation
|
|
135
|
-
**Status**: CLOSED
|
|
136
|
-
**Impact**: Relationship creation returned empty response with no success/failure indication
|
|
137
|
-
**Resolution**: Enhanced response formatting with relationship ID and confirmation details
|
|
138
|
-
|
|
139
|
-
### #55 - HIGH: Summarization Tool Execution Fails
|
|
140
|
-
**Status**: CLOSED
|
|
141
|
-
**Impact**: Analysis tool execution failed completely for memory summarization
|
|
142
|
-
**Resolution**: Implemented complete CLI analyze command with enhanced functionality
|
|
143
|
-
|
|
144
|
-
### #56 - MEDIUM: Semantic Search Without AI Returns Empty
|
|
145
|
-
**Status**: CLOSED
|
|
146
|
-
**Impact**: Text-based search without AI backend returned 0 results for valid queries
|
|
147
|
-
**Resolution**: Enhanced text search with improved keyword extraction and relevance scoring
|
|
148
|
-
|
|
149
|
-
### #57 - MEDIUM: Metadata Date Issues
|
|
150
|
-
**Status**: CLOSED
|
|
151
|
-
**Impact**: Zero-value timestamps (0001-01-01) and inaccurate memory counts
|
|
152
|
-
**Resolution**: Fixed metadata initialization and timestamp handling logic
|
|
153
|
-
|
|
154
|
-
### #58 - SECURITY: Update golang.org/x/crypto Dependencies
|
|
155
|
-
**Status**: CLOSED
|
|
156
|
-
**Impact**: 5 MODERATE security vulnerabilities (CVE-2025-47914, CVE-2025-58181, etc.)
|
|
157
|
-
**Resolution**: Updated to golang.org/x/crypto v0.45.0+ resolving all vulnerabilities
|
|
158
|
-
|
|
159
|
-
### #59 - TOKEN EFFICIENCY: Default Responses Exceed Budget
|
|
160
|
-
**Status**: CLOSED
|
|
161
|
-
**Impact**: Default responses frequently exceeded 1000-token efficiency targets
|
|
162
|
-
**Resolution**: Implemented intelligent format selection with automatic optimization
|
|
163
|
-
|
|
164
|
-
### #60 - CRITICAL: Classic npm tokens stop working December 9th
|
|
165
|
-
**Status**: CLOSED
|
|
166
|
-
**Impact**: NPM authentication would break on December 9th, 2025
|
|
167
|
-
**Resolution**: Successfully migrated to granular access tokens with verified publishing
|
|
82
|
+
No GitHub issues were directly addressed in this release. This patch focuses on critical bug fixes discovered through internal testing and user feedback.
|
|
168
83
|
|
|
169
84
|
---
|
|
170
85
|
|
|
171
86
|
## Migration Guide
|
|
172
87
|
|
|
173
|
-
**No breaking changes** - This release is fully backwards compatible with v1.
|
|
88
|
+
**No breaking changes** - This release is fully backwards compatible with v1.2.0 and earlier.
|
|
174
89
|
|
|
175
|
-
###
|
|
90
|
+
### License Activation
|
|
91
|
+
If you experienced issues with `--accept-terms` not activating your license, update to v1.2.1:
|
|
176
92
|
|
|
177
93
|
```bash
|
|
178
|
-
#
|
|
179
|
-
local-memory
|
|
180
|
-
local-memory list --domain="ai-research" --limit=10
|
|
181
|
-
|
|
182
|
-
# Relationship management
|
|
183
|
-
local-memory find_related <memory-id> --min_strength=0.7
|
|
184
|
-
local-memory relate <source-id> <target-id> --type="references"
|
|
185
|
-
local-memory map_graph <memory-id> --depth=2
|
|
186
|
-
|
|
187
|
-
# Advanced analysis
|
|
188
|
-
local-memory analyze --type="temporal_patterns" --temporal_timeframe="month"
|
|
189
|
-
local-memory analyze --type="temporal_patterns" --temporal_analysis_type="learning_progression" --limit=50
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Enhanced Security Features
|
|
94
|
+
# Update to v1.2.1
|
|
95
|
+
npm update -g local-memory-mcp
|
|
193
96
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
search({
|
|
197
|
-
query: "'; DROP TABLE memories; --", // Blocked
|
|
198
|
-
content: "<script>alert('xss')</script>" // Escaped
|
|
199
|
-
})
|
|
97
|
+
# Verify license activation works
|
|
98
|
+
local-memory --accept-terms
|
|
200
99
|
```
|
|
201
100
|
|
|
202
|
-
###
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
})
|
|
211
|
-
|
|
212
|
-
// Ultra-efficient formats for agent workflows
|
|
213
|
-
search({
|
|
214
|
-
query: "neural networks",
|
|
215
|
-
response_format: "micro" // 94% token reduction
|
|
216
|
-
})
|
|
101
|
+
### CLI Command Usage
|
|
102
|
+
All CLI commands now have consistent flag behavior:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Commands now properly support all documented flags
|
|
106
|
+
local-memory search --query "your search" --limit 10
|
|
107
|
+
local-memory remember "your memory" --tags "tag1,tag2"
|
|
108
|
+
local-memory forget memory-uuid
|
|
217
109
|
```
|
|
218
110
|
|
|
219
111
|
## Getting Started
|
|
@@ -223,13 +115,9 @@ search({
|
|
|
223
115
|
npm update -g local-memory-mcp
|
|
224
116
|
|
|
225
117
|
# Verify version
|
|
226
|
-
local-memory --version
|
|
227
|
-
|
|
228
|
-
# Test new CLI commands
|
|
229
|
-
local-memory list --help
|
|
230
|
-
local-memory analyze --help
|
|
118
|
+
local-memory --version # Should show v1.2.1
|
|
231
119
|
```
|
|
232
120
|
|
|
233
121
|
---
|
|
234
122
|
|
|
235
|
-
*Local Memory v1.2.
|
|
123
|
+
*Local Memory v1.2.1 - Critical bug fixes and documentation improvements*
|
package/{README.md → README}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Local Memory (localmemory.co)
|
|
2
2
|
|
|
3
|
-
**Version 1.
|
|
3
|
+
**Version 1.3.0** - AI-powered persistent memory system for developers working with Claude Code, Claude Desktop, Gemini, Codex, Cursor, and other coding agents.
|
|
4
4
|
|
|
5
5
|
Transform your AI interactions with intelligent memory that grows smarter over time. Build persistent knowledge bases, track learning progression, and maintain context across conversations. Local Memory provides MCP, REST API, and Command-line interfaces for you and your coding agents to store, retrieve, discover, and analyze memories to give your agent the right context for it's work and tasks.
|
|
6
6
|
|
|
@@ -98,12 +98,26 @@ Add to your Claude Desktop configuration file:
|
|
|
98
98
|
|
|
99
99
|
When configured, Claude will have access to these memory tools:
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
**Core Tools:**
|
|
102
|
+
- `observe` - Record observations with knowledge level support (L0-L3)
|
|
102
103
|
- `search` - Find memories with semantic search
|
|
103
|
-
- `
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
104
|
+
- `bootstrap` - Initialize sessions with knowledge context
|
|
105
|
+
|
|
106
|
+
**Knowledge Evolution:**
|
|
107
|
+
- `reflect` - Process observations into learnings
|
|
108
|
+
- `evolve` - Validate, promote, or decay knowledge
|
|
109
|
+
- `question` - Track epistemic gaps and contradictions
|
|
110
|
+
- `resolve` - Resolve contradictions and answer questions
|
|
111
|
+
|
|
112
|
+
**Reasoning Tools:**
|
|
113
|
+
- `predict` - Generate predictions from patterns
|
|
114
|
+
- `explain` - Trace causal paths between states
|
|
115
|
+
- `counterfactual` - Explore "what if" scenarios
|
|
116
|
+
- `validate` - Check knowledge graph integrity
|
|
117
|
+
|
|
118
|
+
**Relationship Tools:**
|
|
119
|
+
- `relate` - Create relationships between memories
|
|
120
|
+
- Plus memory management tools (update, delete, get)
|
|
107
121
|
|
|
108
122
|
## REST API
|
|
109
123
|
|
|
@@ -125,6 +139,9 @@ curl "http://localhost:3002/api/v1/health"
|
|
|
125
139
|
## Service Management
|
|
126
140
|
|
|
127
141
|
```bash
|
|
142
|
+
# Start daemon
|
|
143
|
+
local-memory start
|
|
144
|
+
|
|
128
145
|
# Check daemon status
|
|
129
146
|
local-memory status
|
|
130
147
|
|
|
@@ -141,26 +158,20 @@ local-memory kill_all
|
|
|
141
158
|
local-memory doctor
|
|
142
159
|
```
|
|
143
160
|
|
|
144
|
-
## What's New in v1.
|
|
145
|
-
|
|
146
|
-
- **
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
- **
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- Enhanced server description fields
|
|
156
|
-
- **Comprehensive Evaluation Framework** - Advanced testing across all interfaces
|
|
157
|
-
- Cross-interface consistency validation (MCP, REST, CLI)
|
|
158
|
-
- Mandatory measurements framework (M1-M4 validation)
|
|
159
|
-
- Security testing and adversarial evaluation capabilities
|
|
161
|
+
## What's New in v1.3.0
|
|
162
|
+
|
|
163
|
+
- **World Memory Knowledge Hierarchy** - Four-level knowledge progression system
|
|
164
|
+
- L0 Observations: Raw intake, ephemeral
|
|
165
|
+
- L1 Learnings: Candidate insights, volatile
|
|
166
|
+
- L2 Patterns: Validated generalizations, durable
|
|
167
|
+
- L3 Schemas: Theoretical frameworks, permanent
|
|
168
|
+
- **Contradiction Detection** - Automatic conflict identification using 5-layer heuristics
|
|
169
|
+
- **Epistemic Gap Tracking** - Track unknown unknowns through dedicated questions system
|
|
170
|
+
- **Knowledge Evolution** - Validation, promotion, and decay mechanisms
|
|
171
|
+
- **10 New MCP Tools** - observe, reflect, question, resolve, evolve, bootstrap, predict, explain, counterfactual, validate
|
|
160
172
|
|
|
161
173
|
## System Requirements
|
|
162
174
|
|
|
163
|
-
- **Node.js**: 16.0.0 or higher
|
|
164
175
|
- **RAM**: 512MB minimum
|
|
165
176
|
- **Storage**: 100MB for binaries, variable for database
|
|
166
177
|
- **Platforms**: macOS (Intel/ARM64), Linux x64, Windows x64
|
|
@@ -185,6 +196,7 @@ local-memory license status
|
|
|
185
196
|
- **Architecture**: [localmemory.co/architecture](https://localmemory.co/architecture)
|
|
186
197
|
- **Prompts**: [localmemory.co/prompts](https://localmemory.co/prompts)
|
|
187
198
|
- **Support**: [Local Memory Discord](https://discord.gg/rMmn8xP3fZ)
|
|
199
|
+
- **Releases Repo**: [Local Memory Releases](https://github.com/danieleugenewilliams/local-memory-releases)
|
|
188
200
|
|
|
189
201
|
---
|
|
190
202
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-memory-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Local Memory MCP Server - AI-powered persistent memory system for Claude Code, Claude Desktop, Gemini, Codex, OpenCode and other MCP-compatible tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
"type": "individual",
|
|
84
84
|
"url": "https://localmemory.co"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|