Ai Codereview Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Ai Codereview Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
一个基于 Model Context Protocol (MCP) 的代码审查工具服务器,提供多维度的代码审查和打分功能。
review_code构建用于代码整体审查与打分的 LLM 提示词
参数:
code (string, 必需): 待审查的代码文本style (enum, 可选): 审查风格 - professional | sarcastic | gentle | humorouscommitMessage (string, 可选): 提交信息review_diff构建用于 Git diff 变更审查与打分的 LLM 提示词
参数:
diff (string, 必需): git diff 内容style (enum, 可选): 审查风格commitMessage (string, 可选): 提交信息review_file构建用于单文件审查与打分的 LLM 提示词
参数:
filePath (string, 必需): 文件路径content (string, 必需): 文件内容style (enum, 可选): 审查风格commitMessage (string, 可选): 提交信息parse_review_score从审查文本中解析评分(提取 '总分:XX分' 格式)
参数:
reviewText (string, 必需): 审查文本,应包含 '总分:XX分' 格式的评分npm install -g lebo-ai-codereview-mcpnpm install lebo-ai-codereview-mcpgit clone <repository-url>
cd ai-codereview-mcp
npm install
npm run build~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"ai-codereview": {
"command": "npx",
"args": [
"-y",
"lebo-ai-codereview-mcp"
]
}
}
}或者如果已全局安装:
{
"mcpServers": {
"ai-codereview": {
"command": "lebo-ai-codereview-mcp"
}
}
}如果从本地路径安装:
{
"mcpServers": {
"ai-codereview": {
"command": "node",
"args": [
"/path/to/ai-codereview-mcp/dist/index.js"
]
}
}
}npm run devnpx @modelcontextprotocol/inspectorhttp://localhost:3000/mcp详细说明请查看 DEBUG.md
可以通过 .env 文件配置环境变量:
PORT=3000或者在启动时设置:
PORT=8080 npm run dev# 安装依赖
npm install
# 构建项目
npm run build
# 开发模式(支持 Inspector)
npm run dev
# 监听模式构建
npm run watchai-codereview-mcp/
├── src/
│ ├── index.ts # 主入口(Stdio 模式,用于生产)
│ ├── dev-server.ts # 开发服务器(HTTP 模式,用于调试)
│ ├── prompts.ts # 提示词生成逻辑
│ ├── parser.ts # 评分解析逻辑
│ ├── types.ts # TypeScript 类型定义
│ └── tools/ # MCP 工具实现
│ ├── review-code.ts
│ ├── review-diff.ts
│ ├── review-file.ts
│ └── parse-score.ts
├── dist/ # 编译输出
├── scripts/
│ └── post-build.js # 构建后处理脚本
├── package.json
└── README.mdMIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.