memory
v0.21.0Local MCP memory for AI coding agents to reuse project decisions, conventions, and fixes across sessions
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
memory_storeKnowledge
AFTER completing a task — and especially right after fixing an error, discovering a gotcha, or making a decision a future agent would otherwise rediscover the hard way — persist it as verified, reusable knowledge for future sessions (e.g. 'This repo pins better-sqlite3 to 12.x; native builds fail on newer versions'). Before storing, run memory_searchKnowledge on what you learned; if a matching item exists, use memory_updateKnowledge instead of creating a near-duplicate. Do not store secrets, raw logs, task progress, or one-off details.
| Parameter | Type | Description |
|---|---|---|
content * | string | Detailed explanation in markdown format. Supports code blocks and examples. (50-5000 chars) |
title * | string | Short, explicit description of the rule, written so a future agent knows when it applies (5-12 words, 10-100 chars) |
scope | string | Optional scope: "global", "project:<name>", or "repo:<name>". Default: "global" |
tags | array | Optional domain keywords (e.g., ["api", "backend"]). Max 10 tags. |
memory_updateKnowledge
Correct an existing knowledge item by ID when you learn it is outdated, inaccurate, or incomplete — update it instead of storing a duplicate. First run memory_searchKnowledge to find the item and its ID; pass only the fields that change.
| Parameter | Type | Description |
|---|---|---|
id * | string | UUID of the knowledge item to update |
content | string | New content in markdown format (50-5000 chars). Only provide if changing. |
scope | string | New scope: "global", "project:<name>", or "repo:<name>". Only provide if changing. |
tags | array | New tags (replaces existing). Only provide if changing. Max 10 tags. |
title | string | New title (10-100 chars). Only provide if changing. |
memory_searchKnowledge
Call BEFORE starting ANY task — trivial or not — and again IMMEDIATELY when you hit an error, test failure, or surprising behavior during work. This check is cheap and prevents re-solving already-solved problems. Pass a short description of what you are about to do or the error you hit (e.g. 'wire MCP server into Gemini CLI settings', 'vitest flaky teardown in cli package', 'EPERM on npm ci in worktree'). Skip only for pure conversation with no action. Apply relevant results, and prefer them over re-deriving from scratch.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language task description — or paste the error text you just hit — to search for relevant knowledge (3-500 chars) |
contextTags | array | Optional tags to boost matching results (e.g., ["api", "backend"]) |
explain | boolean | Include lexical and semantic rank details when semantic search is enabled. |
limit | number | Maximum number of results to return (1-20, default: 5) |
scope | string | Optional project/repo scope filter. Results from this scope are prioritized. |