SuperAPI AI Directory

CodeMCP

Code intelligence via SCIP indexing for Go, TypeScript, Python, Rust and Java: semantic search, impact analysis, call graphs and ownership detection.

Open website

About this tool

Purpose

CodeMCP (repository name CKB, i.e. Code Knowledge Backend) is a code intelligence tool designed to turn codebases into queryable knowledge bases, providing AI assistants and developers with capabilities such as symbol navigation, impact analysis, and architecture mapping. It provides services externally through three methods: CLI, HTTP API, and MCP, and can be integrated into AI programming tools, CI/CD pipelines, and custom scripts.

Main Capabilities

  • Understand code: semantic search, call graphs, usage tracking, architecture diagrams.
  • Analyze impact: impact analysis, risk scoring, hotspot detection, coupling analysis.
  • Protect changes: affected test detection, breaking change warnings, PR risk assessment.
  • Security detection: secret detection, credential scanning, security-sensitive code identification.
  • Collaboration support: ownership lookup, reviewer suggestions, architecture decision records (ADR).
  • Improve code: dead code detection, technical debt tracking, documentation coverage.
  • Composite operations: provides single-call tools such as explore, understand, and prepareChange, which are said to reduce AI tool calls by 60-70%.
  • Integration methods: CLI, HTTP API, MCP, supporting CI/CD pipelines and custom scripts.

Usage

Installation

Three installation methods are provided:

  1. npm (recommended):

    npm install -g @simplyliz/ckb
    
  2. Homebrew (macOS/Linux): must be installed using the fully qualified name, because Homebrew 6.0 requires third-party taps to be trusted before they can be loaded.

  3. Build from source.

Indexing

CKB uses SCIP indexing to understand code. Without an index, CKB can still work in basic mode through tree-sitter parsing, but indexing provides cross-file references, precise impact analysis, and call graph navigation.

  • Incremental indexing is only supported for Go; other languages require a full reindex.
  • TypeScript monorepos may require the --infer-tsconfig flag.
  • C/C++ requires compile_commands.json.
  • Python is best run in an activated virtual environment.
  • You can use ckb doctor --tier standard to check whether the language tool is installed correctly.

MCP Integration

CKB can be used with any MCP-compatible AI programming tool, including Claude Code, Cursor, Windsurf, VS Code, opencode, Grok, Claude Desktop, etc. The configuration method varies by tool, for example adding configuration in files such as .mcp.json、~/.cursor/mcp.json、~/.codeium/windsurf/mcp_config.json . Claude Desktop requires specifying the repository path (via the CKB_REPO environment variable), and can only handle one repository at a time.

CKB exposes 110+ tools, but most sessions only need a subset. Presets can be used to reduce token overhead, by up to 77%. AI can dynamically expand the toolset during a session through the expandToolset tool.

Backend Orchestration

CKB orchestrates multiple code intelligence backends, combining their respective strengths:

  • Cartographer: fast structural analysis (architecture, dependencies, blast radius, coupling, directory summaries), no index required, compiled into the binary, provided by default with npm and Homebrew builds.
  • SCIP: precise pre-indexed symbol data, used for precise definitions, references, and call graphs (requires running ckb index).
  • LSP: Real-time language server queries.
  • Git: Blame, history, change frequency analysis, ownership.
  • LIP: Semantic embedding daemon for nearest-neighbor search and reranking, running as an optional standalone daemon.

Except for Git, all backends are optional, and CKB gracefully degrades to the existing backends.

Persistent Knowledge

Knowledge retained across sessions includes: module registry (boundaries, responsibilities, tags), ownership registry (CODEOWNERS + git-blame with time decay), hotspot tracker (historical snapshots and trend analysis), decision log (ADR full-text search).

Use Cases

  • Developers using AI assistants: provide code intelligence capabilities for AI tools.
  • Large codebase teams: efficiently navigate complex code.
  • Refactoring: understand impact before changes.
  • Code review: view the full picture of changes.
  • Tech leads: track architecture health.

Limitations

CKB is a static analysis tool and is not suitable for:

  • Dynamic dispatch/runtime behavior (use a debugger instead).
  • Unindexed generated code.
  • Code generation, linting, or formatting.
  • Cross-repository calls (use the federation feature instead).

CKB is not magic; key decisions should be verified by reading the actual code.

License

Free for open-source projects, startups, and small businesses with annual revenue below $25,000; organizations with annual revenue of $25,000 or more require a commercial license.