github doobidoo/mcp-memory-service v13.2.0

one hour ago

Special Thanks

This release carries work from outside contributors:

Highlights

  • New memory_ontology MCP tool with entity alias resolution.
  • memory_search takes expand_hops and 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 with MCP_SYNC_PEER_VERIFY_SSL=false.
  • debug_retrieve, exact_match_retrieve, get_raw_embedding and recall_memory work 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 the memory_ontology MCP tool (get, resolve_alias, and overlay
    mutations) and an entity_alias overlay layer (sqlite_vec + REST + sync)
    so synonyms map to canonical entities across extraction, linking, search, and
    graph queries. Fixed subtype parent resolution in RelationshipInferenceEngine,
    expanded built-in TYPE_PATTERNS across all 12 base types, implemented
    SemanticReasoner.abstract_to_concept(), and wired rel_type/direction
    filtering through memory_graph.
  • Delta-sync peers can be verified against a private CA, or, on a trusted network, not verified (#2153, massimiliano1991).
    RemoteHTTPStorage built its httpx.AsyncClient without verify, 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 (default true; false logs 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 from MCP_PEER_*, which stays discovery-only, and the hybrid
    HTTP secondary is unchanged.
  • memory_search can return typed graph neighbours with each result (#2162).
    The new optional expand_hops (0 by default, 1 or 2) adds a Related block to every
    hit: relationship type, direction, hop distance and a short excerpt. At most five per
    hit, typed edges before generic related ones, then the stronger edge first. Until now
    that took one memory_graph connected call per hit, and connected returns hashes
    without the relationship. Neighbours obey the same store, agent_id,
    include_superseded and as_of rules 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 without update_memory_versioned, an edit larger than max_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 an original_hash naming 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).
    parseTranscript in auto-capture-hook.js and session-end.js took the nearest user-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/#remember check. A shared utilities/transcript-filter.js now 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-human origin.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 records session_id (metadata and a sys: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-v2 is 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}/evaluate without 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
    under auto), otherwise implicit signals. Scoring with a query, and with the
    nvidia-quality-classifier-deberta classifier, 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_embedding and recall_memory failed on every call with ModuleNotFoundError (#2161, closes #1998).
    server/handlers/memory.py imported ..utils.debug and ..utils.time_parser, which
    resolve to server/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 on ModuleNotFoundError instead of
    skipping, and the get_raw_embedding test checks the success message and the dimension
    instead of the word "embedding", which every error text also contains.
    With the import fixed, get_raw_embedding and check_embedding_model then 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.css defined @keyframes spin twice. 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; spin only rotates. Reported by andrunio.
  • On Milvus, two similar memories in different stores were tagged conflict:unresolved with no way to clear the tag (#2168).
    Conflict detection searched every store, but the contradicts edge between a cross-store
    pair is refused since #2122, so get_conflicts never listed the pair and neither
    memory_resolve nor 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 the store field, a write to a named store skips
    conflict detection rather than comparing against every store. Tags left by the old
    behaviour stay until Milvus gets reconcile_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 in get_conflicts after one side was superseded by a
    versioned update, mark_superseded_batch or a resolve. Resolving such a pair rewrote the
    old version's superseded_by and 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, and get_conflicts lists a pair only when both sides are current, as on
    sqlite-vec. Clearing conflict:unresolved tags left on the other side is part 2.

Removed

  • The fail-closed store guards are gone, and a per-store credential reaches
    memory_explore and memory_detail (#2120, closes #1683, massimiliano1991).
    Every
    backend now confines hash-addressed operations to store (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 reading get_by_hash_is_store_scoped were removed from the
    content_hash lookup in memory_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_memory and the harvester's evolution path. The
    handlers now pass store to the storage call and let the backend answer.
    memory_detail also reads each chunk row with the claimed store. The flag is still
    read in two places, on the live storage object: store_grant_target and
    require_store_scope accept a read:<store>/write:<store> credential only where the
    backend confines, so remote_http against an older peer still refuses one.
    memory_graph stays on the global grant, because connected, path and subgraph
    walk association edges that take no store.

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

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.