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.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

graph Graph

Build and manage the code knowledge graph. Actions: build (full_rebuild, base, repo_root), update (base, repo_root), stats (repo_root), embed (repo_root), export (format, output_path, repo_root), import (import_path, repo_root), import_scip (import_path, repo_root), summarize (max_nodes, repo_root). Use `help` tool for full docs.

ParameterTypeDescription
action *string
basestring
formatstring
full_rebuildboolean
import_path
max_nodesinteger
output_path
repo_root
roots

query Query

Query the code knowledge graph for relationships, search, and impact analysis. Actions: query (pattern, target), search (search_query), impact (changed_files|base), large_functions (min_lines), spot_check (n -- random callsite snippets from last callers_of/callees_of/inheritors_of/importers_of result), renamed_in_diff (base -- symbols whose callsite line shifted vs base ref), diff (from_sha, to_sha -- nodes added/removed/modified between two commit SHAs). Use `help` tool for full docs.

ParameterTypeDescription
action *string
as_ofstring
basestring
changed_files
context_linesinteger
directionstring
edge_kinds
file_path_pattern
from_shastring
kind
languages
limitinteger
max_depthinteger
max_payload_bytesinteger
max_resultsinteger
min_confidencenumber
min_linesinteger
ninteger
pattern
repostring
repo_root
search_query
target
to_shastring

review Review

Generate token-efficient review context for code changes. Actions: context (default — auto-detects changed files from git diff, returns structural summary, impacted nodes, source snippets, and review guidance), delta (from_sha, to_sha — wraps the `query.diff` buckets and, when show_line_shifts=true, surfaces qualified_names whose line_start moved between the two commits for refactor auditing). Context params: changed_files (auto), max_depth=2, include_source=true, max_lines_per_file=200, base='HEAD~1', repo_root (auto). Delta params: from_sha, to_sha, show_line_shifts=false, repo, repo_roo…

ParameterTypeDescription
actionstring``context`` (default) or ``delta``.
basestring``context`` action — git ref for change detection (default: ``HEAD~1``).
changed_files``context`` action — files to review (auto-detected from git if omitted).
from_shastring``delta`` action — earlier commit SHA. Required.
include_sourceboolean``context`` action — include source code snippets (default: true).
languages``context`` action — optional list of language names (e.g. ``["python"]``) to scope the ``untested_functions`` list. Excludes functions whose language doesn't match. Fixes false positives on cross-l…
max_depthinteger``context`` action — impact radius depth (default: 2).
max_lines_per_fileinteger``context`` action — max source lines per file (default: 200).
max_tokensinteger
repostringPhase 2 Task 10 — when non-empty, scope to nodes whose ``repo_id`` matches (e.g. ``repo='repo_a-aaaaaaaa'``). Default ``""`` includes every federated repo. Both actions.
repo_rootRepository root path (auto-detected). Both actions.
show_line_shiftsboolean``delta`` action — when True, include nodes whose ``line_start`` moved between ``from_sha`` and ``to_sha`` in the response (default False).
to_shastring``delta`` action — later commit SHA. Required.

config Config

Server configuration, status, and model-cell setup. Actions: status (show state), set (key, value -- keys: log_level), cache_clear (wipe embeddings), setup_status (state + configured model cells), setup_start (where the host configures keys), setup_skip (local mode), setup_reset (reset to local), setup_complete (re-resolve from host config). Use `help` tool for full docs.

ParameterTypeDescription
action *string
forceboolean
key
repo_root
value

help Help

Get full documentation for any tool. Topics: graph | query | review | config | security | recipes. Use when compressed descriptions are insufficient.

ParameterTypeDescription
topicstring

security Security

Security scanning over the code knowledge graph. Actions: scan (engine='heuristic'|'semgrep', repo_root), paths (max_depth, source, sink, limit, repo, repo_root), report (format='json'|'sarif', repo_root), suppress (rule_id, remove=false, repo_root), rule_list (engine='heuristic'|'semgrep'). Use `help` tool for full docs.

ParameterTypeDescription
actionstring
basestring
enginestring
formatstring
limitinteger
max_depthinteger
removeboolean
repostring
repo_root
rule_id
scopestring
sink
source