feat: add review-first code review workflow
队伍:原启
原启
项目名称:MuXiReview MCP:基于沐曦算力的代码审查 Skill / MCP 服务
MuXiReview MCP:基于沐曦算力的代码审查 Skill / MCP 服务
项目简介:MuXiReview MCP 面向开发者代码审查场景,基于沐曦算力环境中的 OpenAI 兼容大模型服务,对 git diff / patch 进行结构化审查,输出缺陷风险、回归隐患和测试建议。项目提供 CLI、HTTP API、MCP 三种使用方式,方便直接集成到 Codex、Claude Code、OpenClaw 等工具链。
MuXiReview MCP
git diff / patch
CLI
HTTP API
MCP
bug
回归风险
边界条件遗漏
缺失测试
review
git diff
review_patch
review_repo_diff
logs/muxibench.jsonl
reports/review-sample.json
reports/review-sample.md
保留辅助能力:
health-check
chat
benchmark
compare
OpenAI Chat Completions
https://api.moark.com/v1
DeepSeek-V4-Flash
环境变量示例:
export MUXI_API_BASE_URL="https://api.moark.com/v1" export MUXI_API_KEY="your-real-api-key" export MUXI_MODEL="DeepSeek-V4-Flash" export MUXI_REQUEST_TIMEOUT="60"
审查 patch 文件:
python -m muxibench review --diff-file patch.diff --output reports/review.json
审查本地仓库未提交改动:
python -m muxibench review --repo-path /path/to/repo
审查暂存区改动:
python -m muxibench review --repo-path /path/to/repo --staged
辅助命令:
python -m muxibench health-check python -m muxibench benchmark --prompt "请解释首 token 延迟和吞吐量的区别" --runs 3 --concurrency 1
GET /health
POST /review
POST /review-repo-diff
POST /chat
POST /benchmark
POST /compare
POST /export-report
health_check
export_report
review_patch 输入示例:
{ "patch": "diff --git a/app.py b/app.py\n...", "repo_context": "Repository path: /workspace/demo", "output_path": "reports/review.json" }
审查结果默认输出 JSON,核心字段如下:
{ "summary": "检测到一个高风险回归问题。", "risk_level": "high", "findings": [ { "title": "空返回值未处理", "severity": "high", "file": "service.py", "evidence": "新增逻辑直接访问 result['data']。", "recommendation": "增加空值判断并补回归测试。" } ], "test_suggestions": [ "补充 result 为空时的单元测试" ], "model": "deepseek-v4-flash", "latency_seconds": 4.2 }
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
MuXiReview MCP
队伍:
原启项目名称:
MuXiReview MCP:基于沐曦算力的代码审查 Skill / MCP 服务项目简介:
MuXiReview MCP面向开发者代码审查场景,基于沐曦算力环境中的 OpenAI 兼容大模型服务,对git diff / patch进行结构化审查,输出缺陷风险、回归隐患和测试建议。项目提供CLI、HTTP API、MCP三种使用方式,方便直接集成到 Codex、Claude Code、OpenClaw 等工具链。核心价值
bug、回归风险、边界条件遗漏、缺失测试核心功能
review:审查 patch 文件或本地git diffreview_patch/review_repo_diff:作为 MCP 工具调用logs/muxibench.jsonl:记录真实审查调用日志reports/review-sample.json:结构化样例报告reports/review-sample.md:便于展示的 Markdown 报告保留辅助能力:
health-checkchatbenchmarkcompare接入环境
OpenAI Chat Completions兼容https://api.moark.com/v1DeepSeek-V4-Flash环境变量示例:
CLI 使用
审查 patch 文件:
审查本地仓库未提交改动:
审查暂存区改动:
辅助命令:
HTTP API
GET /healthPOST /reviewPOST /review-repo-diffPOST /chatPOST /benchmarkPOST /comparePOST /export-reportMCP 工具
review_patchreview_repo_diffhealth_checkchatbenchmarkcompareexport_reportreview_patch输入示例:输出格式
审查结果默认输出 JSON,核心字段如下:
示例材料
比赛演示顺序建议
git diffreview命令health-check或benchmark证明真实调用链路