工具
开发者工具
简体中文

RepoRefit / 开发者工具

RepoRefit MCP 服务器

编程代理可以直接调用 RepoRefit:不离开对话就能检查项目,读取带规则、文件和行号的发现,并获得修复指令。

这是什么

在你自己的电脑上通过 stdio 运行的 MCP 服务器,由代理用 reporefit mcp 启动。它使用与网页检查器和 CLI 相同的引擎。

工具

工具返回内容
scan文件夹的汇总和发现(规则、严重程度、置信度、文件、行号、已遮蔽的证据、修复、验证方法、文档链接)。选项:tool、lang、max_findings。
generate_fix_instructions按重要程度排列的 AI 修复指令(Markdown)。
list_rules全部或某个工具的规则 ID、名称和文档链接。
explain_rule规则检查什么、为什么重要以及如何修复。

Claude Code

在终端中添加一次即可:

claude mcp add reporefit -- npx -y github:reporefit/action mcp

Cursor

添加到项目的 .cursor/mcp.json(或 Cursor 全局设置)中:

{
  "mcpServers": {
    "reporefit": { "command": "npx", "args": ["-y", "github:reporefit/action", "mcp"] }
  }
}

Codex

添加到 ~/.codex/config.toml 中:

[mcp_servers.reporefit]
command = "npx"
args = ["-y", "github:reporefit/action", "mcp"]

不使用 npm

能启动命令的 MCP 客户端都可以直接运行打包好的文件:

# Without npm: point the client at the bundled file from github.com/reporefit/action
node /path/to/reporefit/dist/reporefit.mjs mcp

可以这样请代理

安全