memory

v0.21.0
@ai-devkit/memory Checked 3 hours ago Published 19 days ago

Local 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.

ParameterTypeDescription
content *stringDetailed explanation in markdown format. Supports code blocks and examples. (50-5000 chars)
title *stringShort, explicit description of the rule, written so a future agent knows when it applies (5-12 words, 10-100 chars)
scopestringOptional scope: "global", "project:<name>", or "repo:<name>". Default: "global"
tagsarrayOptional 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.

ParameterTypeDescription
id *stringUUID of the knowledge item to update
contentstringNew content in markdown format (50-5000 chars). Only provide if changing.
scopestringNew scope: "global", "project:<name>", or "repo:<name>". Only provide if changing.
tagsarrayNew tags (replaces existing). Only provide if changing. Max 10 tags.
titlestringNew 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.

ParameterTypeDescription
query *stringNatural language task description — or paste the error text you just hit — to search for relevant knowledge (3-500 chars)
contextTagsarrayOptional tags to boost matching results (e.g., ["api", "backend"])
explainbooleanInclude lexical and semantic rank details when semantic search is enabled.
limitnumberMaximum number of results to return (1-20, default: 5)
scopestringOptional project/repo scope filter. Results from this scope are prioritized.