n24q02m/crg
为代码审查构建知识图谱,降低 token 消耗
解决什么问题
没有它,跨代码库的语义搜索与调用图解析需要自行处理,代码审查更耗 token。
- 语义搜索代码库
- 解析调用图
- 降低审查 token 消耗
适用客户端
- cursor
- windsurf
- cli
安装命令
uvx --python 3.14 --from n24q02m-crg crg graph build --full-rebuild --repo-root /path/to/repo uvx --python 3.14 --from n24q02m-crg crg graph stats --repo-root /path/to/repo pip install n24q02m-crg docker compose up -d 一键配置
{
"mcpServers": {
"crg": {
"command": "uvx",
"args": [
"--python",
"3.14",
"n24q02m-crg@latest"
],
"env": {
"MCP_TRANSPORT": "stdio"
}
}
}
} {
"mcpServers": {
"crg": {
"url": "http://127.0.0.1:8772/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
} {
"mcpServers": {
"crg": {
"command": "uvx",
"args": [
"--python",
"3.14",
"n24q02m-crg@latest"
],
"env": {
"MCP_TRANSPORT": "stdio",
"EMBEDDING_MODELS": "cohere/embed-v4.0",
"HULL_EMBED_API_KEY": "sk-or-...",
"HULL_CHAT_API_KEY": "sk-or-..."
}
}
}
} 安全标记
- 需要 API Key: 是
- 本地运行: 是
- 访问网络: 是
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-06(0d) |
|---|---|
| Star | 78 |
| 待处理 issue | 1 |
| 协议 | Apache-2.0 |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-06 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
Knowledge graph for token-efficient code reviews -- semantic search and call-graph resolution across your codebase.