About Mama Core
Mama Core is an MCP server published by jungjaehoon-lifegamez in the RAG category: local-first operating memory for AI coding agents - Claude Code, Codex, and any MCP client. Tracks decisions and their evolution. SQLite + on-device embeddings, no cloud. Conduid read 16 tools from its source: case_timeline_range, get_decision, ingest_conversation, link, list_decisions, load_checkpoint and 10 more. No package is published for it, so it installs from a source checkout.
The repository has 15 stars and 7 forks, is licensed MIT, and its last commit was on 26 Nov 2026. The latest release is v0.78.0 (16 Oct 2026): MAMA v0.78.0 Package Versions | Package | Version | npm | |---------|---------|-----| | @jungjaehoon/mama-core | 8.8.0 | !npm | | @jungjaehoon/mama-server | 2.6.0 |… It follows v0.77.0 (15 Oct 2026), and the 5 most recent releases go back to v0.74.0 (11 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include agent-memory, claude-code-plugins, cot-few-shot, decision-tracking, embeddings and memory-management.
Install
git clone https://github.com/jungjaehoon-lifegamez/MAMATools (16)
case_timeline_rangeReturn a bounded, chronological timeline for a case. Includes decision, event, observation, and artifact memberships resolved through canonical case chains.| Parameter | Type | Description |
|---|---|---|
| case_id * | string | Case UUID to read. Merged cases resolve through their canonical case chain. |
| from | any | Optional inclusive lower date bound. ISO 8601 string or epoch milliseconds. |
| include_connector_enrichments | boolean | Include connector event snapshots for observations/artifacts when available. |
| limit | number | Maximum items to return. Default: 100. Maximum: 500. |
| order | string | Timeline order. Default: 'asc'. |
| to | any | Optional inclusive upper date bound. ISO 8601 string or epoch milliseconds. |
get_decisionRead one decision by id with every edge in and out: the relation, the other decision's id, topic and first line, the reason, who wrote it (agent; agent_text, parsed from an older reasoning text; host, linked by similarity), and any correction. Follow an edge by reading the other id.| Parameter | Type | Description |
|---|---|---|
| id * | string | Decision id. |
ingest_conversationIngest a conversation into MAMA's memory. Stores the raw conversation as one source observation without creating decisions. Use this to import past conversations or chat logs into memory.| Parameter | Type | Description |
|---|---|---|
| messages * | array | Conversation messages to ingest. |
| scopes | array | Memory scopes for isolation. |
| session_date | string | ISO 8601 date when the conversation occurred (e.g., "2024-01-15"). |
linkLink one decision to another after saving, with the reason you judged. Nothing is edited: a wrong link is corrected by linking to it (to = its edgeId from get_decision, relation contradicts), and both stay in the history. A decision that replaces another is saved with replaces.| Parameter | Type | Description |
|---|---|---|
| from * | string | The decision the link is stated from. |
| reason * | string | What relates the two, in a sentence. |
| relation * | string | |
| to * | string | The related decision id, or the edgeId of a link to correct. |
list_decisionsList recent decisions in chronological order. Returns formatted list showing time, type (user/assistant), topic, preview, confidence, and status. Use this to see recent activity or find decisions by browsing. Use scopes to filter by project/channel.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of decisions to return (default: 20, max: 100) |
| scopes | array | Filter list by scope. If omitted, lists all scopes. |
load_checkpointLoad the latest active session checkpoint with narrative and links. Use this at the start of a new session to resume work seamlessly.| Parameter | Type | Description |
|---|---|---|
| include_links | boolean | Include approved links (default: true) |
| include_narrative | boolean | Include related narrative/decisions (default: true) |
| link_depth | number | Link expansion depth (default: 1) |
recall_decisionRecall exact-topic decision history without scopes, or semantic memory matches within supplied scopes. Explicit supersedes links are traversed; reusing a topic does not create a relationship.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format. Default: 'markdown' |
| scopes | array | Filter recall results by scope. If omitted, returns all scopes. |
| topic * | string | Decision topic to recall (e.g., 'auth_strategy', 'mesh_detail_choice'). Use the EXACT SAME topic name used in save_decision to see full decision evolution graph. |
saveSave to MAMA memory. Use type parameter to choose what to save. **type='decision'** — Save architectural decisions, lessons learned, insights. Required: topic, decision, reasoning. Optional: confidence, scopes, event_date, links, replaces. Search for related decisions first. Link the ones this decision builds on, debates or combines with links, and name the ones it replaces with replaces, each with the reason you judged. Nothing is linked for you; link later with the link tool. Triggers: user says "기억해", "remember", "decided". Topic reuse alone does not create a relationship. **type='checkpoint'** — Save session state for resumption. Required: summary (4-section: Goal, Evidence, Unfinished, Next Briefing). Optional: next_steps, open_files. Triggers: session ending, "체크포인트", "save progress". **type='ingest'** — Import conversation messages into memory as a raw source observation. Required: messages (array of {role, content}). Optional: scopes, session_date. **Scopes**: Isolate memories per project/channel. Example: [{"kind":"project","id":"/my/app"}] **event_date**: ISO 8601 date when event occurred (e.g. "2024-01-15"), not when saved.| Parameter | Type | Description |
|---|---|---|
| actors | array | [Decision] Explicit registry person nodes and their roles. |
| confidence | number | [Decision] 0.0-1.0. Default: 0.5 |
| decision | string | [Decision] The decision made. |
| event_date | string | ISO 8601 date when event occurred (e.g. "2024-01-15"). |
| item | string | [Decision] Explicit registry item node id. |
| links | array | [Decision] Decisions this one relates to, each with the relation and the reason you judged. |
| messages | array | [Ingest] Conversation messages to import. |
| next_steps | string | [Checkpoint] Instructions for next session. |
| open_files | array | [Checkpoint] Currently relevant files. |
| reasoning | string | [Decision] Why. Relations go in links or replaces, not in this text. |
| replaces | array | [Decision] Decisions this one replaces, each with the reason. |
| scopes | array | Memory scopes for isolation. |
| session_date | string | [Ingest] ISO 8601 date when conversation occurred. |
| stated_by_user | boolean | [Decision] true only when the user stated this decision in this conversation; otherwise it is recorded as your own insight. |
| summary | string | [Checkpoint] Session state summary. |
| topic | string | [Decision] Topic identifier. Relationships require explicit referenced IDs. |
| type * | string | What to save: 'decision', 'checkpoint', or 'ingest' |
save_checkpointSave the current session state (checkpoint) to MAMA memory. Required format (be honest, include unfinished work): 1) 🎯 Goal & Progress: What was the goal and how far did you get? If unfinished, note where/why you stopped. 2) ✅ Evidence: Files/logs/commands + status [Verified | Not run | Assumed]. 3) ⏳ Unfinished & Risks: Remaining work, unrun tests, risks/unknowns. For next_steps: 4) 🚦 Next Agent Briefing: Next session Definition of Done and quick health/start commands. Before saving: scan for TODOs or missing tests and state them plainly.| Parameter | Type | Description |
|---|---|---|
| next_steps | string | 4) Next Agent Briefing: Next session Definition of Done and quick commands to run (e.g., npm test, curl ...). Describe the target state, not just a task list. |
| open_files | array | List of currently relevant or open files. |
| summary * | string | 1) Goal & Progress 2) Evidence (paths/logs/commands + status [Verified|Not run|Assumed]) 3) Unfinished & Risks (remaining work/unknowns/missing tests). Be explicit about unfinished or assumed items; check for TODOs/missing tests before saving. |
save_decisionSave your architectural decisions, lessons learned, or insights to MAMA's shared memory. **WHY USE THIS:** You are not just an AI assistant; you are a partner in this project. Your insights and reasoning are valuable assets. By saving them here, you allow future agents (including yourself in later sessions) to: 1. Understand *WHY* a decision was made (Reasoning), not just *WHAT* was done. 2. Avoid repeating the same mistakes (Lessons Learned). 3. Build a connected graph of knowledge. **WHEN TO USE (Be Proactive!):** - **Decisions**: Whenever you make a significant choice (e.g., "Use SQLite instead of JSON"), save it. Don't wait for the user to ask. If you thought hard about it, it's worth saving. - **Insights**: If you discover something new ("Ah, this library conflicts with that one"), save it. - **Requests**: If the user says "Remember this" or "Note that", use this tool immediately. **EXAMPLES:** ✓ User: "Let's use token bucket" → save(topic="rate_limiter", decision="Token bucket", reasoning="...") ✓ You discover: "Library X conflicts with Y" → save(topic="lib_conflict", decision="Avoid X+Y", reasoning="...") **LINKING:** When a past decision relates to this one (for example among similar_decisions), link it yourself; nothing is linked for you and the reasoning text is not parsed: - **links**: [{id, relation, reason}] with relation builds_on, refines, contradicts, debates, synthesizes or mentions, and the reason you judged. - **replaces**: [{id, reason}] for a decision this one replaces. **SCOPES & TEMPORAL:** - Use 'scopes' to isolate decisions per project/channel/user (e.g., [{"kind": "project", "id": "/my/app"}]) - Use 'event_date' (ISO 8601) to record when events actually happened vs. when they were saved **5-LAYER REASONING (CoT Guide):** Structure your reasoning with these layers for maximum value: 1. **Context**: What problem/situation prompted this decision? 2. **Evidence**: What proves this works? (tests, benchmarks, prior experience) 3. **Alternatives**: What other options were considered and why rejected? 4. **Risks**: Known limitations or failure modes 5. **Rationale**: Final reasoning that ties it all together **INSTRUCTIONS:** 1. **Search First**: Before saving, try to search for related past decisions. 2. **Link**: Name related decisions in links or replaces, each with its reason. 3. **Reasoning**: Explain your logic clearly so future agents can "empathize" with your decision.| Parameter | Type | Description |
|---|---|---|
| actors | array | Explicit registry person nodes and their roles. |
| alternatives | array | Alternative options considered but rejected (Tension layer). |
| confidence | number | Confidence score 0.0-1.0. Use 0.9 for high confidence, 0.8 for medium, 0.5 for experimental. Default: 0.5 |
| decision * | string | The decision made (e.g., 'Use JWT with refresh tokens'). Max 2000 characters. |
| event_date | string | ISO 8601 date when the event actually occurred (e.g., "2024-01-15"). If omitted, defaults to current time. Use this when recording decisions about past events. |
| evidence | array | Evidence supporting the decision (e.g., file paths, logs, metrics). |
| item | string | Explicit registry item node id for this record. |
| links | array | Decisions this one relates to, each with the relation and the reason. |
| outcome | string | Outcome status. Default: 'pending' |
| reasoning * | string | Why this decision was made. This is REQUIRED - never leave empty. Explain the context, alternatives considered, and rationale. Use English for better semantic search. Relations are not read from this text: name them in links or replaces. Max 5000 characters. |
| replaces | array | Decisions this one replaces, each with the reason. |
| risks | string | Potential risks or downsides (Tension layer). |
| scopes | array | Memory scopes for isolation. Decisions are stored per-scope. If omitted, decision is unscoped (global). Example: [{"kind": "project", "id": "/path/to/project"}] |
| topic * | string | Decision topic identifier (e.g., 'auth_strategy', 'mesh_detail_choice'). Use lowercase with underscores. Max 200 characters. |
| type | string | 'user_decision' if user explicitly decided, 'assistant_insight' if this is Claude's suggestion. Default: 'user_decision' |
searchSearch MAMA memory. Returns results ranked by semantic similarity. **With query** — Semantic search across decisions and checkpoints. Cross-lingual (Korean + English). Triggers: "뭐였더라", "what did we decide", making architectural choices, debugging. **Without query** — List recent items sorted by time. **Follow the record**: a result is the way in. Open a decision with get_decision to read its edges (what it builds on, replaces or contradicts, with the reasons) and follow them by id. A hit lists the records its stated links reach (links: id, topic, relation, reason, and corrected_by when a later link contradicts it); open the ones that matter with get_decision. A result that came through a link names the hit it came from (related_to), the relation (graph_source), the link's reason (edge_reason) and any later correction (edge_corrected_by). **Resume session**: type='checkpoint' without query → loads latest checkpoint with full context (narrative, links, next steps). Triggers: "이어서", "continue", "where were we", session start. **type parameter**: 'decision' (choices/lessons only), 'checkpoint' (session states / resume), 'all' (both, default). **scopes**: Filter by project/channel. Omit for global search. **limit**: Max results (default: 10).| Parameter | Type | Description |
|---|---|---|
| diagnostics | boolean | Return retrieval diagnostics for search quality inspection. |
| disableRecency | boolean | Disable recency weighting in search. |
| includeRelated | boolean | Include related graph-expanded results. |
| limit | number | Max results. Default: 10 |
| minLexicalSupport | boolean | Require lexical/entity/exact-topic confirmation. |
| query | string | Search query. Omit to list recent items. |
| scopes | array | Filter by scope. |
| strict | boolean | Shortcut for strict search mode. |
| strictness | string | Search quality mode. Default: 'recall'. |
| threshold | number | Minimum retrieval threshold. Omit for mode default. |
| topicPrefix | string | Restrict search to topics with this prefix. |
| type | string | Filter by type. Default: 'all' |
search_decisions_and_contractsSearch decisions and contracts for PreToolUse hook injection.| Parameter | Type | Description |
|---|---|---|
| contractLimit | number | Max contracts (default: 3). |
| decisionLimit | number | Max decisions (default: 5). |
| filePath | string | File path context. |
| query | string | Search query for decisions. |
| similarityThreshold | number | Similarity threshold (default: 0.7). |
| toolName | string | Tool name (Edit/Write/apply_patch). |
search_narrativeSearch decisions by query using semantic search. Returns narratives with 5-layer structure (topic, decision, reasoning, evidence, alternatives, risks) and related links. Supports depth-based link expansion and multiple output modes (full/summary/minimal). Use this when you need to find past decisions by semantic meaning, not exact topic match.| Parameter | Type | Description |
|---|---|---|
| depth | number | Link expansion depth (0=no links, 1=direct links only, 2=2-hop links). Default: 1 |
| limit | number | Maximum number of results to return. Default: 5 |
| mode | string | Output mode: full (all fields), summary (core fields + evidence), minimal (topic + decision only). Default: full |
| query * | string | Search query (e.g., 'authentication strategy', 'error handling approach'). Uses semantic search to find related decisions even if exact words don't match. |
| threshold | number | Minimum similarity threshold (0.0-1.0). Default: 0.7 |
suggest_decisionAuto-suggest relevant past decisions based on user's question. Uses semantic search to find decisions related to the current context. Returns null if no relevant decisions found. Supports multilingual queries (English, Korean, etc.). Use 'scopes' to filter by project/channel.| Parameter | Type | Description |
|---|---|---|
| disableRecency | boolean | Optional: Disable recency weighting entirely. Default: false |
| recencyDecay | number | Optional: Decay rate for recency over time. Default: 0.001 |
| recencyScale | number | Optional: Scale factor for recency scoring. Default: 0.7 |
| recencyWeight | number | Optional: How much to weight recency vs semantic similarity (0-1). Default: 0.3 (70% semantic, 30% recency). |
| scopes | array | Filter suggestions by scope. If omitted, searches all scopes. |
| userQuestion * | string | User's question or intent (e.g., 'How should I handle authentication?', 'What about mesh count?'). The tool will perform semantic search to find relevant past decisions. |
updateUpdate decision outcome after real-world validation. Triggers: "이거 안됐어", "this worked", days later when issues discovered. outcome: 'success', 'failed', 'partial' (case-insensitive). After failure → save a NEW decision with replaces [{id, reason}] naming the one it replaces (or links for a decision it builds on or debates); the reasoning text is not parsed.| Parameter | Type | Description |
|---|---|---|
| id * | string | Decision ID to update. |
| outcome * | string | 'success', 'failed', or 'partial' (case-insensitive). |
| reason | string | Why it succeeded/failed/was partial. Include evidence. |
update_outcomeUpdate decision outcome after real-world validation. **WHEN TO USE:** • Days/weeks later when issues are discovered → mark FAILED with reason • After production deployment confirms success → mark SUCCESS • After partial success with known limitations → mark PARTIAL with limitation **WHY IMPORTANT:** Tracks decision evolution - failure outcomes help future LLMs avoid same mistakes. TIP: If decision failed, save a new decision with same topic to supersede it. **OUTCOME TYPES (case-insensitive):** • SUCCESS / success: Decision worked as expected • FAILED / failed: Decision caused problems (provide failure_reason) • PARTIAL / partial: Decision partially worked (provide limitation) **EVIDENCE TYPES:** When providing failure_reason or limitation, consider including: • url: Link to documentation, PR, or external resource • file_path: Path to relevant code file • log_snippet: Relevant log output or error message • observation: Direct observation or user feedback • reasoning_ref: Reference to another decision's reasoning| Parameter | Type | Description |
|---|---|---|
| decisionId * | string | Decision ID to update (e.g., 'decision_auth_strategy_123456_abc'). Get this from recall_decision or list_decisions responses. |
| failure_reason | string | Why the decision failed (REQUIRED if outcome='FAILED'). Examples: 'Performance degraded under load', 'Security vulnerability found', 'User complaints about complexity'. Max 2000 characters. |
| limitation | string | What limitations were discovered (OPTIONAL for outcome='PARTIAL'). Examples: 'Works for most cases but fails with large datasets', 'Acceptable for MVP but needs optimization'. Max 2000 characters. |
| outcome * | string | Outcome status (case-insensitive): • 'SUCCESS' / 'success': Decision worked well in practice • 'FAILED' / 'failed': Decision caused problems (explain in failure_reason) • 'PARTIAL' / 'partial': Decision partially worked (explain in limitation) |
Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 2.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README