delx-memory

v0.2.3
io.github.davidmosiah/delx-memory Checked 1 hour ago Published 5 months ago

Local-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware, secret-safe

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

memory_get Get one memory entry by key

Exact key lookup. Returns the stored value plus timestamps, ttl, tags, metadata. Returns null if missing or expired.

ParameterTypeDescription
key *stringStable identifier for the memory entry. Free-form text. Treat as case-sensitive.

memory_list List memory keys (not values)

List keys with optional prefix or tag filter. Returns keys + timestamps + tags only — call memory_get for values. Use this first on a new session to discover what is stored.

ParameterTypeDescription
limitintegerMax keys to return.
prefixstringOnly return keys starting with this string.
tagstringOnly return keys carrying this tag.

memory_stats Memory store stats

High-level stats about the local memory store. Safe to call first on every session to gauge whether the store is empty, small, or large.

memory_set Upsert a memory entry (requires explicit_user_intent)

Create or update a key in memory. Rejects credential-shaped keys or values. Requires explicit_user_intent: true. Returns whether the row was created or updated.

ParameterTypeDescription
explicit_user_intent *booleanMust be true. Set ONLY when the current user message explicitly asks the agent to modify memory (set/forget/export). Do not infer intent.
key *stringStable identifier for the memory entry. Free-form text. Treat as case-sensitive.
value *The value to store. Will be JSON-serialized. Rejected if it looks like a credential.
metadataobjectOptional small JSON object with provenance/notes. Subject to same secret-detection rules.
tagsarrayOptional list of tags for grouping/filter/bulk-delete.
ttl_secondsintegerOptional TTL in seconds. After this, the entry is lazy-deleted on next read.

memory_forget Delete one memory entry (requires explicit_user_intent)

Delete a single key from memory. Idempotent: returns existed=false if the key was not present. Requires explicit_user_intent: true.

ParameterTypeDescription
explicit_user_intent *booleanMust be true. Set ONLY when the current user message explicitly asks the agent to modify memory (set/forget/export). Do not infer intent.
key *stringStable identifier for the memory entry. Free-form text. Treat as case-sensitive.

memory_forget_by_tag Bulk-delete entries by tag (requires explicit_user_intent)

Delete every entry carrying the given tag. Returns deleted_count. Requires explicit_user_intent: true.

ParameterTypeDescription
explicit_user_intent *booleanMust be true. Set ONLY when the current user message explicitly asks the agent to modify memory (set/forget/export). Do not infer intent.
tag *stringTag to bulk-delete.

memory_export Export memory contents (requires explicit_user_intent)

Dump the memory store as JSON, JSONL, or Markdown. Optional since/until window on updated_at. Use for backup/inspection. Requires explicit_user_intent: true.

ParameterTypeDescription
explicit_user_intent *booleanMust be true. Set ONLY when the current user message explicitly asks the agent to modify memory (set/forget/export). Do not infer intent.
format *stringOutput format: json (single object), jsonl (one entry per line), markdown (human-friendly).
sinceintegerUnix ms timestamp — include only entries with updated_at >= since.
untilintegerUnix ms timestamp — include only entries with updated_at <= until.