kai
by kaicontext·★ 16·综合分 42
Kai 是一个代码变更的语义分析引擎,提供调用图、依赖关系和影响分析的 MCP 工具。
概述
Kai 构建在 Git 之上,捕获有意义的变更而非简单的行级差异。它构建可查询的代码语义模型,包括函数、依赖、行为变更和测试覆盖情况。MCP 服务器提供 12 个工具,使 AI 编码助手能够访问代码结构、影响分析和测试覆盖率等结构化信息。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要深入理解代码变更和依赖关系,特别是在 CI 优化和跨多编程语言的 AI 辅助代码分析时,选择 Kai。
什么时候不要选它
如果你需要对代码库进行写入访问(这主要是一个只读语义分析工具)或担心对 kaicontext.com 服务的供应商锁定,不要选择 Kai。
此 server 暴露的工具
从 README 抽取出 12 个工具kai_statusGet the current status of Kai and its semantic graph
kai_symbolsQuery symbols (functions, methods, classes) in the codebase
kai_filesList files in the semantic graph
kai_diffGenerate semantic diffs showing meaningful changes
kai_impactAnalyze the impact of code changes
kai_callersFind all functions that call a given symbol
kai_calleesFind all functions called by a given symbol
kai_contextGet surrounding context for a specific symbol
kai_dependenciesList module dependencies for a given symbol
kai_dependentsFind code that depends on a given symbol
kai_testsFind tests related to a specific symbol
kai_refreshRefresh the semantic graph with latest code changes
可对比工具
安装
# curl
curl -sSL https://get.kaicontext.com | sh
# Homebrew
brew install kaicontext/kai/kai对于 Claude Code:
claude mcp add kai -- kai mcp serve或者不安装 kai:
claude mcp add kai -- npx -y kai-mcpFAQ
- Kai 支持哪些语言?
- Kai 支持 Go、Rust、TypeScript/JavaScript、Python、Ruby、SQL、PHP 和 C#,不同语言的语义分析支持程度不同。
- Kai 如何与现有 CI 集成?
- Kai CI 运行在 .kailab/workflows/ 中定义的工作流,具有语义检出、并行作业和 30 分钟默认超时,只测试受影响的代码。
kai 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。