smriti-mcp

v0.1.5
smriti-mcp Checked 2 days ago Published 1 month ago

A portable markdown memory MCP server for any agent.

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

create_memory

Create a durable markdown memory for facts, decisions, preferences, or project context that should survive beyond the current chat.

ParameterTypeDescription
content *stringMarkdown body of the memory. Use wikilinks like [[Other Memory]] to relate notes.
meta *Structured metadata used for naming, grouping, filtering, and retrieval.
idOptional stable memory id such as 'project/Deploy Workflow'. If omitted, Smriti creates one from category and title.

get_memory

Retrieve a memory note by id and return its complete markdown with YAML frontmatter.

ParameterTypeDescription
id *stringMemory id returned by create_memory, for example 'project/Deploy Workflow'.

append_memory

Append new markdown to an existing memory while preserving its current content and updating the modified timestamp.

ParameterTypeDescription
content *stringMarkdown content to append to the end of the memory.
id *stringMemory id to append to.

update_memory

Patch memory metadata and optionally replace the full markdown body. Use append_memory when adding incremental observations.

ParameterTypeDescription
id *stringMemory id to update.
contentReplacement markdown body. Leave null to preserve existing content.
metaPartial metadata changes. Omitted fields keep their existing values.

archive_memory

Mark a memory as archived without deleting its markdown file.

ParameterTypeDescription
id *stringMemory id to mark as archived.

delete_memory

Permanently delete a memory note by id.

ParameterTypeDescription
id *stringMemory id to permanently delete.

list_memories

List memory metadata for browsing or filtering without returning full note bodies. Use search_memory when you need relevance ranking.

ParameterTypeDescription
categoryOptional category filter.
limitintegerMaximum number of memories to return.
statusOptional lifecycle status filter, such as 'active' or 'archived'.
tagsOptional tags that every returned memory must contain.

search_memory

Search durable memories with relevance ranking over title, aliases, tags, path, description, and body terms.

ParameterTypeDescription
query *stringSearch terms, phrase, or topic to retrieve relevant memories for.
filtersOptional exact-match metadata filters applied before ranking.
include_contentbooleanWhen true, include full markdown content in each result; set false to save context.
limitintegerMaximum number of ranked results to return.

record_trace

Record an append-only memory trace for shared agent experience. Traces are raw observations that agents can later consolidate into durable memories.

ParameterTypeDescription
content *stringRaw trace content or observation to preserve.
agentAgent identity writing the trace, for example codex or claude.
memory_idRelated memory id, if this trace concerns an existing memory.
metadataAdditional structured trace metadata.
salienceOptional importance from 0 to 1.
scopeStructured scope for the trace, such as project or repository.
typestringTrace event type such as observed, recalled, remembered, or consolidated.

remember

Agent-friendly write API that records a trace and deterministically chooses whether to create a new memory or append to a strongly matching existing memory.

ParameterTypeDescription
content *stringMemory content the agent believes should persist.
categorystringCategory to use when a new memory is created.
confidenceOptional confidence label for a new memory.
idTarget memory id required for explicit append or update modes.
memory_typeOptional human-memory class such as episodic, semantic, procedural, or preference.
metaOptional metadata for precise memory creation; supplied fields are authoritative.
modestringWrite mode: auto, create, append, or update.
salienceOptional importance from 0 to 1.
scopeOptional structured scope used for matching and new metadata.
source_agentAgent identity writing the memory.
tagsOptional tags for a new memory.
titleOptional title for a new memory or matching existing memories.

recall_context

Return a compact, deterministic recall bundle for an agent task using lexical match, metadata, salience, access history, status, and optional wikilink traversal.

ParameterTypeDescription
query *stringTask, question, or situation to recall memory for.
filtersOptional metadata filters for recall.
follow_linksbooleanWhen true, include nearby wikilink and backlink memories.
include_archivedbooleanWhen true, archived and superseded memories may be included.
limitintegerMaximum number of memories to include.
mark_accessedbooleanWhen true, update access metadata for recalled memories.
token_budgetintegerApproximate maximum recall context token budget.

mark_accessed

Mark a memory as accessed, updating last_accessed_at, access_count, and salience.

ParameterTypeDescription
id *stringMemory id to reinforce as recently accessed.

suggest_consolidation

Suggest groups of raw traces that may deserve consolidation. Smriti does not summarize them; the agent decides the final memory content.

ParameterTypeDescription
agentOptional agent identity to filter trace files.
limitintegerMaximum number of consolidation groups to return.
scopeOptional scope filter for trace grouping.
sinceOptional ISO timestamp; ignore traces older than this.

consolidate_memory

Create, append, or update a durable memory from agent-supplied consolidated content. Use after reviewing traces; Smriti records provenance but does not summarize content itself.

ParameterTypeDescription
content *stringFinal markdown memory content supplied by the agent.
meta *Metadata for the consolidated memory.
idOptional target memory id for create, append, or update.
modestringConsolidation mode: create, append, or update.
trace_idsTrace ids that support this consolidation.

supersede_memory

Mark one memory as superseded by another while preserving both markdown files.

ParameterTypeDescription
new_id *stringMemory id that replaces or supersedes the old memory.
old_id *stringMemory id that is no longer current.
reasonOptional explanation appended to the superseded memory.

review_memory_health

Review memory store health by reporting duplicate titles, stale active memories, oversized notes, and unresolved wikilinks without modifying files.

build_memory_index

Build or refresh the human-readable markdown memory index at index.md.

ParameterTypeDescription
group_by_categorybooleanWhen true, group index entries under category headings.

rebuild_memory

Repair and rebuild the memory store: optionally fix frontmatter, apply or normalize wikilinks from memory titles and aliases using longest matches first, then rebuild index.md and index.yaml.

ParameterTypeDescription
apply_wikilinksbooleanWhen true, add and normalize wikilinks based on memory titles and aliases.
dry_runbooleanWhen true, report proposed frontmatter and wikilink changes without writing files or indexes.
fix_frontmatterbooleanWhen true, repair missing or malformed required frontmatter fields before indexing.
group_by_categorybooleanWhen true, group generated index.md entries under category headings.

load_memory_index

Load the generated markdown memory index, optionally refreshing it first.

ParameterTypeDescription
refreshbooleanWhen true, rebuild index.md before returning it.