adm-mcp
A local stdio MCP server that gives coding agents a persistent, git-friendly memory of ADR-style decisions and machine-checkable constraints in .decisions/.
Record decisions/constraints (
record_decision): store title, context, decision, alternatives, consequences, status, tags, files/globs, tests, commits, requirements and supersedes linksSearch (
search_decisions): BM25 full-text search over records, filtered by type or status, active-only by defaultGet task context (
get_context_for_task): before starting work, pull in-scope active constraints and the most relevant decisions for a task description and/or file pathsSupersede (
supersede_decision): replace an old record with a new one, auto-marking itsupersededand cross-linking bothList constraints (
list_constraints): show active constraints, optionally only those whose scope covers a given pathCheck conflicts (
check_conflicts): test a proposed change (diff/plan/description plus touched files) against constraint rules —ok:falsemeans an accepted constraint is violated; also warns on rejected alternativesLink requirements (
link_requirement): attach SpecGate requirement ids (with optional validation), test files and commit SHAs to a recordRead resources:
adm://constraints/active(markdown) andadm://decisions/{id}(JSON)
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@adm-mcp what decisions and constraints apply to adding payment retries?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Moved: this project has been renamed to Alethea of Agents and now lives at https://github.com/fpavia111-creator/alethea.
Install the new package:
npm i @kurtfrancisco/alethea.agent-decision-memoryis deprecated and gets no further updates; the old commands, env vars and license keys still work in Alethea of Agents.
agent-decision-memory (adm)
Persistent decision and constraint memory for coding agents: a local stdio MCP server and CLI that store ADR-style decisions as git-friendly markdown, linked to SpecGate requirement ids, tests and commits.
Quickstart
Install (Node.js ≥ 20):
npm install -g agent-decision-memory # provides `adm` and `adm-mcp`Claude Code
claude mcp add decision-memory -- npx -y -p agent-decision-memory@0.1.0 adm-mcpCursor — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project). The same snippet works for Claude Desktop, VS Code and Windsurf:
{ "mcpServers": { "decision-memory": { "command": "npx", "args": ["-y", "-p", "agent-decision-memory@0.1.0", "adm-mcp"] } } }Restart the client and the tools appear. Full details below.
Coding agents forget what was decided between sessions. They bring back the library you removed last month, undo a trade-off nobody wrote down, and edit generated code. adm gives them a decision memory: a local stdio MCP server and a CLI that store ADR-style decisions and machine-checkable constraints as plain markdown in your repo's .decisions/ folder. Each record can be linked to SpecGate requirement ids, test files and commits.
Git-friendly storage. One markdown file per record, with JSON-valued frontmatter (valid YAML). Review it in PRs and edit it by hand.
No native dependencies. Search uses a pure-JS BM25 index, cached in
.decisions/.index.json(gitignored). The only runtime deps are@modelcontextprotocol/sdkandzod.Cross-platform. Node ≥ 20 on Windows, macOS and Linux. Paths are normalized, so
src\db\x.tsandsrc/db/x.tsmatch the same globs. No symlinks.
Related MCP server: horizon-ledger
Install (Windows PowerShell)
cd C:\path\to\agent-decision-memory
npm ci # uses the committed package-lock.json
npm run build # syntax check + import check
npm test
npm link # optional: puts `adm` and `adm-mcp` on PATHmacOS/Linux: run the same commands.
Register with Claude Code
claude mcp add decision-memory -- node C:\path\to\agent-decision-memory\bin\adm-mcp.jsThe server uses the current directory to find the repo: the nearest ancestor that has .decisions/ or .git/. To pin a repo, pass --root C:\repo or set $env:ADM_ROOT = "C:\repo". A generic MCP client config looks like this:
{ "mcpServers": { "decision-memory": { "command": "node", "args": ["C:/path/to/agent-decision-memory/bin/adm-mcp.js", "--root", "C:/repo"] } } }Install the skill
Copy the skill folder into your project (or into $HOME\.claude\skills to use it everywhere):
New-Item -ItemType Directory -Force .claude\skills | Out-Null
Copy-Item -Recurse C:\path\to\agent-decision-memory\skills\agent-decision-memory .claude\skills\The skill tells the agent to call get_context_for_task before it starts, check_conflicts before it commits, and record_decision, supersede_decision or link_requirement after the work. See the Claude Code skills docs: https://code.claude.com/docs/en/skills.
MCP surface
Tool | Purpose |
| Record a decision (or |
| BM25 search. Returns active records only unless |
| For task text and/or file paths: in-scope active constraints, the top decisions (file-scope matches boosted) and their requirement ids |
| Write a replacement record. The old one becomes |
| Active constraints, optionally filtered to those whose scope covers a path |
| Check a proposed change (text or diff plus files) against constraint rules. |
| Attach SpecGate ids, test files and commit SHAs. Ids are checked against |
Resources: adm://constraints/active (markdown) and adm://decisions/{id} (JSON).
Constraint rules
forbid: axios (whole word, case-insensitive), forbid: /eval\(/ (regex), require: @req (the change text must contain it), and forbid-path: src/generated/** (glob on the touched files). A constraint applies only to its files scope; with no scope it covers the whole repo. A proposed constraint produces warnings. An accepted one produces errors.
CLI
adm init
adm record --title "Use date-fns" --decision "parseISO/format, ISO strings" --alternative "Moment.js: deprecated" --file "src/todos/**" --req todos/due-date
adm record --type constraint --title "No moment.js" --decision "bundle size" --rule "forbid: moment" --file "src/**"
adm context --task "validate due date" --file src/todos/create.ts
adm check --change-file .\my.diff --file src/todos/create.ts # exit code 1 on a violation (CI-friendly)
adm supersede D-0001 --title "Use Fastify" --decision "..."
adm link D-0002 --req todos/due-date#invalid-date-rejected --commit 1a2b3c4 --test test/todos.test.ts
adm search "http server" --all
adm import --dir docs/adr # Nygard (adr-tools) and MADR formats; idempotent
adm export --format json --out decisions.json # or markdown
adm serve # same as adm-mcpEvery command also takes --json and --root <dir>. Run npm run demo to see an end-to-end run: it records with the CLI and queries through a real MCP client over stdio.
Record format
---
id: "D-0002"
type: "decision"
title: "Use date-fns for dates"
status: "accepted"
date: "2026-10-15"
tags: ["dates"]
requirements: ["todos/due-date"]
files: ["src/todos/**"]
tests: []
commits: []
---
# D-0002: Use date-fns for dates
## Context
## Decision
## Alternatives
## ConsequencesStatuses: proposed, accepted, superseded, deprecated and rejected. Only proposed and accepted count as active. Supersession adds supersedes and superseded_by links.
SpecGate links
Requirement ids use the SpecGate 0.3 format: ### Requirement: Due date in openspec/specs/todos/spec.md becomes todos/due-date, and scenarios become todos/due-date#invalid-date-rejected. link_requirement reads openspec/specs/*/spec.md and openspec/changes/*/specs/*/spec.md. An unknown id is still linked, but you get a warning.
How it compares
Project | What it stores | Difference |
Knowledge graph of code structure | Indexes code, not the reasons behind it | |
Issue/task graph for agents | Tracks work items, not decisions or constraints | |
General AI memory (graph + vectors) | General-purpose, and needs a heavier stack | |
Temporal knowledge graphs | Needs a graph DB. Raw facts, no ADR structure | |
Entity/relation notes in a JSON file | Unstructured notes, no rules or conflict checks | |
User/agent memories | Personalization memory, not repo decisions | |
ADR markdown | Human-facing. No agent API, search or rule checks. |
Limitations
Conflict detection uses keyword, regex and glob rules. It does not understand meaning, so a rule like
forbid: momentwill not catch a paraphrase, and the rejected-alternative warning is a heuristic based on the alternative's name.BM25 is lexical (with light stemming). There are no embeddings, so synonyms are not matched.
IDs are allocated per machine (
max + 1). If two branches each record a decision, both can get the same number. Rename one by hand when you merge.The index is rebuilt in memory whenever any file's size or mtime changes. That is fine for hundreds of records but not tuned for tens of thousands.
License
MIT © 2026 Kurt Francisco
Contributing
Issues and pull requests are welcome at https://github.com/fpavia111-creator/agent-decision-memory. See CONTRIBUTING.md.
Available Tools
7 toolscheck_conflictsCheck conflictsA
Check a proposed change (diff, plan or description, plus touched files) against active constraint rules. ok=false means an accepted constraint is violated.
Inputs: change (required), files.
get_context_for_taskGet context for taskA
Call BEFORE starting work. Returns active constraints in scope and the most relevant decisions for a task description and/or file paths.
Inputs: path, task, limit, paths.
link_requirementLink requirement/tests/commitsC
Link a decision to SpecGate requirement ids (capability/requirement[#scenario]), test files and/or commits.
Inputs: id (required), files, tests, commits, +2 more.
list_constraintsList constraintsC
List active constraints, optionally only those whose scope covers a path.
Inputs: path, include_inactive.
record_decisionRecord decision or constraintB
Record an ADR-style decision (or a constraint with type="constraint") into .decisions/. Call after making a non-obvious choice.
Inputs: title (required), tags, type, files, +10 more.
search_decisionsSearch decisionsA
BM25 search across decisions and constraints. Active (accepted/proposed) only unless include_inactive or status is set.
Inputs: query (required), type, limit, status, +1 more.
supersede_decisionSupersede decisionB
Replace an existing decision/constraint with a new one. The old record is marked superseded and both are cross-linked.
Inputs: id (required), title (required), tags, files, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct purposes: record vs. supersede, search vs. conflict checking, and linking requirements. Minor overlap exists because list_constraints covers a subset of what search_decisions can return, and get_context_for_task also surfaces constraints, so an agent may occasionally hesitate between lookup and context tools.
All seven tools use consistent snake_case and are verb-first (record_decision, search_decisions, get_context_for_task, list_constraints, supersede_decision, check_conflicts, link_requirement). The pattern is predictable and none of the names are misleading.
Seven tools is well within the ideal 3–15 range for a decision and constraint management server. Each tool maps to a distinct operation, and none feels padded or redundant.
The surface covers the core ADR/constraint lifecycle: record, search, context retrieval, supersede, conflict checking, and requirement linking. Minor gaps exist, such as no direct get-by-id or delete/unlink operation, but supersede and search largely compensate for these.
Related MCP Connectors
Spec-driven delivery: plans, solutions, ADRs, UX docs, tasks, rules and skills for AI agents.
Versioned memory for agents: markdown docs with history, safe concurrent commits, human claim links.
One memory for every AI you work with: your rules, notes and decisions in your own Git repo.
Your coding agent asks the business logic of your repository and checks commits before they land
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to store and retrieve design decisions as Markdown in git repositories, and check new proposals against historical decisions via MCP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to read and manage a Git-native decision ledger, providing tools for querying decisions, evidence, cross-repository workspaces, validation, and commit tracing, all operating locally and without a cloud service.MIT

Tently MCPofficial
AlicenseNot gradedqualityBmaintenanceEnables coding agents such as Claude Code and Cursor to check a team's learned decisions from pull requests, reviews, and docs before writing code, showing whether breaking them is blocking or advisory. It also provides locally computed symbol impact/blast-radius analysis so source code never leaves the machine.45 npm2MIT- AlicenseBqualityBmaintenanceEnables coding agents to persist and retrieve ADR-style decisions and machine-checkable constraints as git-friendly markdown in a repository, linked to requirement ids, tests and commits. Agents can pull relevant context before a task, check a proposed change against accepted constraints before committing, and record, supersede or search decisions over a local stdio connection.710 npmMIT