MCP server

Tools and behaviour

When to call each memory tool — search, context, list, get, add, update, delete, restore, export, import and feedback — how writes resolve, and what happens at a plan limit.

MCP server4 pages
memory_context
Call it when
A session starts, or the user names a new project
Returns
Plain-text pack
memory_search
Call it when
You need one specific fact before answering
Returns
Personal and code hits with scores
memory_list
Call it when
You need to enumerate or audit what is stored
Returns
A page of memories plus nextCursor
memory_get
Call it when
You have an id and need the row or its history
Returns
Memory plus supersede chain
memory_add
Call it when
The user states a durable preference, decision or gotcha
Returns
Id plus resolution
memory_update
Call it when
A stored memory is wrong or out of date
Returns
Id plus the updated memory
memory_delete
Call it when
A memory should not exist at all
Returns
Deleted flag
memory_restore
Call it when
A supersede replaced the value you want back
Returns
Restored flag
memory_export
Call it when
The user wants a backup or is changing clients
Returns
JSON export
memory_import
Call it when
Restoring an export or seeding memory
Returns
Counts per kind
memory_personal_categories
Call it when
Before filing into a category
Returns
Categories with counts
memory_add_personal
Call it when
You already know it is user memory
Returns
Id plus resolution
memory_add_code
Call it when
You already know it is project memory
Returns
Id plus resolution
memory_personal_category_add
Call it when
The user wants a category of their own
Returns
Category definition
memory_personal_category_update
Call it when
Rename or recolour a custom category
Returns
Category definition
memory_personal_category_delete
Call it when
Remove a custom category
Returns
Deleted flag plus moved count
memory_code_types
Call it when
You need the valid code types
Returns
Types with counts
memory_code_category_add
Call it when
The user wants a custom code type
Returns
Type definition
memory_code_category_update
Call it when
Rename or recolour a custom code type
Returns
Type definition
memory_code_category_delete
Call it when
Remove a custom code type
Returns
Deleted flag plus moved count
memory_repos
Call it when
You need the repositories you can write to
Returns
Repos with role and counts
memory_repo_create
Call it when
A repository is not registered yet
Returns
Repo id and name
memory_repo_share
Call it when
The owner wants a teammate to see the repo
Returns
Invite path and expiry
memory_feedback
Call it when
A retrieved memory was clearly useful or clearly wrong
Returns
Found flag

Hybrid search over both stores. Pass repo as owner/name and paths for the files being edited so matching memories rank higher; pass kind to narrow to personal or code. Results carry ids you can rate with memory_feedback.

Free accounts receive at most 5 results per call, Pro up to 50. The default is 6, so a free account asking for 6 gets 5.

memory_context

A prompt-ready pack, returned as text. It is the cheapest way to start a session.

chat
Budget (Pro)
~1,200 characters
Built for
Chat assistants and general work
coding
Budget (Pro)
~1,600 characters
Built for
Coding agents; conventions first
full
Budget (Pro)
~2,800 characters
Built for
Planning and long sessions

Free accounts cap every preset at 1,200 characters. repo, path and task shape what the pack contains; limit caps how many memories of each kind are packed, pinned always carries the highest-importance ones, pinnedIds force-includes specific memories, and categories / excludeCategories filter which kinds of personal memory appear.

memory_add

One tool for both stores. Pass kind: "personal" with a category for user memory, or a type with repo for code memory. A stable key makes the write an upsert, so a changed convention replaces the old value instead of competing with it.

kind
Effect
personal or code; inferred from category or type when omitted
category
Effect
preference, fact, goal, relationship, event, skill, opinion, or a custom category you added
type
Effect
preference, convention, decision, fact, gotcha, pattern
key
Effect
Stable identity such as build:flags; later writes update in place
repo
Effect
Repository as owner/name; required for repo-scoped code memory

The response says what happened: created for a new row, merged when a near-duplicate was combined, superseded when a changed value replaced the previous one.

