ADR Guard

io.github.rodri-oliveira-dev由 GitHub 账号 rodri-oliveira-dev 发布v1.0.1更新于 Nov 5, 2026

Read, search, validate, and analyze Architecture Decision Records.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地只读 MCP 服务器,让助手列出、读取、搜索、校验并分析代码仓库中的架构决策记录(ADR)。

可以做什么
  • 列出并读取仓库 ADR 目录中的决策记录
  • 搜索 ADR 并查看记录之间的关系
  • 校验 ADR 并分析决策的影响范围
  • 验证架构漂移,包括基于提交的证据
  • 所有工具均为只读,路径以仓库为基准
适用场景
适用于仓库中维护架构决策记录、希望助手在开发过程中查阅、交叉核对或校验这些记录的场景,也适合检查代码是否偏离已记录的决策。
运行要求
需在本地安装 .NET 10 运行时,通过 NuGet 全局或本地工具清单安装,启动时传入仓库路径和可选的 ADR 目录。影响分析与基于提交的漂移证据还需主机上安装 Git。无需凭据,也不提供网络传输。
安装前请注意
仓库根目录在启动时固定,所有工具均为只读,不会写入或批准任何内容。返回的 ADR 文本应视为不可信内容。它不会批准架构决策,也不会把建议性证据当作合规结论,因此结果仍需人工判断。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ADR Guard,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ADR Guard MCP server

ADR Guard MCP is a local, read-only adapter that gives compatible Model Context Protocol clients structured access to ADR discovery, validation, impact analysis, and architectural drift verification. It reuses the authoritative ADR Guard domain implementation; it does not approve architectural decisions or turn advisory evidence into compliance.

Publication status: version 1.0.0 is published on NuGet.org, in the dedicated mcp/v1.0.0 GitHub Release, and in the MCP Registry. Version 1.0.1 is an unpublished release candidate that directly references the internal AdrGuard.Core assembly while preserving the seven tools and schema 1.0 contracts. GitHub Packages is an optional authenticated secondary channel whose 1.0.0 backfill remains a separate manual step.

Install and run

Install the published framework-dependent .NET 10 tool from NuGet.org:

shell
dotnet tool install --global RodriOliveira.AdrGuard.Mcp --version 1.0.0adr-guard-mcp --repository /absolute/path/to/repository --adr-directory docs/adr

For a repository-local tool manifest:

shell
dotnet new tool-manifestdotnet tool install --local RodriOliveira.AdrGuard.Mcp --version 1.0.0dotnet tool run adr-guard-mcp -- --repository /absolute/path/to/repository --adr-directory docs/adr

For local development after a Release build, configure an MCP client to run:

text
dotnet src/AdrGuard.Mcp/bin/Release/net10.0/adr-guard-mcp.dll --repository <repository> [--adr-directory <relative-path>]

Tools and boundaries

The server exposes list_adrs, get_adr, search_adrs, get_adr_relationships, validate_adrs, analyze_impact, and verify_architecture over stdio. Its process stdout is reserved for MCP messages; operational logging is written to stderr. The repository root is fixed at startup, all tools are read-only, and paths accepted by tools are repository-relative.

Candidate packages contain adr-guard-mcp plus the internal, non-packable AdrGuard.Core.dll; they do not contain or depend on the adr-guard CLI executable. Core has no independent package, tag, or release stream.

Optional startup argument --timeout-seconds accepts values from 1 through 300 and defaults to 30 seconds.

The tool requires the .NET 10 runtime. Impact analysis and commit-aware drift evidence also require Git on the server host. It does not expose network transport, write tools, automatic installation, provider credentials, autonomous approval, or execution of workspace scripts. Clients must treat returned ADR text as untrusted content.

See the bilingual MCP overview, configuration, tool contracts, and security model for complete configuration, security, and publication-status guidance.

来源:src/AdrGuard.Mcp/README.md,提交 c60c878

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

2
  1. v1.0.1最新Nov 5, 2026
  2. v1.0.0Oct 17, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分