Repository navigation
feat: MCP sync (13 tools) + dedup on insert + auto-aging - #449
Merged
Merged
Conversation
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (3)
Review powered by cora-cli · BYOK · MIT |
|
|
||
| // Auto-aging background thread (#442 enhancement). | ||
| // Runs aging cleanup every 6 hours to remove cold, low-importance memories. | ||
| let aging_uteke = Arc::clone(&uteke); |
ajianaz
force-pushed
the
feat/mcp-sync-tools
branch
from
June 22, 2026 12:36
697ac2f to
2014f2b
Compare
MCP Tools Sync (was 5, now 13): - uteke_search, uteke_doc_create, uteke_doc_get, uteke_doc_list, uteke_doc_search, uteke_doc_delete, uteke_graph, uteke_room_recall - All API server endpoints now have corresponding MCP tools Dedup on Insert (#442 enhancement): - check_duplicate() searches vector index for cosine >= 0.95 - Returns existing memory ID instead of creating a duplicate - Namespace-scoped, skips chunk: prefixed entries - 3 new tests: exact dup blocked, different content allowed, namespace isolation Auto-Aging (server background thread): - Runs aging_cleanup every 6 hours automatically - Removes memories older than 180 days with <10K access count - Best-effort: lock contention skips cycle silently AGENT.md: - Added rule: MCP tools MUST be in sync with API server endpoints before any release 303 tests pass. Clippy clean. Fmt clean.
ajianaz
force-pushed
the
feat/mcp-sync-tools
branch
from
June 22, 2026 12:42
2014f2b to
e40eb1a
Compare
| ) -> Result<Option<String>, Error> { | ||
| const DEDUP_THRESHOLD: f32 = 0.95; | ||
|
|
||
| let index = match self.index.try_read() { |
|
|
||
| if results.is_empty() { | ||
| return Ok(None); | ||
| } |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…ule (#449) MCP Tools Sync (was 5, now 13): - uteke_search, uteke_doc_create, uteke_doc_get, uteke_doc_list, uteke_doc_search, uteke_doc_delete, uteke_graph, uteke_room_recall - All API server endpoints now have corresponding MCP tools Dedup on Insert (#442 enhancement): - check_duplicate() searches vector index for cosine >= 0.95 - Returns existing memory ID instead of creating a duplicate - Namespace-scoped, skips chunk: prefixed entries - 3 new tests: exact dup blocked, different content allowed, namespace isolation Auto-Aging (server background thread): - Runs aging_cleanup every 6 hours automatically - Removes memories older than 180 days with <10K access count - Best-effort: lock contention skips cycle silently AGENT.md: - Added rule: MCP tools MUST be in sync with API server endpoints before any release 303 tests pass. Clippy clean. Fmt clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
MCP Tools Sync (5 → 13)
All API server endpoints now have corresponding MCP tools:
uteke_search— FTS5 keyword searchuteke_doc_create/uteke_doc_get/uteke_doc_list/uteke_doc_search/uteke_doc_deleteuteke_graph— graph statsuteke_room_recall— room-scoped semantic searchDedup on Insert
check_duplicate()before insert: if cosine >= 0.95, return existing IDAuto-Aging (Server)
aging_cleanupevery 6 hoursAGENT.md
303 tests pass. Clippy clean. Fmt clean.