Repository navigation
代码审查Agent 是否该支持作为 MCP Server 接入 CC/Codex ?Should CR Agent work as MCP server to integrate with Coding Agents ? #2047
Replies: 2 comments 7 replies
|
A similar MCP server integration was previously implemented in #832, although the PR was closed without merging. This direction is also mentioned in our ROADMAP.md. Using Ophis to bridge the existing Cobra commands is an interesting alternative. We may want to evaluate a minimal, explicitly scoped MCP tool surface rather than exposing the entire CLI. |
|
While Ophis could reduce the initial implementation effort, we also need to consider the long-term maintenance cost, protocol compatibility, and review lifecycle management. Could you share your expected usage scale and which use cases cannot be adequately addressed by our existing CLI, Skills, or ACP integration? This would help us evaluate whether introducing another integration layer is worthwhile. |
Uh oh!
There was an error while loading. Please reload this page.
首先,在clone 和试用一段时间以后,我想感谢一下贵团队和贵司开源 OpenCodeReview(以下简称OCR)! 这个仓库具有完善的软件工程规范和良好的代码实践,为我们团队的代码 安全性和 NFR 审查帮了大忙。
目前,OCR 已可以调用外部 MCP 服务,但似乎尚不能作为 MCP Server 供 Codex、Claude Code 、DeepSeek Harness 等 Coding Agent 调用,也因此缺少相应的可配置接入模板。
我在试图让 OCR 接入 MCP 时突然产生了一个小巧思 😄
OCR 的 CLI 基于 Go/Cobra,而另一个库 Ophis 可以将 Cobra 命令树映射为 MCP 工具,因此有机会复用和桥接做实现,以较少的适配代码为OCR 提供 MCP Server 能力。我在自己的测试里发现, Ophis 可以顺利将 CLI 命令映射为 MCP 里的 30+ 接口,方便了我自己在内网环境下的代码审查流程。基于我自己的经验,我觉得让 OCR 作为MCP接入 通用 Agent 是有价值的。
当然,还得说明一下各种副作用和影响面分析。要支持MCP 远程调用,还需要考虑 Token 鉴权、工具访问权限,以及远程文件和仓库的下载、管理与缓存。我看了一些 ISSUE,似乎你们不希望引入 TOKEN 鉴权的负担、远程文件的传输。
所以希望先与维护者讨论:是否有必要或有计划让 OpenCodeReview 作为 MCP Server 接入现有 Coding Agent?
All reactions