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 CHANGED
@@ -1,219 +1,111 @@
1
- # Local Memory v1.2.0
1
+ # Local Memory v1.3.0
2
2
 
3
- **Release Date**: 2025-12-11
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 addresses critical security vulnerabilities, implements complete MCP 2025-11-25 specification compliance, delivers full CLI interface completeness, and resolves multiple high-priority bugs. Over 10 significant features and 10 GitHub issues were resolved, representing the largest development cycle in Local Memory's history.
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
- This release implements the following GitHub issues:
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
- - **Issue #51**: CRITICAL - Fixed domain filtering returning all memories instead of filtered results
15
- - **Issue #52**: HIGH - Fixed custom field selection being completely ignored
16
- - **Issue #53**: CRITICAL - Fixed response format logic producing 258% MORE tokens instead of fewer
17
- - **Issue #54**: HIGH - Fixed relationship creation returning no confirmation
18
- - **Issue #55**: HIGH - Fixed summarization tool execution failures
19
- - **Issue #56**: MEDIUM - Fixed semantic search without AI returning empty results
20
- - **Issue #57**: MEDIUM - Fixed metadata date issues and zero-value timestamps
21
- - **Issue #58**: SECURITY - Updated golang.org/x/crypto dependencies for security vulnerabilities
22
- - **Issue #59**: Performance - Fixed default responses exceeding 1000-token budget
23
- - **Issue #60**: CRITICAL - Migrated NPM classic tokens before December 9th deadline
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
- ### New Features
28
- - **Complete CLI Interface Completeness** - All 4 phases delivered with full MCP/REST API parity
29
- - Phase 1: Core memory operations (`get`, `list`)
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
- ### Critical Bug Fixes
66
- - **Domain filtering completely broken** (#51) - Fixed filter logic returning all memories instead of domain-specific results
67
- - **Response format logic inverted** (#53) - Fixed concise format producing 258% MORE tokens instead of 70% fewer
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
- ### Architecture Improvements
97
- - **Agent Harness Pattern Implementation**: Complete workflow system for long-running agent sessions
98
- - **MCP Specification Compliance**: Updated to 2025-11-25 with full backward compatibility
99
- - **Cross-Interface Parity**: 100% feature compatibility across MCP, REST API, and CLI
100
- - **Security Hardening**: 15/15 security compliance rating achieved
101
-
102
- ### Performance Metrics
103
- - **Token Reduction**: Ultra format 94.3%, Concise format 70.0% (exceeded targets)
104
- - **Security Score**: 15/15 (100%) excellent security posture
105
- - **Interface Coverage**: 11 MCP tools, 16 CLI commands, 25+ REST endpoints
106
- - **Evaluation Score**: 95/100 (EXCELLENT) across all interfaces
107
-
108
- ### Security Enhancements
109
- - **Multi-layer Protection**: SQL injection, XSS, template injection all blocked
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
- ### #51 - CRITICAL: Domain Filtering Broken
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.1.7 and earlier.
88
+ **No breaking changes** - This release is fully backwards compatible with v1.2.0 and earlier.
174
89
 
175
- ### New CLI Commands Usage
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
- # Core memory operations
179
- local-memory get <memory-id>
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
- ```javascript
195
- // All injection attempts are now automatically blocked
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
- ### Token Optimization
203
-
204
- ```javascript
205
- // Intelligent format selection for token efficiency
206
- search({
207
- query: "machine learning",
208
- // Automatically selects optimal format for <1000 tokens
209
- response_format: "intelligent" // New default
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 # Should show v1.2.0
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.0 - Complete feature parity, enhanced security, and next-generation agent intelligence*
123
+ *Local Memory v1.2.1 - Critical bug fixes and documentation improvements*
@@ -1,6 +1,6 @@
1
1
  # Local Memory (localmemory.co)
2
2
 
3
- **Version 1.2.0** - AI-powered persistent memory system for developers working with Claude Code, Claude Desktop, Gemini, Codex, Cursor, and other coding agents.
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
- - `store_memory` - Save important information
101
+ **Core Tools:**
102
+ - `observe` - Record observations with knowledge level support (L0-L3)
102
103
  - `search` - Find memories with semantic search
103
- - `analysis` - AI-powered Q&A on stored knowledge
104
- - `relationships` - Discover and map memory connections
105
- - `categories` - Organize memories intelligently
106
- - Plus comprehensive memory management tools
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.1.8
145
-
146
- - **Complete CLI Interface Completeness** - All 4 phases delivered with full MCP/REST API parity
147
- - Core memory operations (`get`, `list`)
148
- - Relationship management (`find_related`, `discover`, `relate`, `map_graph`)
149
- - Management operations (9 commands for categories, domains, sessions)
150
- - Advanced features via consolidated `analyze` command
151
- - **MCP 2025-11-25 Specification Compliance** - Updated to latest MCP specification
152
- - Protocol version is still 2024-11-05 since Claude CLI does not yet support version 2025-11-25
153
- - JSON Schema 2020-12 compliance for all tool schemas
154
- - Tool icons support (💾 🔍 🧠 📊 🏷️ etc.)
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.2.0",
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
+ }