Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPEN_MEMEX_HOMENoOverride the storage root (default is %APPDATA%\open-memex on Windows, ~/.local/share/open-memex on macOS/Linux; the pre-rename MY_O_MEMORY_HOME name is still honored as a fallback).
OPEN_MEMEX_CONFIGNoOverride the config file path (default is ~/.config/opencode/open-memex.jsonc; the pre-rename MY_O_MEMORY_CONFIG name is still honored as a fallback).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
memory_addA

Save a fact, preference, decision, or note to persistent local memory. Call this PROACTIVELY whenever the user shares something worth remembering across sessions — project conventions, tool choices, personal preferences, decisions made, error fixes and their causes. Worth saving: decisions and their reasons, preferences, conventions, gotchas, approaches tried and abandoned. Not worth saving: one-off task details or anything re-derivable from the code. Do not wait to be asked. For facts you infer yourself rather than the user stating, propose them first and save only on approval. Keep each memory to one self-contained statement; attach aliases when the parameter is available. If a note tells you the user's own wording was already stored verbatim this turn, that statement is already saved: do not retry it in a rewording — save only what that text does not contain, or use memory_supersede on the given id. Default scope is the current project; use the personal scope for facts about the user that apply across all projects. Returns the new memory's id; an identical fact already stored returns that id instead of duplicating.

memory_searchA

Search persistent memory by keyword (BM25 full-text). Returns matching memories from the current project and/or personal scope. Call before asking the user about past decisions, conventions, or preferences they may have told you before. Search well: break the question into its concepts and try 2–3 phrasings per concept — synonyms, the user's other language, shorter keyword forms — and check the other scope too, before concluding nothing is stored. Results are ranked by BM25 within review tiers — reviewed (approved/published) project memories come first. limit caps how many come back (default 8) and type restricts to one memory type.

memory_listA

List memories in a scope, newest first, as a numbered inventory. Each line keeps the raw fields — [type] id=… created=… source=… — say them back to the user in plain words (source=user → 'you told me this'; inference → 'I inferred this, check me'; keyword → 'caught from your own wording'), never read the raw id aloud unless they ask. When the user asks 'what do you remember about me?', use scope=both and present the inventory conversationally. The user may point at an entry by its number ('delete #3'): numbers are only valid for the listing you just produced — re-run memory_list, read the candidate back in full, and get a confirmation before calling memory_forget (deletion is permanent). include=all is the audit view (superseded versions, retracted, archived also shown). type filters to one memory type; limit caps how many entries come back.

memory_supersedeA

Replace an existing memory with a newer version. The old memory is kept as history (status: superseded) and retrieval returns the new one. Use when a saved fact becomes outdated and should be replaced rather than duplicated. Only active memories can be superseded; the new memory inherits type, tags, and aliases unless you pass replacements. An unknown id is reported back as a failure; nothing is written.

memory_forgetA

Delete a memory by id. Use when the user asks to forget something. To replace an outdated fact with a corrected one instead of deleting it, use memory_supersede. Deletion is permanent: before deleting, restate the memory's content to the user and get a confirmation. With soft=true the memory is hidden instead (retracted: out of lists and search, file kept, one-way).

memory_statusA

Show the project memory sync pipeline: drafts waiting in the outbox (appdata), memories in the repo awaiting review or published, and any repo files not yet committed. Call this at session start, when the server reports drafts waiting for review, or when the user says 'sync memory' (or '同步记忆'); then ask the user which drafts to sync. For the memories themselves use memory_list; for PR review state use memory_pr_status. (MCP server and the open-memex sync-status CLI; the opencode native plugin does not expose this tool.)

memory_submitA

Move outbox drafts into the repo memory dir for review: copies the drafts in as proposed (or keeps a local approval), commits locally on the current branch, and moves the outbox originals out. Never creates a branch on its own — pass branch= only with the user's explicit approval for the full chain. Prints the push and PR commands — those need the user's explicit approval and are never run automatically. (MCP server and the open-memex submit CLI; the opencode native plugin does not expose this tool.) Unknown ids or a failed local commit abort the submit with the reason; nothing is published automatically.

memory_proposeA

Copy personal memories into the project outbox as review drafts. The personal originals stay put. Use this when personal knowledge should enter a project's review flow; memory_submit then moves the drafts into the repo, and memory_promote advances drafts already there. (MCP server and the open-memex propose CLI; the opencode native plugin does not expose this tool.)

memory_promoteA

Advance a project memory one step up the review ladder (proposed → approved → published), or reject it with a note. Rejected memories are never deleted — they can be revised and resubmitted. One step per call; an unknown id or a memory already published errors. Pass by to record the reviewer when it should differ from the default (e.g. approving on the strength of someone else's review). For brand-new outbox drafts, memory_submit is the entry point. (MCP server and the open-memex promote CLI; the opencode native plugin does not expose this tool.)

memory_resolveA

List git-conflicted memory files, or attempt a field-level 3-way merge of one. Semantic conflicts are reported, never auto-resolved. Run it when a git pull or merge leaves memory files conflicted; the merged file is written in place (undo with git if the merge is wrong). For PR review state rather than file conflicts, use memory_pr_status. (MCP server and the open-memex resolve CLI; the opencode native plugin does not expose this tool.)

memory_pr_statusA

Read the current branch's GitHub PR and map its review state onto each in-repo memory: merged PR → published, PR approval → approved (approved_by = reviewer), changes-requested → suggestion only. Report by default — that mode changes nothing; apply=true writes the mapped transitions to the local files (still no push). (MCP server and the open-memex pr-status CLI; the opencode native plugin does not expose this tool.)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 11 tools

Disambiguation4/5

Most tools target a distinct action or lifecycle stage, but the sync/review tools (memory_status, memory_submit, memory_propose, memory_promote, memory_pr_status) are conceptually adjacent and require reading cross-references to select correctly. The descriptions explicitly disambiguate key pairs such as memory_forget vs memory_supersede and memory_status vs memory_pr_status, keeping confusion limited.

Naming Consistency5/5

All 11 tools follow the same memory_ prefix with snake_case suffixes (memory_add, memory_search, memory_list, memory_forget, memory_supersede, etc.). The pattern is predictable and consistent throughout, including compounds like memory_pr_status.

Tool Count5/5

At 11 tools, the set is well-scoped for a persistent memory server that includes core CRUD, search, and a review/sync pipeline. Each tool maps to a distinct operation and earns its place without bloat.

Completeness4/5

Core memory lifecycle is covered: add, search, list, forget, and supersede, plus review progression (propose, submit, promote), status inspection, conflict resolution, and PR-state mapping. Minor gaps exist (no direct edit/update of memory content or metadata besides supersede, no explicit get-by-id), but agents can work around them via search/list.

Maintenance

ActivityActive
ResponsivenessResponsive