MESA Lore · v0.1.0

MCP tools

v0.1.0 source: src/mesa_lore/mcp_server.py

This guide has equivalent English and Turkish versions. Its verified sources are listed at the end of the page.

Tool overview#

ToolPurposeRequired
memory_indexShort overview of a projectNone
memory_searchFind passages and notesquery
memory_getOpen one result with neighborsid
memory_saveSave a short notetext, kind

If project is omitted, MESA Lore uses the Git repository name, or the folder name outside a repository.

memory_index#

Returns available scopes, up to three active notes, recent handoffs and the latest assistant message. The output is capped at about 181 tokens. Its optional parameter is project.

memory_search#

Search is lexical, so use two to five distinctive words that are likely to appear in the text. Parameters are query, project and kind.

json
{"query": "redis timeout", "kind": "decision"}

Results include an ID, agent, date, source type and text. Superseded notes can appear and are labeled superseded.

memory_get#

Opens one result. For transcript passages, before and after include neighboring passages from the same session.

json
{"id": "c_19c07ddfbdde", "before": 2, "after": 2}

memory_save#

Saves a decision, fact, todo, failed_attempt or handoff.

json
{"text": "Use a 3600 second Redis session timeout", "kind": "decision"}
ParameterMeaning
projectTarget project, global or research:<topic>
session_idLinks the note to a session
replacesID of an older note to mark as superseded
files, repoFiles that make the note stale when their Git commit changes

Returned text#

Every tool response is wrapped in <untrusted_memory> tags. Agents should treat it as data, not as instructions. Check important answers against the returned source.