ckb
by nyxCore-Systems·★ 95·综合分 50
CKB 是一个综合的代码智能平台,提供 MCP 服务器,工具可用于代码分析、影响评估和架构映射。
概述
CKB 将代码库转换为可查询的知识库,提供语义搜索、调用图、影响分析和架构映射功能。它提供复合操作,可将 AI 工具调用减少 60-70%,并通过 MCP 与 Claude Code、Cursor 和 Windsurf 等 AI 助手集成。系统支持多种接口,包括 CLI、HTTP API 和 MCP,支持 Go、TypeScript、JavaScript、Python 等多种语言。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要深度代码智能来辅助 AI 开发时,特别是处理 Go 代码库或在 TypeScript/JavaScript/Python 项目中进行影响分析和架构映射时,选择 CKB。
什么时候不要选它
如果您使用的是不受支持的语言(C#、PHP)或需要非 Go 的增量索引功能,应避免使用 CKB,因为该工具的效果会因语言等级和重新索引能力而有显著差异。
此 server 暴露的工具
从 README 抽取出 12 个工具exploreArea exploration: finds symbols, dependencies, and hotspots in a code area
understandSymbol deep-dive: finds references, callers, and explanations for a specific symbol
prepareChangePre-change analysis: determines impact, affected tests, and risk of changing code
batchGetFetch up to 50 symbols at once for efficient bulk operations
batchSearchRun up to 10 searches at once to reduce API overhead
findReferencesFind all references to a specific symbol in the codebase
searchSymbolsSearch for symbols by name with semantic understanding
hotspotsIdentify risky areas in the codebase based on complexity, coupling, and change frequency
architectureGenerate architecture overview and module dependencies
ownershipFind code ownership and reviewer suggestions based on CODEOWNERS and git history
findDeadCodeDetect unused code with confidence scores based on call graphs and references
compareAPIAnalyze API changes between versions to identify breaking changes and affected clients
可对比工具
安装
安装
选项 1:npm(推荐)
npm install -g @tastehub/ckb选项 2:Homebrew(macOS/Linux)
brew tap SimplyLiz/ckb
brew install ckb选项 3:从源码构建
git clone https://github.com/SimplyLiz/CodeMCP.git
cd CodeMCP
go build -o ckb ./cmd/ckbClaude Desktop 配置
将以下内容添加到 Claude Desktop 的 config.json 文件中:
{
"mcpServers": {
"ckb": {
"command": "npx",
"args": ["@tastehub/ckb", "mcp"]
}
}
}FAQ
- CKB 支哪些编程语言?
- CKB 支持 Go(1级)、TypeScript/JavaScript/Python(2级)、Rust/Java/Kotlin/C++/Ruby/Dart(3级),以及 C#/PHP 的实验性支持(4级)。
- CKB 如何与 AI 助手集成?
- CKB 提供 MCP 服务器,向 Claude Code、Cursor 和 Windsurf 等 AI 助手暴露代码分析、影响评估和架构映射的工具,通过复合操作减少 60-70% 的令牌使用。
ckb 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。