mindkeg-mcp 0.4.0 → 0.6.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/README.md CHANGED
@@ -32,6 +32,7 @@ Unlike traditional RAG systems that chunk large documents, Mind Keg stores **pre
32
32
  - API key authentication with per-repository access control
33
33
  - SQLite storage (zero dependencies, zero config)
34
34
  - Import/export for backup and migration
35
+ - **Smarter knowledge management**: auto-categorization (KNN voting), conflict detection, smart staleness scoring, access tracking with relevance decay, near-duplicate merging, typed learning relationships
35
36
  - **Enterprise security**: encryption at rest, audit logging, TTL/data retention, Prometheus monitoring, rate limiting, content integrity verification
36
37
 
37
38
  ## Quick Start
@@ -162,6 +163,8 @@ Copy `templates/AGENTS.md` to the root of any repository where you want agents t
162
163
 
163
164
  ## MCP Tools
164
165
 
166
+ ### Learnings
167
+
165
168
  | Tool | Description |
166
169
  |----------------------|------------------------------------------------------|
167
170
  | `get_context` | Prime an agent session with all relevant learnings — ranked, scoped, and budget-controlled |
@@ -171,9 +174,29 @@ Copy `templates/AGENTS.md` to the root of any repository where you want agents t
171
174
  | `deprecate_learning` | Mark a learning as deprecated |
172
175
  | `flag_stale` | Flag a learning as potentially outdated |
173
176
  | `delete_learning` | Permanently delete a learning |
177
+ | `merge_learnings` | Merge near-duplicate learnings into a canonical entry |
178
+ | `relate_learnings` | Create typed relationships between learnings |
174
179
  | `list_repositories` | List all repositories with learning counts |
175
180
  | `list_workspaces` | List all workspaces with learning counts |
176
181
 
182
+ ### Agent Memory Entities
183
+
184
+ Structured entity types for capturing decisions, findings, gotchas, and run summaries — richer than atomic learnings, designed for cross-session agent memory.
185
+
186
+ | Tool | Description |
187
+ |------------------------|------------------------------------------------------|
188
+ | `store_decision` | Record an architectural or design decision with rationale |
189
+ | `get_decisions` | Retrieve decisions for a repository, optionally filtered by status |
190
+ | `supersede_decision` | Mark a decision as superseded by a newer one |
191
+ | `store_finding` | Record a bug, issue, or investigation finding |
192
+ | `get_open_findings` | Retrieve unresolved findings for a repository |
193
+ | `resolve_finding` | Mark a finding as resolved with a resolution summary |
194
+ | `store_gotcha` | Record a non-obvious pitfall or gotcha |
195
+ | `get_gotchas` | Retrieve gotchas for a repository |
196
+ | `get_relevant_context` | Retrieve all entity types relevant to a repository |
197
+ | `get_run_history` | Retrieve run summaries for a repository |
198
+ | `complete_run` | Record the completion of an agent run with a summary |
199
+
177
200
  ## CLI Commands
178
201
 
179
202
  ```bash
@@ -258,7 +281,7 @@ Disables semantic search and falls back to SQLite FTS5 full-text search — all
258
281
 
259
282
  ## Enterprise Security
260
283
 
261
- Mind Keg 0.4.0 ships a suite of security features suitable for corporate and regulated environments.
284
+ Mind Keg ships a suite of security features suitable for corporate and regulated environments.
262
285
 
263
286
  ### Encryption at Rest
264
287
 
@@ -379,6 +402,9 @@ Each learning contains:
379
402
  | `ttl_days` | integer or null | Per-learning TTL; overrides global `MINDKEG_DEFAULT_TTL_DAYS` |
380
403
  | `source_agent` | string or null | Agent name for provenance tracking |
381
404
  | `integrity_hash` | string or null | SHA-256 hash of canonical fields for tamper detection |
405
+ | `access_count` | integer | Times returned by search/get_context (feeds ranking) |
406
+ | `last_accessed_at`| ISO 8601 or null | Last time returned by search/get_context |
407
+ | `staleness_score` | float 0.0–1.0 | Auto-computed from age, access recency, and conflicts |
382
408
  | `created_at` | ISO 8601 | Auto-set on creation |
383
409
  | `updated_at` | ISO 8601 | Auto-updated on modification; TTL expiry anchors to this |
384
410
 
@@ -457,8 +483,8 @@ src/
457
483
  crypto/ AES-256-GCM field encryption
458
484
  monitoring/ Prometheus metrics + /health endpoint
459
485
  security/ Content sanitization, integrity hashing, rate limiter
460
- tools/ One file per MCP tool (9 tools) + shared tool-utils
461
- services/ LearningService + EmbeddingService + PurgeService
486
+ tools/ One file per MCP tool (22 tools) + shared tool-utils
487
+ services/ LearningService + EmbeddingService + PurgeService + ConflictDetector + StalenessEngine
462
488
  storage/ StorageAdapter interface + SQLite impl
463
489
  models/ Zod schemas + TypeScript types
464
490
  utils/ Logger (pino → stderr) + error classes