GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Token-efficient code review knowledge graph: semantic search and call-graph resolution.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
EMBEDDING_MODELS, LOCAL_EMBEDDING_MODEL, LOCAL_RERANK_MODEL, LOCAL_EMBEDDING_DIM, LOCAL_EMBEDDING_MODEL_FILE, LOCAL_EMBEDDING_POOLING, LOCAL_EMBEDDING_NORMALIZE, HULL_EMBED_API_KEY, HULL_CHAT_API_KEY, EMBEDDING_BACKEND标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"crg": {
"command": "uvx",
"args": [
"better-code-review-graph"
],
"env": {
"EMBEDDING_MODELS": "your-value",
"LOCAL_EMBEDDING_MODEL": "your-value",
"LOCAL_RERANK_MODEL": "your-value",
"LOCAL_EMBEDDING_DIM": "your-value",
"LOCAL_EMBEDDING_MODEL_FILE": "your-value",
"LOCAL_EMBEDDING_POOLING": "your-value",
"LOCAL_EMBEDDING_NORMALIZE": "your-value",
"HULL_EMBED_API_KEY": "your-value",
"HULL_CHAT_API_KEY": "your-value",
"EMBEDDING_BACKEND": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add crg --env EMBEDDING_MODELS=your-value --env LOCAL_EMBEDDING_MODEL=your-value --env LOCAL_RERANK_MODEL=your-value --env LOCAL_EMBEDDING_DIM=your-value --env LOCAL_EMBEDDING_MODEL_FILE=your-value --env LOCAL_EMBEDDING_POOLING=your-value --env LOCAL_EMBEDDING_NORMALIZE=your-value --env HULL_EMBED_API_KEY=your-value --env HULL_CHAT_API_KEY=your-value --env EMBEDDING_BACKEND=your-value -- uvx better-code-review-graph运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"crg": {
"command": "uvx",
"args": [
"better-code-review-graph"
],
"env": {
"EMBEDDING_MODELS": "your-value",
"LOCAL_EMBEDDING_MODEL": "your-value",
"LOCAL_RERANK_MODEL": "your-value",
"LOCAL_EMBEDDING_DIM": "your-value",
"LOCAL_EMBEDDING_MODEL_FILE": "your-value",
"LOCAL_EMBEDDING_POOLING": "your-value",
"LOCAL_EMBEDDING_NORMALIZE": "your-value",
"HULL_EMBED_API_KEY": "your-value",
"HULL_CHAT_API_KEY": "your-value",
"EMBEDDING_BACKEND": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"crg": {
"type": "stdio",
"command": "uvx",
"args": [
"better-code-review-graph"
],
"env": {
"EMBEDDING_MODELS": "your-value",
"LOCAL_EMBEDDING_MODEL": "your-value",
"LOCAL_RERANK_MODEL": "your-value",
"LOCAL_EMBEDDING_DIM": "your-value",
"LOCAL_EMBEDDING_MODEL_FILE": "your-value",
"LOCAL_EMBEDDING_POOLING": "your-value",
"LOCAL_EMBEDDING_NORMALIZE": "your-value",
"HULL_EMBED_API_KEY": "your-value",
"HULL_CHAT_API_KEY": "your-value",
"EMBEDDING_BACKEND": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
EMBEDDING_MODELS envLOCAL_EMBEDDING_MODEL envLOCAL_RERANK_MODEL envLOCAL_EMBEDDING_DIM envLOCAL_EMBEDDING_MODEL_FILE envLOCAL_EMBEDDING_POOLING envLOCAL_EMBEDDING_NORMALIZE envEMBEDDING_BACKEND env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 n24q02m 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:HULL_EMBED_API_KEY, HULL_CHAT_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.31.0)于11天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Renamed: repo is
crg, PyPI distribution isn24q02m-crg(formerlybetter-code-review-graph, kept as a legacy command alias) — CLI-first (crgcommand); MCP server is a secondary surface.
mcp-name: io.github.n24q02m/crg
Knowledge graph for token-efficient code reviews -- semantic search and call-graph resolution across your codebase.
Sister projects from n24q02m (click to expand)
| Project | Tagline | Tag |
|---|---|---|
| crg | Knowledge graph for token-efficient code reviews -- semantic search and call-... | MCP |
| better-drive | 2-way Google Drive sync with .driveignore filter — rclone engine, Windows tray | Tooling |
| better-email-mcp | IMAP/SMTP email for AI agents -- read, send, organize folders, and manage att... | MCP |
| better-godot-mcp | Composite MCP server for Godot Engine -- 17 composite tools for AI-assisted g... | MCP |
| better-notion-mcp | Markdown-first Notion for AI agents -- pages, databases, blocks, and comments... | MCP |
| better-semantic-release | Drop-in python-semantic-release fork with built-in release-safety guards (orp... | Tooling |
| better-telegram-mcp | Telegram for AI agents -- messages, chats, media, and contacts across both bo... | MCP |
| better-workspace-mcp | Google Workspace MCP server (Docs/Drive/Calendar/Gmail/Sheets/Slides/Tasks/Ch... | MCP |
| claude-plugins | Claude Code plugin marketplace for the n24q02m MCP servers -- install web sea... | Marketplace |
| imagine-mcp | Image and video understanding + generation for AI agents -- across Gemini, Op... | MCP |
| jules-task-archiver | Chrome Extension for bulk operations on Jules tasks via batchexecute API -- a... | Tooling |
| mcp-core | Shared foundation for building MCP servers -- Streamable HTTP transport, OAut... | MCP |
| mnemo-mcp | Persistent AI memory with hybrid search and embedded sync. Open, free, unlimi... | MCP |
| fastretrieval | Fast multi-model retrieval runtime for ONNX and GGUF embeddings, reranking, and model contracts | Library |
| skret | Secrets without the server. | CLI |
| tacet | A self-distilling neuro-symbolic cascade that amortises LLM cost across knowl... | Tooling |
| web-core | Shared web infrastructure package for search, scraping, HTTP security, and st... | Library |
| wet-mcp | Open-source MCP server for AI agents: web search, content extraction, and lib... | MCP |
An MCP server that parses your codebase with Tree-sitter, builds a structural graph of functions/classes/imports, and gives Claude (or any MCP client) precise context so it reads only what matters instead of the whole tree. Semantic search runs through the local ONNX model registry from fastretrieval by default (zero config, no API key), with an optional cloud embedding chain. Fork of code-review-graph with fixed multi-word search, qualified call resolution, dual-mode embeddings, output pagination, and production CI/CD.
v2.0 adds temporal columns (valid_from_sha / valid_to_sha on every node + edge) and an opt-in security scanner. The schema migration is auto-applied on first GraphStore open, and a backup of the pre-2.0 DB is saved to .pre-2.0.bak so you can roll back. See BREAKING_CHANGES.md for the full schema-change list, behavior changes, environment requirements, and the downgrade procedure (CRG_DOWNGRADE_TO_1_X=1 uv run crg).
For OMP and other local coding harnesses, the primary surface is the package CLI plus the bundled skills/ workflows. The skills invoke the CLI directly and do not require an MCP server mapping.
# Run without a persistent install (short `crg` script; the PyPI distribution is
uvx needs the explicit --from form for the crg name)uvx --python 3.13 --from n24q02m-crg crg graph build --full-rebuild \ --repo-root /path/to/repo uvx --python 3.13 --from n24q02m-crg crg graph stats \ --repo-root /path/to/repo
crg and the legacy long name)pip install n24q02m-crg crg query search --search-query "authentication" \ --repo-root /path/to/repo
The optional Semgrep engine for deeper security scans is a separate extra:
pip install 'n24q02m-crg[security]'
MCP stdio remains a secondary protocol adapter for clients that require it:
{
"mcpServers": { "crg": { "command": "uvx", "args": ["--python", "3.13", "n24q02m-crg"], "env": { "MCP_TRANSPORT": "stdio" } } } }
Install matrix (stdio unless noted; the CLI-first usage above stays the primary surface):
| Client | Install |
|---|---|
| Claude Code (plugin) | /plugin marketplace add n24q02m/claude-plugins then /plugin install crg@n24q02m-plugins |
| Claude Code (stdio) | claude mcp add crg -- uvx --python 3.13 n24q02m-crg |
| Codex | register stdio command uvx --python 3.13 n24q02m-crg under mcp_servers in ~/.codex/config.toml |
| Gemini CLI | add the mcpServers JSON above to ~/.gemini/settings.json |
| Cursor / Windsurf | add the mcpServers JSON above via the client's MCP settings (mcp.json) |
| Any client (HTTP self-host) | point the client at https:// /mcp (MCP_TRANSPORT=http) -- self-host only, no hosted endpoint |
Install with an AI agent -- paste this to your AI coding agent:
Install MCP server
crgfollowing the steps at
https://raw.githubusercontent.com/n24q02m/claude-plugins/main/plugins/crg/setup-with-agent.md
Full CLI usage is in CLI. Optional per-client MCP setup is at [docs.n24q02m.com/servers/crg/setup/](https://docs.n24q02m.com/servers/crg/setup/).
Two ways to run the server, plus the surfaces to consume it.
# instance config lives at $CRG_CONFIG_DIR or ~/.crg (same schema as hull's
uv run n24q02m-crg server start
cp docker-config/config.example.toml docker-config/config.toml
docker compose up -d
The compose file builds the Dockerfile's http target (image crg:http), publishes the container on host loopback only (127.0.0.1:${CRG_PORT:-8772}:8080), and mounts ./docker-config/config.toml read-only at the container's config dir (CRG_CONFIG_DIR=/data/config); graph state persists in the crg-data named volume. All state stays on your machine.
CLI (local graphs, no server needed):
crg graph build --full-rebuild --repo-root /path/to/repo
crg query search --search-query "authentication" --repo-root /path/to/repo
MCP over HTTP (remote/always-on): point any MCP client at http://127.0.0.1:8772/mcp with Authorization: Bearer :
{
"mcpServers": { "crg": { "url": "http://127.0.0.1:8772/mcp", "headers": { "Authorization": "Bearer " } } } }
Each task (embed / rerank / chat / jev_score) resolves its own OpenAI-spec provider cell from [models. ] in the instance config: an independent base_url + api_key + model. Cloud or local is purely a config choice — point base_url at OpenRouter, a vendor, or your own local gateway (e.g. http://host.docker.internal:11434/v1). API keys are host-only material: keep them in config.toml (gitignored under docker-config/) or supply via HULL_ _API_KEY env; they are never end-user supplied.
CRG is local-first for coding workflows:
/.crg/graph.db unless an explicit multi-user/self-host configuration selects another data directory.The repo ships a smithery.yaml so the server can be built and run through Smithery. It deploys over stdio and needs no startup configuration -- the config schema is empty, and any optional cloud embedding/summary keys are supplied at runtime through the server's own config flow (see Configuration below). The launch command is the same uvx invocation as a local install:
startCommand:
type: stdio commandFunction: |- (config) => ({ command: 'uvx', args: ['--python', '3.13', 'crg'] })
Everything w
只显示了开头部分;其余内容请在仓库中阅读