ckb
v8.0.3Code intelligence MCP server — 80+ tools for navigation, impact analysis, and architecture
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
explore
Comprehensive area exploration returning structure, key symbols, and change hotspots in one call. Best starting point for file/directory/module questions. Aggregates: explainFile → searchSymbols → getCallGraph → getHotspots.
| Parameter | Type | Description |
|---|---|---|
target * | string | File, directory, or module path to explore |
depth | string | Exploration thoroughness: shallow (quick overview), standard (balanced), deep (comprehensive) |
focus | string | Aspect to emphasize: structure (symbols/types), dependencies (imports/exports), changes (hotspots/history) |
understand
Comprehensive symbol deep-dive returning full context in one call. Ideal for 'what does X do?' or 'how does X work?' questions. Aggregates: searchSymbols → getSymbol → explainSymbol → findReferences → getCallGraph.
| Parameter | Type | Description |
|---|---|---|
query * | string | Symbol name or ID to understand |
includeCallGraph | boolean | Include callers and callees |
includeReferences | boolean | Include reference information grouped by file |
maxReferences | number | Maximum references to include |
prepareChange
Pre-change impact analysis showing blast radius, affected tests, coupled files, and risk score. Essential before modifying, renaming, or deleting code to prevent breaking changes.
| Parameter | Type | Description |
|---|---|---|
target * | string | Symbol ID or file path to analyze |
changeType | string | Type of change being planned |
batchGet
Retrieve multiple symbols by ID in a single call. Max 50 symbols.
| Parameter | Type | Description |
|---|---|---|
symbolIds * | array | Array of symbol IDs to retrieve (max 50) |
batchSearch
Perform multiple symbol searches in a single call. Max 10 queries.
| Parameter | Type | Description |
|---|---|---|
queries * | array | Array of search queries (max 10) |
searchSymbols
Semantic code search returning symbol types, locations, and relationships—more accurate than text-based grep/find.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (substring match, case-insensitive) |
kinds | array | Optional list of symbol kinds to filter (e.g., 'class', 'function') |
limit | number | Maximum number of results to return |
scope | string | Optional module ID to limit search scope |
getSymbol
Get symbol metadata and location by stable ID
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The stable symbol ID (ckb:<repo>:sym:<fingerprint>) |
repoStateMode | string | Whether to use HEAD commit only or full working tree state |
explainSymbol
Get an AI-friendly explanation of a symbol including usage, history, and summary
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The stable symbol ID to explain |
explainFile
Get lightweight orientation for a file including role, symbols, and key relationships
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the file (relative or absolute) |
findReferences
Find all references to a symbol with completeness information
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The stable symbol ID |
limit | number | Maximum number of references to return |
merge | string | Backend merge strategy |
scope | string | Optional module ID to limit search scope |
getCallGraph
Get a lightweight call graph showing callers and callees of a symbol
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The root symbol ID for the call graph |
depth | number | Maximum depth to traverse (1-4) |
direction | string | Which direction to traverse |
traceUsage
Trace how a symbol is reached from system entrypoints. Returns causal paths, not just neighbors.
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The target symbol ID to trace usage for |
maxDepth | number | Maximum path depth to traverse (1-5) |
maxPaths | number | Maximum number of paths to return |
getArchitecture
Get codebase architecture with module dependencies. For single-module projects, use granularity='directory' or 'file' for meaningful visualization.
| Parameter | Type | Description |
|---|---|---|
depth | number | Maximum dependency depth to traverse |
granularity | string | Level of detail: 'module' (packages), 'directory' (folders), 'file' (individual files) |
includeExternalDeps | boolean | Whether to include external dependencies |
includeMetrics | boolean | Include aggregate metrics (complexity, churn) per directory. Only applies to directory granularity. |
inferModules | boolean | Infer modules from directory structure when no explicit package boundaries exist |
refresh | boolean | Force refresh of cached architecture |
targetPath | string | Optional path to focus on (relative to repo root) |
getModuleOverview
Get a high-level overview of a module including size and recent activity
| Parameter | Type | Description |
|---|---|---|
name | string | Optional friendly name for the module |
path | string | Path to the module directory |
listKeyConcepts
Discover main ideas/concepts in the codebase through semantic clustering. Helps understand domain vocabulary.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of concepts to return (max 12) |
analyzeImpact
Analyze the impact of changing a symbol. Returns callers, affected modules, and risk score—answers 'what breaks if I change X?'. For comprehensive pre-change analysis, use prepareChange instead.
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | The stable symbol ID to analyze |
depth | number | Maximum depth for transitive impact analysis |
includeTelemetry | boolean | Include observed telemetry data in analysis (requires telemetry to be enabled) |
telemetryPeriod | string | Time period for telemetry data (7d, 30d, 90d, all) |
getHotspots
Find files that deserve attention based on churn, coupling, and recency. Highlights volatile areas that may need review.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of hotspots to return (max 50) |
scope | string | Module path to focus on |
timeWindow | object | Time period to analyze (default: 30 days) |
getStatus
Get CKB system status including backend health, cache stats, repository state, and usage hints for available capabilities.
expandToolset
Add more tools for a specific workflow. Available presets: review, refactor, federation, docs, ops, full.
| Parameter | Type | Description |
|---|---|---|
preset * | string | The preset to expand to |
reason * | string | Why you need this preset (required to prevent accidental expansion) |