crg

v3.36.0
io.github.n24q02m/crg Checked 9 hours ago Published 4 days ago

Token-efficient code review knowledge graph: semantic search and call-graph resolution.

Values you need

VariableWhat it is
EMBEDDING_MODELSoptional Embedding models in selection order; the current runtime uses the first provider/model entry; empty = local ONNX
LOCAL_EMBEDDING_MODELoptional Built-in fastretrieval model ID or local directory with fastretrieval-manifest.json
LOCAL_RERANK_MODELoptional Fastretrieval TextCrossEncoder model ID; empty = reranking disabled
LOCAL_EMBEDDING_DIMoptional Required positive output dimension for an external local embedding ID without a manifest
LOCAL_EMBEDDING_MODEL_FILEoptional ONNX file path inside a manifest-backed local embedding directory
LOCAL_EMBEDDING_POOLINGoptional Explicit pooling for an external local embedding ID without a manifest
LOCAL_EMBEDDING_NORMALIZEoptional Explicit L2 normalization for an external local embedding ID without a manifest
HULL_EMBED_API_KEYoptional secret API key for the [models.embed] cell transport (OpenRouter pre-wired default); host-injected, overrides the cell api_key
HULL_CHAT_API_KEYoptional secret API key for the [models.chat] cell transport (OpenRouter pre-wired default); host-injected, enables LLM summaries when the cell model is set
EMBEDDING_BACKENDoptional DEPRECATED and ignored: setting it only logs a warning; the backend follows EMBEDDING_MODELS and DISABLE_LOCAL_EMBED.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add crg -- uvx --from n24q02m-crg==3.36.0 better-code-review-graph
Add to claude_desktop_config.json
{
  "mcpServers": {
    "crg": {
      "args": [
        "--from",
        "n24q02m-crg==3.36.0",
        "better-code-review-graph"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "crg": {
      "args": [
        "--from",
        "n24q02m-crg==3.36.0",
        "better-code-review-graph"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "crg": {
      "args": [
        "--from",
        "n24q02m-crg==3.36.0",
        "better-code-review-graph"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.crg]
command = "uvx"
args = ["--from", "n24q02m-crg==3.36.0", "better-code-review-graph"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: graph, query, review, config, help, security.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json