cache_clear
Remove all computed embeddings.
How to use it
cache_clear is exposed by the Better Code Review Graph MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the cache_clear tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Better Code Review Graph
uvx better-code-review-graph # run without installingOther tools in Better Code Review Graph (24)
Full or incremental graph build. Set fullrebuild=true to re-parse all files; pass roots to federate extra repo directories into one graph.
Nodes added/removed/modified between two commit SHAs (fromsha, tosha).
Compute vector embeddings for semantic search. Dual-mode: local ONNX or cloud chain.
Export the graph as graphml / json-ld / dot / cypher. Inline or to outputpath.
Blast radius of changed files. Auto-detects from git diff. Paginated with maxresults.
Find functions/classes exceeding a line-count threshold.
Predefined patterns: callersof, calleesof, importsof, importersof, childrenof, testsfor, inheritorsof, filesummary.
Symbols whose callsite line shifted versus a base ref.
Re-emit cached findings as JSON (format='json') or SARIF v2.1.0 (format='sarif').
List available rules for an engine.
Run a security scan (engine='heuristic' default = 5 regex rules, or 'semgrep'). Findings persist on nodes.securitytags.
Search code entities by name/keyword or semantic similarity.
Update a runtime setting (key=loglevel).
Re-resolve credentials from environment variables.
Clear credentials and reset state.
Set local mode (skip relay permanently, use ONNX only).
Start relay setup to configure API keys via browser (HTTP mode).
Show current credential state, providers configured, and setup URL.
Random callsite snippets from the last callersof/calleesof/inheritorsof/importersof result.
Graph size, languages, node/edge breakdown, embedding count.
Server info: version, graph path, node/edge counts, embedding backend, embeddings count.
LLM-generated one-paragraph docstrings for Function nodes (via the SUMMARYMODELS chain; no-op when no provider key is set). Cost-capped via maxnodes.
Suppress a finding by ruleid (or remove=true to un-suppress).
Alias for build with fullrebuild=false (incremental).