
AdrMcp
io.github.Atypical-Consulting由 GitHub 帳號 Atypical-Consulting 發布v0.2.1更新於 Oct 24, 2026
MCP server for Architectural Decision Records: navigate, author, validate, link, and analyze them.
概覽
一個本機 MCP 伺服器,把 Markdown 架構決策記錄(ADR)資料夾變成助理可搜尋、撰寫、驗證、連結與分析的工具。
- 可以做什麼
- 列出、讀取、搜尋與建立 ADR 索引,包含決策時間軸、詞法或語意搜尋,以及比較兩份記錄或檔案與其標準呈現的差異。依 MADR 或 Nygard 範本建立 ADR、更新單一章節、變更狀態、取代舊決策、建立記錄間連結並重新產生 README 索引。透過相關 ADR 查詢與具型別的關係圖探索記錄之間的關聯。驗證 MADR 合規性、偵測相互衝突的決策、標記失效的程式碼參照並依架構領域報告涵蓋缺口。依統一 diff 起草 ADR 提案。
- 適用情境
- 適用於儲存庫以 Markdown ADR 保存架構決策,並希望助理就這些記錄回答問題、起草與審閱新記錄,或在保留歷史的前提下廢止與取代舊決策的情境。也適合找出過期、衝突或缺少的決策。
- 執行需求
- 以 .NET 工具(dotnet tool install -g AdrMcp)或搭配 .NET SDK 從原始碼在本機透過 stdio 執行,也可使用 Docker 映像。透過 --adr-root 與 --repo-root 參數或 ADR_ROOT、ADR_REPO_ROOT 環境變數指定 ADR 根目錄(預設 docs/adr)與儲存庫根目錄。未宣告驗證或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 AdrMcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
AdrMcp
Table of Contents
- Features
- The problem
- The solution
- Storage & format
- Tools
- Configuration
- Run
- Usage
- Claude skills
- Develop
- Continuous integration
- Project layout
- Tech Stack
- Roadmap
- Contributing
Getting Started
Prerequisites
Run
Every architectural decision, on the record — an MCP server that turns a folder of Markdown ADRs into live tools your AI agent can use: search, author, validate, link, and trace decisions.
[CI] [NuGet] [License: MIT] [.NET 10] [MCP server]
🌐 atypical-consulting.github.io/AdrMcp
[AdrMcp — Every architectural decision, on the record]
Features
- Read & search ADRs —
list_adrs,get_adr,search_adrs(lexical or semantic), andget_adr_indexfor the full decision timeline. - Author from a template —
create_adrdrafts MADR- or Nygard-format ADRs;update_adrreplaces or appends a single section. - Lifecycle-aware transitions —
set_statusenforces the ADR lifecycle;supersede_adrcreates the replacement and marks/links the old one superseded in a single call. - Relationship graph & staleness detection —
find_related_adrs/get_adr_graphexpose links and supersession chains;find_stale_adrsflags ADRs whosecode_refsno longer resolve in the codebase. - Conflict & coverage analysis —
detect_conflictssurfaces contradictory accepted decisions;coverage_reporthighlights ADR coverage gaps by architectural area. - Preview-by-default writes — every mutating tool defaults to
previewOnly: trueand returns a unified diff before anything touches disk. - Ships as a dotnet tool, NuGet package, and Docker image, plus three bundled Claude Code skills (
adr-author,adr-review,adr-supersede) for the judgment layer on top of the raw tools.
The problem
Architectural decisions get made in Slack threads, PR comments, and someone's head — then the
reasoning evaporates. Months later a teammate asks "why is it done this way?", nobody remembers, and
the decision gets silently re-litigated or accidentally reversed. ADRs fix that — if they're
written and kept honest. But a folder of Markdown files is inert: you can't ask it what's still
accepted, trace what superseded what, or notice a decision that no longer matches the code.
It's worse with AI coding agents: the one collaborator that could keep decisions current has no way to read, write, or reason about them.
The solution
AdrMcp makes that folder a live surface any MCP client can work. It gives your agent tools to list and search decisions, draft new ones from a MADR template, validate structure and links, supersede a decision while preserving its history, and flag stale or conflicting ones — all preview-by-default, so nothing is written without you seeing the diff.
The records stay plain Markdown in git; AdrMcp adds the tools. Built as a .NET 10 stdio MCP server,
architecturally modeled on RoselineMCP —
layered Tools → Services, [McpServerTool] attributes, shipped as a dotnet tool + Docker image.
Storage & format
ADRs are markdown files under an ADR root (default docs/adr/), one file per decision named
NNNN-kebab-title.md, using MADR 4.0 frontmatter + sections:
Everything is git-native, human-readable, and diff-able — no database.
Tools
Writes are preview-by-default. Every mutating tool takes previewOnly (default true) and
returns a unified diff of the intended change; pass previewOnly=false to write to disk.
Configuration
Resolved in order: CLI arg → env var → default.
Code-linking is provider-based
find_stale_adrs resolves code_refs through an ICodeLinkProvider. The default
FileSystemCodeLinkProvider is language-agnostic (a ref resolves if the file exists and, when a
symbol is given, that symbol's text is present). A Roslyn (.NET) or codebase-memory provider can be
plugged in behind the same interface — deep symbol resolution stays the client's job.
Run
MCP client config
Docker
Usage
Once adr-mcp is registered as an MCP server, an agent calls its tools directly. A typical
read-then-write flow:
Claude skills
Three project skills under .claude/skills/ add the judgment/workflow layer on top of the
MCP tools (the server provides the mechanics; the skills provide the craft). They activate
automatically in Claude Code when the connected AdrMcp server is available:
Develop
Continuous integration
CI/CD runs on GitHub Actions, modeled on RoselineMCP:
Releases are automated with release-please: merge the release PR it opens to ship. See PUBLISH.md.
Project layout
Tech Stack
- .NET 10
- ModelContextProtocol
- xunit
- xunit.runner.visualstudio
- DiffPlex
- Markdig
- Microsoft.Extensions.Hosting
- YamlDotNet
Roadmap
- Real embedding-backed semantic search for
search_adrs/detect_conflicts(beyond term-vector similarity) - Roslyn-based
ICodeLinkProviderfor deep C# symbol resolution infind_stale_adrs - Additional ADR templates beyond MADR/Nygard (e.g. Y-statements)
- Editor extension (VS Code / JetBrains) to browse and visualize the decision graph
- Broaden the CI coverage gate and publish to additional package registries
See the open issues for details and to propose new ideas.
Atypical MCP servers
Part of a suite of Model Context Protocol servers by Atypical Consulting:
- RoselineMCP — Roslyn code intelligence for AI agents
- ASTral — structured code retrieval (tree-sitter)
- AdrMcp — Architecture Decision Records over MCP
- MarkdownInk — Markdown rendering for the terminal
Contributing
Contributions are welcome. Open an issue first to discuss any significant change.
- Fork the repository and create your branch (
git checkout -b feat/my-feature) - Commit your changes (
git commit -m 'feat: ...') - Push the branch and open a Pull Request
Built by Atypical Consulting. We also make NuGetKeep, a self-hosted NuGet server with supply-chain quarantine.
來源:README.md,提交 1f104ab
工具
0版本歷史
1- v0.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分