
cert-review
io.github.RaminNietzsche由 GitHub 账号 RaminNietzsche 发布v1.2.0更新于 Nov 21, 2026
SEI CERT C/C++ code review: rule lookup, clang-tidy and cppcheck findings mapped to CERT rules
发布方自己的服务:Review Expert
概览
本地 MCP 服务器,用于 SEI CERT C/C++ 代码审查:规则查询,以及将 clang-tidy、cppcheck、Semgrep 结果映射到 CERT 规则编号。
- 可以做什么
- 查询、搜索并按标准、语言、类别、等级和覆盖度筛选 CERT C/C++ 规则与建议,含示例、风险行、CWE 标签
- 对文件、目录或 diff 变更行运行 clang-tidy、Clang 静态分析器、cppcheck 和内置 Semgrep 规则,可选基线过滤
- 解释单条发现:对应规则、最接近的合规/不合规示例对及修复步骤
- 生成审查包(代码片段与候选规则文本),并校验发现必须引用真实规则编号和原文引用
- 将发现格式化为 markdown、GitHub、GitLab、SARIF 或 Code Quality 输出
- 适用场景
- 需要按 SEI CERT、MISRA C:2012、MISRA C++:2023 或 AUTOSAR C++14 审查 C/C++ 改动,并希望分析器结果对应到具体规则编号时使用。适合 Ceph 项目(内置专用配置),也适合为人工或 LLM 辅助审查提供规则依据。
- 运行要求
- 以本地 stdio 进程运行,通常使用已发布的 Docker 镜像,或 Python 3.11+ 的源码检出并安装 mcp SDK。Docker 镜像已内置 clang-tidy、cppcheck、Semgrep;本地安装需自行准备。可靠解析通常需要 compile_commands.json。可选环境变量 CERT_REVIEW_HOME 及已授权的 MISRA/AUTOSAR 文本路径。
安装
在 SourceWeft 中
- 打开 控制台中的 cert-review,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
cert-review-mcp
[cert-review MCP server – quality and maintenance score on Glama]
SEI CERT C and C++ code review as an MCP server, a CLI and two review skills, tuned for Ceph, with the same tools for MISRA C:2012, MISRA C++:2023 and AUTOSAR C++14 (docs/misra-autosar.md).
It does three things:
- Knows the standards.
data/rules.jsonholds every rule and recommendation of the SEI CERT C standard (122 rules, 183 recommendations) and every rule of the SEI CERT C++ standard (83 rules), with paired noncompliant/compliant examples, the risk row (severity, likelihood, detectable, repairable, priority, level), CWE tags and the automated-detection tables. It is built reproducibly from a pinned upstream commit and checked against the standards' own index pages. - Runs real analyzers and maps them to rule IDs. clang-tidy (
cert-*and mapped checks), the Clang Static Analyzer, cppcheck and 40 bundled Semgrep rules for INT, EXP, MEM, CON and other CERT rules; optionally Infer and the CodeQL CERT query packs (docs/analyzers.md). Findings are normalised to one schema, de-duplicated, filtered by a profile, and optionally limited to changed lines. - Prepares the rest for a manual review layer without letting it make things up. For rules
no checker covers,
build_review_packetselects code hunks and the few rule texts worth reading;validate_findingsrejects any finding that does not cite an existing rule ID and quote that rule's text. - Speaks MISRA and AUTOSAR too. A
standardfilter on every rule tool and astandardsselection for the checks (default: CERT only). Findings map to MISRA C:2012 (cppcheck MISRA addon), MISRA C++:2023 and AUTOSAR C++14 IDs. Their copyrighted texts are not bundled; you can load your licensed copy. See MISRA and AUTOSAR.
Comments are only drafted and formatted. Nothing is ever posted to GitHub or GitLab by this project.
Not an official CERT or CMU product. See NOTICE for attribution (CC BY 4.0 text, MIT examples) and the pinned source commit.
Architecture
[Architecture: data built by tools/, the engine in src/cert_review, and the MCP and CLI front ends]
The diagram source is in docs/architecture.md.
Coverage
Each rule is deterministic (a rule-specific checker exists: a clang-tidy cert-* check or a
CodeQL CERT query), partial (only general checkers or the bundled Semgrep pattern rules map)
or llm-only (no checker). The reference toolchain is what the Docker images run:
clang-tidy/clang 19.1.7, cppcheck 2.17.1 and Semgrep 1.186.0 with the bundled rules. The
extended toolchain adds Infer 1.3.0 and CodeQL 2.27 with the CERT packs 2.63.0, which are
optional and not in the images.
Before the Semgrep rules, the reference toolchain covered C rules 16 / 34 / 72 and C++ rules 18 / 29 / 36. A mapped checker is not a detection guarantee; the measured numbers follow.
MISRA C:2012 221 guidelines (131 / 28 / 62), MISRA C++:2023 178 (4 / 31 / 143), AUTOSAR C++14 397 (5 / 51 / 341); details and measurements in docs/misra-autosar.md.
Measured precision and recall on the CERT examples: docs/accuracy.md. Rule counts versus the official index pages: docs/rule-counts.md. Results on a real Ceph subtree: docs/ceph-trial.md.
Recall on real security fixes (Ceph CVEs and memory-safety fixes, curl, libtiff and others): docs/benchmark-real.md.
Install
The package reads data/ and profiles/ from the checkout (set CERT_REVIEW_HOME to point
elsewhere). Python 3.11+; works with the official mcp SDK 1.x (FastMCP, 1.15 or later) and 2.x (MCPServer).
Cursor
.cursor/mcp.json in your project (or ~/.cursor/mcp.json):
Then ask: "Use the cert-review ceph_review prompt on my current diff." Copy skills/ into your
skills folder to make the review procedure available.
Docker
Dockerfile.mcp builds the MCP server with the analyzers included (no local clang or
cppcheck needed). Mount your project at the same absolute path it has on the host:
The same mcpServers block works in Claude Desktop and Cursor. Release tags also publish
multi-arch images (amd64, arm64) to Docker Hub as
raminnietzsche/cert-review-mcp;
use raminnietzsche/cert-review-mcp:latest instead of cert-review-mcp to skip the build.
Details, the CLI from the image, and a tools/list check: docs/docker.md.
MCP Registry
The server is listed in the official MCP Registry
as io.github.RaminNietzsche/cert-review-mcp (server.json), so clients that read
the registry can install the Docker image from there.
Claude Code
Use as a GitHub Action
Diff mode on pull requests, SARIF, a job summary, and optional inline review comments
(review-comments: "true", off by default). A GitLab include template publishes Code Quality
and SAST reports. Inputs, outputs and examples: docs/action.md,
examples/github-workflow.yml.
MCP tools
Every tool is read-only: it reads local files and bundled data and runs local analyzers.
Nothing is written, uploaded or posted. All tools declare MCP annotations, a title and,
except format_findings, an output schema.
For check_diff and build_review_packet with pasted diff_text, files that are missing on
the MCP host are reconstructed from the patch under repo (the directory is created when needed).
On remote servers that cannot see your checkout, pass the unified diff and a logical root path
(for example /workspace/ceph); omit repo to use a disposable tree under the system temp
directory.
check_files and check_diff take an optional baseline_path: findings recorded in a
baseline file are hidden and counted (new, baselined, fixed). See docs/baseline.md.
MCP tool and parameter names changed after the v1 release; see CHANGELOG.md.
standard accepts cert (default), cert-c, cert-cpp, misra, misra-c-2012,
misra-cpp-2023, autosar, autosar-cpp14 or all.
Resources: rule://EXP34-C, profile://ceph. Prompts: cert_review, ceph_review.
CLI
--fail-on error|warning|note sets the exit code for CI; with --baseline only new findings count. Silence one rule on a line with
// cert-review: ignore EXP34-C reason.
Profiles
profiles/default.yaml is plain CERT. profiles/ceph.yaml encodes Ceph: C++23/C11,
priority and severity per rule, suppressions with reasons (ceph_assert, dout, crimson,
tests, vendored trees), and idioms (bufferlist, ceph::mutex, RefCountedObject, errno
returns, asio/seastar callbacks) that tell the reviewer how each project construct
changes a rule. Evidence for each idiom is cited inside the file.
profiles/misra.yaml and profiles/autosar.yaml select MISRA C:2012 + MISRA C++:2023 and
AUTOSAR C++14 (standards:), with severity taken from the guideline classification.
MISRA and AUTOSAR
The MISRA and AUTOSAR documents are copyrighted, so none of their guideline text is
included: only IDs, classification, AUTOSAR enforcement and target, checker mappings,
public SEI CERT cross-references and one-line summaries written for this project
(labelled as paraphrases). Point CERT_REVIEW_MISRA_C_TEXTS, CERT_REVIEW_MISRA_CPP_TEXTS,
CERT_REVIEW_AUTOSAR_TEXTS or a profile's rule_texts: at your licensed copy to see the
official headlines and to have validate_findings check quotes against them. Without it,
MISRA/AUTOSAR findings are accepted on a valid rule ID (grounding: "rule-id-only").
Mapping sources, measured results and file formats: docs/misra-autosar.md.
Rebuilding the data
Limitations
- Static coverage is thin by nature: most CERT rules are not decidable by tools; the
llm-onlyandpartialrules depend on the review layer and on a human. - Tools need compilable code. Without
compile_commands.jsonmany files do not parse and checks are skipped. The engine reports this instead of "no findings": the tool status becomespartial, the markdown, SARIF (executionSuccessful: falseplus atoolExecutionNotificationswarning), GitHub review, Action summary and CLI output carry a warning, and--fail-on-parse-error(alias--fail-on-partial; Action inputfail-on-parse-error) turns it into a failing exit code. A file on which an analyzer hits its 300 s timeout is treated the same way. - Ceph needs Linux. Its sources include Linux-only headers (
linux/version.h, ...) and Linux-only Boost.Asio features, so e.g.src/rgw/radosgw-admin/radosgw-admin.cccannot be parsed on macOS even with the SDK sysroot and Homebrew Boost. Analyse Ceph on Linux, with the Docker image, or with the GitHub Action.tools/ceph_compdb.pyadds-isysrooton macOS, which is enough for some directories (src/common) but not for all of them. - Mappings come from CodeChecker labels and clang-tidy aliases plus a small curated overlay; general analyzers can map to several rules, so the engine keeps the best few per line.
- Most MISRA C++ and AUTOSAR guidelines have no open-source checker; MISRA C coverage
depends on cppcheck's MISRA addon (needs
python3). - Ceph's profile is based on reading the code and on a limited trial, not on a full build.
License
Code: Apache-2.0 (LICENSE). Bundled CERT content: CC BY 4.0 (text) and MIT (examples); see NOTICE. MISRA and AUTOSAR: facts and original summaries only, no guideline text; see NOTICE and docs/misra-autosar.md.
来源:README.md,提交 63b3a81
工具
0版本历史
1- v1.2.0最新Nov 21, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Review 集成

Review Expert
expert.review官方发布者
远程 MCP 服务器,经 OAuth 登录后让助手读取、搜索和分析 App Store 与 Google Play 评论,并起草回复。

Trustpilot Review Alerts
由 GitHub 账号 Berrkaydev 发布
一个托管在 Apify 上的远程 MCP 服务器,让助手按公司设置 Trustpilot 新评价、商家回复和评分变化的提醒。

Service isolation hardening review — Atom
org.aimlds
Service isolation hardening review — Atom 的托管 MCP 服务,由 aimlds.org 发布;需要凭据;Streamable HTTP。

Semantic html review — Atom
org.aimlds
Semantic html review — Atom 的托管 MCP 服务,由 aimlds.org 发布;需要凭据;Streamable HTTP。

Process waste review coaching — Atom
org.aimlds
Process waste review coaching — Atom 的托管 MCP 服务,由 aimlds.org 发布;需要凭据;Streamable HTTP。