Categories start with the seven built-ins. Settings → Categories adds your own, each with a colour; agents can then pass the category's name or key, and a memory filed under it is filtered, packed and searched like any other. Deleting a category keeps its memories and moves them to Fact.

A call that sends items stores each one independently: siblings inside the same batch never merge into or supersede one another, so bulk-writing several related notes cannot silently drop one. A single memory_add still resolves against what is already stored.

memory_update

Corrects a row in place, keeping its id. Pass the id from a search or context result and only the fields that changed. Use it whenever the user corrects something already stored — a second memory_add would leave two rows that disagree.

Personal memory accepts content, category, importance and key; code memory accepts content, type, key, path, symbol, language and confidence. The kind is inferred from the id, so kind is optional.

memory_delete

Removes one memory. The row moves to status: deleted rather than vanishing, so memory_restore can bring it back by id, and memory_list with status: "deleted" shows what was removed. Prefer memory_update when the fact merely changed; delete is for rows that are wrong or should never have been saved.

A teammate with viewer access cannot update or delete shared repository memory — the call returns a read-only error instead.

memory_list and memory_get

Search ranks by similarity, which is the wrong tool for “show me everything”. memory_list returns rows in creation order with kind, status, categories, types, repo, since, until and a cursor — 100 per page at most. status: "all" or includeSuperseded: true also returns values a newer memory replaced, status: "deleted" returns removed rows, and memory_get returns one row together with the version that replaced it, the versions it replaced, and its history of earlier texts.

This is the pair to reach for when a memory seems to have vanished: a write that superseded it hides it from recall, but never from memory_get.

memory_restore

Undoes a delete, a supersede, or an in-place rewrite. A deleted row returns to status active; a supersede makes the older memory current again and hides the newer one in its place; a merged or updated row gets its previous text back from memory_get's history. Nothing is removed, so a restore can itself be undone.

memory_export and memory_import

memory_export returns personal and code memory as JSON, superseded versions included; memory_import accepts that JSON, a plain array, or the dashboard's export format, up to 100 memories per call. Personal imports skip duplicate resolution so the restored text is exactly what was exported.

Token scopes

A token can be read-only, and can be scoped to personal or to code memory. A read-only token is not offered the write tools at all; a scoped token sees only its kind and its writes to the other kind are refused. Mint them in Settings → MCP server.

memory_feedback

Mark a retrieved memory helpful: true or false. Helpful memories rank higher over time; the feedback is also visible through the audit API on Pro.

The server's instructions

Connecting over MCP sends this block, which most clients add to the model's context automatically:

server instructions
Memo is the user's long-term memory across AIs: personal preferences, facts,
goals, people, skills, plus project conventions, decisions and gotchas for code.

- Call memory_context at the start of a task.
- Call memory_search when you need a specific fact.
- Call memory_add when the user states a durable preference, fact, goal,
  decision or gotcha.
- For code memories pass repo as 'owner/name'; for personal memories pass
  kind='personal'.
- Pass a stable key on code or personal memories so updated values overwrite
  instead of duplicating.

When a call is refused

Memory limit reached
What the model sees
A message naming the plan limit and the upgrade path (402 memory_quota)
Fourth repository on free
What the model sees
A repository-limit message (402 repository_quota)
Token revoked or missing
What the model sees
Unauthorized: send Authorization: Bearer <mcp token> (HTTP 401)
Query shorter than two characters
What the model sees
A validation error; the query would match too broadly
Write to a repository you can only view
What the model sees
A read-only error
Update or delete an id that is gone or unreachable
What the model sees
A not-found error; search again for the current id

The full parameter list, defaults and response shapes are on the tool reference.

Pending writes

Writes made by capture hooks (commits and Claude sessions) land in the Inbox as pending. Recall ignores them until they are approved in Dashboard → Inbox, so an agent will not see them immediately.