HUB
Sign inSign up

raminnietzsche/cert-review-mcp

By raminnietzsche

•Updated about 3 hours ago

MCP server that reviews C/C++ code against SEI CERT rules with clang-tidy and cppcheck

Image
0

391

raminnietzsche/cert-review-mcp repository overview

⁠cert-review-mcp

An MCP server that reviews C and C++ code against the SEI CERT C and C++ coding standards. It runs clang-tidy and cppcheck, maps their findings to CERT rules, and gives MCP clients tools to look up rules, check files or a diff, and build a review packet.

Source, documentation and changelog: github.com/RaminNietzsche/cert-review-mcp⁠

⁠What is in the image

  • cert-review-mcp, the MCP server over stdio (the entrypoint)
  • the cert-review CLI
  • clang 19, clang-tidy 19 and cppcheck

Platforms: linux/amd64, linux/arm64. Tags: latest and one per release, such as 1.1.1.

⁠Tools

All tools are read-only and never write to the project.

ToolWhat it does
list_rulesList CERT rules, filtered by language, category, kind, level or coverage
get_ruleFull details for one rule, such as EXP33-C
search_rulesSearch rule titles and text
check_filesRun the analyzers on files and return CERT-mapped findings
check_diffSame, limited to lines changed in a git diff
build_review_packetDiff plus the rules worth checking by hand, for a reviewer
validate_findingsCheck findings against the rule catalog
get_rule_coverageCount rules by how they can be checked
format_findingsRender findings as Markdown, GitHub or GitLab review comments, SARIF or Code Quality JSON

⁠Use it from an MCP client

Mount the project at the same absolute path inside the container, because the tools take host paths:

{
  "mcpServers": {
    "cert-review": {
      "command": "docker",
      "args": ["run", "-i", "--rm",
               "-v", "/home/me/proj:/home/me/proj:ro",
               "raminnietzsche/cert-review-mcp:latest"]
    }
  }
}

Claude Code:

claude mcp add cert-review -- docker run -i --rm -v "$PWD:$PWD:ro" raminnietzsche/cert-review-mcp:latest

Keep -i and do not add -t; a TTY corrupts the JSON-RPC stream. A compile_commands.json must be visible at the path it names, and its include paths must exist in the container.

⁠Use the CLI

docker run --rm -v "$PWD:$PWD" -w "$PWD" --entrypoint cert-review \
  raminnietzsche/cert-review-mcp:latest \
  diff --repo "$PWD" --base origin/main --format markdown

More: Docker guide⁠.

License: Apache-2.0.

Tag summary

Content type

Image

Digest

sha256:081ff49f1…

Size

248 MB

Last updated

about 3 hours ago

docker pull raminnietzsche/cert-review-mcp