code_review
Analyze code to identify security, performance, and quality issues, producing a structured list of problems with severity, category, and suggestions.
Instructions
当用户需要审查代码质量、检查代码问题时使用。指南型工具:注入 code/file_path 与审查清单,由 Agent 阅读代码后输出结构化问题清单(severity/category/suggestion);MCP 不做静态规则扫描
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 要审查的代码。可以是代码片段、完整文件或 git diff 输出 | |
| focus | No | 审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all | |
| file_path | No | 要审查的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取 | |
| project_root | No | 项目根目录绝对路径。配合 file_path 解析相对路径 |