Special Thanks
This release carries work from outside contributors:
- @massimiliano1991: delta-sync peer TLS options (#2160) and removal of the fail-closed store guards (#2145)
- @marcoabreu: the Claude Code hook fixes (#2151, #2152) and the quality scorer fix for queries with no text (#2156)
- @abdelhadi703: second split edit chunk replacement (#2147)
- @tonydzi: the missing-import fix in the handlers (#2161)
- @henry201605: the two Milvus conflict fixes (#2170, #2174)
- @Bowen-Xue-ac2: dashboard spinner centering (#2173)
- @jepharaujo: setup guide correction for the SQLite embedding extra (#2159)
Highlights
- New
memory_ontologyMCP tool with entity alias resolution. memory_searchtakesexpand_hopsand returns typed graph neighbours with each hit.- Delta-sync peers can be verified against a private CA with
MCP_SYNC_PEER_SSL_CA_FILE, or left unverified on a trusted network withMCP_SYNC_PEER_VERIFY_SSL=false. debug_retrieve,exact_match_retrieve,get_raw_embeddingandrecall_memorywork again.- The Claude Code plugin manifest moves to 1.2.3 for the two hook fixes.
Changelog
Added
- MCP ontology tool, entity alias resolution, and subtype inference fixes.
Added thememory_ontologyMCP tool (get,resolve_alias, and overlay
mutations) and anentity_aliasoverlay layer (sqlite_vec+ REST + sync)
so synonyms map to canonical entities across extraction, linking, search, and
graph queries. Fixed subtype parent resolution inRelationshipInferenceEngine,
expanded built-inTYPE_PATTERNSacross all 12 base types, implemented
SemanticReasoner.abstract_to_concept(), and wiredrel_type/direction
filtering throughmemory_graph. - Delta-sync peers can be verified against a private CA, or, on a trusted network, not verified (#2153, massimiliano1991).
RemoteHTTPStoragebuilt itshttpx.AsyncClientwithoutverify, so a hub serving a
certificate from a private or mkcert CA failed the capability probe with
CERTIFICATE_VERIFY_FAILED, and the only way round it was the process-wide
SSL_CERT_FILE. Two client-side variables now reach the delta-sync client:
MCP_SYNC_PEER_SSL_CA_FILE(a PEM bundle, which wins when both are set) and
MCP_SYNC_PEER_VERIFY_SSL(defaulttrue;falselogs a warning once per peer). A CA
file that can't be loaded skips the peer and shows the variable name in the Delta sync
panel. They are separate fromMCP_PEER_*, which stays discovery-only, and the hybrid
HTTP secondary is unchanged. memory_searchcan return typed graph neighbours with each result (#2162).
The new optionalexpand_hops(0 by default, 1 or 2) adds aRelatedblock to every
hit: relationship type, direction, hop distance and a short excerpt. At most five per
hit, typed edges before genericrelatedones, then the stronger edge first. Until now
that took onememory_graphconnectedcall per hit, andconnectedreturns hashes
without the relationship. Neighbours obey the samestore,agent_id,
include_supersededandas_ofrules as the search, and the walk never continues
through a memory the caller may not see. Works on the SQLite graph (sqlite_vec,
hybrid); Milvus and Cloudflare return an error instead of an empty list.
Fixed
- A second oversized edit no longer leaves the chunks of the first one in the store (#2143).
On a backend withoutupdate_memory_versioned, an edit larger thanmax_content_length
goes through_store_unversioned_split_replacement(), which only ever deleted the row the
edit was addressed to. When that row came back as chunk 0, the other chunks of the previous
edit stayed live, under anoriginal_hashnaming text that no longer exists. A split edit
now marks the chunks it writes with the hash the memory keeps across edits and lists them on
its first chunk, so the next edit reuses the ones it still needs and deletes the rest after
writing its own. Rows written before this change carry no marker and are left alone: they
are only reachable through their salted hash and there is no safe way to tell them from a
chunk another memory shares. - Auto-capture and session summaries stored Claude Code's own injected text as the user's prompt (#2149).
parseTranscriptinauto-capture-hook.jsandsession-end.jstook the nearestuser-role
transcript entry as the prompt, skipping only tool results. Claude Code also writes
<system-reminder>blocks, background-task notifications, messages from other sessions and
compaction summaries under that role, so they were captured as "User: ..." and fed to the
#skip/#remembercheck. A sharedutilities/transcript-filter.jsnow strips
<system-reminder>spans, skips attachments (isMeta, reminder-only, local command output) while
scanning back, and stops at entries that start a turn of their own (non-humanorigin.kind,
notification prefixes, compaction summaries) so a reply to a notification is not paired with an older
prompt. Auto-capture skips a turn that has no typed prompt instead of storing "[no message]". - Exiting and resuming one Claude Code session stored a new "Session Summary" every time, and Cargo workspace roots were named
rust-project(#2150).
The SessionEnd hook now recordssession_id(metadata and asys:claude-session:<id>tag), skips the
write when the transcript has not grown since the stored summary, and otherwise updates that summary via
PUT /api/memories/{hash}(or replaces it when the backend split it into chunks); a summary the server
stored only in part is retried on the next end, up to three times, and a failed lookup stores as before.
Manifests without a name no longer yield placeholder project names (rust-project,node-project, ...),
so the git repository or directory name is used; memories already tagged with a placeholder keep it. - The default local quality model scored memories evaluated without a query at or near 0.0 (#2155).
ms-marco-MiniLM-L-6-v2is a query-relevance cross-encoder: on an empty query the ONNX
ranker returns 0.0, and its CPU batch path scores a " " query to near-zero relevance.
POST /api/quality/memories/{hash}/evaluatewithout a body (since #797) and store-time
async scoring both pass "", so with the[ml]extra installed every hook-evaluated
session summary was stored with quality at or near 0.0; without it the model failed to
load and the same memories got an implicit-signals score. The evaluator now skips a
cross-encoder when there is no query and falls through to the next configured tier (Groq
underauto), otherwise implicit signals. Scoring with a query, and with the
nvidia-quality-classifier-debertaclassifier, is unchanged. Memories already stored
with 0.0 keep that score until they are re-evaluated. The Groq tier no longer blocks the
event loop: the synchronous Groq call runs on a worker thread, one at a time per
evaluator, where before every Groq-scored memory (also when the local model failed to
load) stalled all other requests while it waited. debug_retrieve,exact_match_retrieve,get_raw_embeddingandrecall_memoryfailed on every call withModuleNotFoundError(#2161, closes #1998).
server/handlers/memory.pyimported..utils.debugand..utils.time_parser, which
resolve toserver/utils, where neither module exists; they live in
mcp_memory_service/utils. The four imports now point there. The integration tests that
hid it are stricter: the two recall tests fail onModuleNotFoundErrorinstead of
skipping, and theget_raw_embeddingtest checks the success message and the dimension
instead of the word "embedding", which every error text also contains.
With the import fixed,get_raw_embeddingandcheck_embedding_modelthen failed on the
hash-embedding fallback ('list' object has no attribute 'tolist'), and would have
embedded a bare string character by character; both now encode a one-item list and
accept a list or an array back.- Dashboard loading rings slid off center while they spun (#2167).
style.cssdefined@keyframes spintwice. The later block, which keeps the
search filter button's absolutely positioned ring centered with
translate(-50%, -50%) rotate(360deg), replaced the rotation-only animation.
Every other spinner interpolated that translation, drifted up-left by half its
own size, and snapped back at the next cycle. The filter ring now uses
spin-centered;spinonly rotates. Reported by andrunio. - On Milvus, two similar memories in different stores were tagged
conflict:unresolvedwith no way to clear the tag (#2168).
Conflict detection searched every store, but thecontradictsedge between a cross-store
pair is refused since #2122, soget_conflictsnever listed the pair and neither
memory_resolvenor maintenance could reach it. Detection now stays inside the store
being written, as on sqlite-vec, and a memory is tagged only when its conflict edge was
written. On a collection without thestorefield, a write to a named store skips
conflict detection rather than comparing against every store. Tags left by the old
behaviour stay until Milvus getsreconcile_conflict_tags(#2169). - On Milvus, superseded and soft-deleted memories still took part in conflicts (#2169, part 1).
A new memory was flagged as conflicting with an old version that had already been
replaced, and a pair stayed inget_conflictsafter one side was superseded by a
versioned update,mark_superseded_batchor a resolve. Resolving such a pair rewrote the
old version'ssuperseded_byand broke its version chain. Conflict detection now compares
a new memory only with current memories, widening the search when replaced rows crowd the
nearest five, andget_conflictslists a pair only when both sides are current, as on
sqlite-vec. Clearingconflict:unresolvedtags left on the other side is part 2.
Removed
- The fail-closed store guards are gone, and a per-store credential reaches
memory_exploreandmemory_detail(#2120, closes #1683, massimiliano1991). Every
backend now confines hash-addressed operations tostore(sqlite_vec, hybrid,
cloudflare and milvus always; remote_http against a peer that advertises
store_scoped_access, refusing a named store otherwise), so the branches that refused
a store-scoped call by readingget_by_hash_is_store_scopedwere removed from the
content_hashlookup inmemory_search,memory_update,memory_detail, the REST
delete and update routes (including the content-edit helpers from #2129: the
replacement lookup, the split-chunk lookup and update, and the versioned path),
evolve_memoryand the harvester's evolution path. The
handlers now passstoreto the storage call and let the backend answer.
memory_detailalso reads each chunk row with the claimed store. The flag is still
read in two places, on the live storage object:store_grant_targetand
require_store_scopeaccept aread:<store>/write:<store>credential only where the
backend confines, so remote_http against an older peer still refuses one.
memory_graphstays on the global grant, becauseconnected,pathandsubgraph
walk association edges that take nostore.
Internal
- Move minimatch in the bridge test dependencies past two advisories (#2177). Both JavaScript test projects now lock minimatch 11.0.10 to address GHSA-cf2h-pxjq-68xw and GHSA-c859-jr93-m5j4. Development-only dependency of Mocha; the published package is unaffected.
Full changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md