codememory

v2.0.0
@irfansyafie/codememory Checked 1 hour ago Published 6 days ago

Local-first, AI-native engineering memory & MCP server for tickets, architecture decisions, and safe production patches.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_memory

Fast keyword search across all engineering memory (issues, playbooks, patches, queries, errors, gotchas, architecture).

ParameterTypeDescription
query *stringSearch keyword, function name, table name, or phrase.
categorystringOptional folder/category filter. Defaults to 'all'.

lookup_error

Search error signatures, exception logs, stack traces, and error codes in errors.md, gotchas.md and past issues.

ParameterTypeDescription
error_query *stringError message, exception class (e.g. NullPointerException, ORA-00001), or stack trace.

get_entry

Retrieve a complete logged issue (bug, feature or decision) by its id, plus any attached SQL patch. Also finds playbooks and queries by name.

ParameterTypeDescription
id *stringEntry id, e.g. '1', '12', '#286705' or 'PROJ-42'.

get_relationships

Retrieve architecture notes: system flows, ER diagrams, foreign key relationships, and synchronization rules (architecture.md).

ParameterTypeDescription
keywordstringOptional table or entity name to filter.

get_codemap

Find mappings between UI screens, services, controllers, database tables, and external integrations.

ParameterTypeDescription
keyword *stringClass name, screen, API endpoint, or service to map.

log_entry

Log a resolved bug, finished feature, or technical decision into CodeMemory (issues/<id>.md + INDEX.md). ONLY call this after the user has approved what to log. Omit id to auto-number (1, 2, 3...) or pass the real tracker id (#12, 286705, PROJ-42). Formatting rules: 4-space indentation for nested sub-bullets, clean filenames in files_changed (auto-stripped to backticked basenames), and any sql_patch must use STEP 1: PRE-CHECK, STEP 2: EXECUTE (transaction + explicit PK), STEP 3: POST-CHECK.

ParameterTypeDescription
solution *stringSection 2: how was it fixed or built, or what was chosen?
summary_issue *stringSection 1: what was the issue (bug), the goal (feature), or the question (decision)?
title *stringShort, descriptive title in plain words.
type *stringEntry type.
branchstringOptional Git branch name.
files_changedarrayList of modified file names. Full paths are automatically stripped to clean backticked badges.
idstringOptional. Real tracker id (e.g. '12', '#286705', 'PROJ-42'). Leave empty to auto-number 1, 2, 3...
learningsarraySection 3: key realizations, trade-offs, or gotchas learned. Use 'Label: detail' format.
overwritebooleanSet true only to replace an existing entry with the same id.
sql_patchstringOptional SQL patch statements saved into patches/. Must follow 3-step verification: STEP 1: PRE-CHECK (SELECT with expected count), STEP 2: EXECUTE (BEGIN...COMMIT with explicit PK), and STEP 3: POST-…
status_or_envstringEnvironment (e.g. 'PROD', 'STG') or status (e.g. 'Completed'). Optional.