MCP Catalogs
首页kai screenshot

kai

by kaicontext·16·综合分 42

Kai 是一个代码变更的语义分析引擎,提供调用图、依赖关系和影响分析的 MCP 工具。

developer-toolsai-llmknowledge-graph
5
Forks
29
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Kai 构建在 Git 之上,捕获有意义的变更而非简单的行级差异。它构建可查询的代码语义模型,包括函数、依赖、行为变更和测试覆盖情况。MCP 服务器提供 12 个工具,使 AI 编码助手能够访问代码结构、影响分析和测试覆盖率等结构化信息。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:选择性 CI - 只运行受代码变更影响的测试
:AI 代码上下文 - 为 AI 助手提供语义理解
:代码审查 - 显示功能变更而非简单的行级差异
:Kai 支持哪些语言?
:Kai 如何与现有 CI 集成?

什么时候选它

当你需要深入理解代码变更和依赖关系,特别是在 CI 优化和跨多编程语言的 AI 辅助代码分析时,选择 Kai。

什么时候不要选它

如果你需要对代码库进行写入访问(这主要是一个只读语义分析工具)或担心对 kaicontext.com 服务的供应商锁定,不要选择 Kai。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • kai_status

    Get the current status of Kai and its semantic graph

  • kai_symbols

    Query symbols (functions, methods, classes) in the codebase

  • kai_files

    List files in the semantic graph

  • kai_diff

    Generate semantic diffs showing meaningful changes

  • kai_impact

    Analyze the impact of code changes

  • kai_callers

    Find all functions that call a given symbol

  • kai_callees

    Find all functions called by a given symbol

  • kai_context

    Get surrounding context for a specific symbol

  • kai_dependencies

    List module dependencies for a given symbol

  • kai_dependents

    Find code that depends on a given symbol

  • kai_tests

    Find tests related to a specific symbol

  • kai_refresh

    Refresh the semantic graph with latest code changes

可对比工具

tree-sitter-mcpswimm-mcpsourcegraph-mcpsemgrep-mcp

安装

# 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-mcp

FAQ

Kai 支持哪些语言?
Kai 支持 Go、Rust、TypeScript/JavaScript、Python、Ruby、SQL、PHP 和 C#,不同语言的语义分析支持程度不同。
Kai 如何与现有 CI 集成?
Kai CI 运行在 .kailab/workflows/ 中定义的工作流,具有语义检出、并行作业和 30 分钟默认超时,只测试受影响的代码。

kai 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。