codememory
v2.0.0Local-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).
| Parameter | Type | Description |
|---|---|---|
query * | string | Search keyword, function name, table name, or phrase. |
category | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
error_query * | string | Error 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Entry 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).
| Parameter | Type | Description |
|---|---|---|
keyword | string | Optional table or entity name to filter. |
get_codemap
Find mappings between UI screens, services, controllers, database tables, and external integrations.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Class 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.
| Parameter | Type | Description |
|---|---|---|
solution * | string | Section 2: how was it fixed or built, or what was chosen? |
summary_issue * | string | Section 1: what was the issue (bug), the goal (feature), or the question (decision)? |
title * | string | Short, descriptive title in plain words. |
type * | string | Entry type. |
branch | string | Optional Git branch name. |
files_changed | array | List of modified file names. Full paths are automatically stripped to clean backticked badges. |
id | string | Optional. Real tracker id (e.g. '12', '#286705', 'PROJ-42'). Leave empty to auto-number 1, 2, 3... |
learnings | array | Section 3: key realizations, trade-offs, or gotchas learned. Use 'Label: detail' format. |
overwrite | boolean | Set true only to replace an existing entry with the same id. |
sql_patch | string | Optional 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_env | string | Environment (e.g. 'PROD', 'STG') or status (e.g. 'Completed'). Optional. |