kai

mcp
Security Audit
Warn
Health Warn
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Warn
  • process.env — Environment variable access in .github/workflows/ci.yml
  • fs module — File system access in .github/workflows/ci.yml
Permissions Pass
  • Permissions — No dangerous permissions requested
Purpose
This tool is a semantic analysis engine built on top of Git that generates semantic diffs, builds code dependency graphs, and integrates with CI pipelines. It also acts as an MCP server to provide AI assistants with context about code changes, function calls, and test coverage.

Security Assessment
Overall risk: Medium. The tool installs a local Git post-commit hook, meaning it automatically executes and tracks local changes. A primary security concern is that data is aggressively sent to external servers via commands like `kai push` and `kaicontext.com`. The `npx` quick-start method for the MCP server downloads and executes remote code automatically. While the automated rule-based scan correctly notes that the CI workflow accesses the file system and environment variables, the application itself requires no explicitly dangerous system permissions. There are no known hardcoded secrets in the current scan.

Quality Assessment
The project is highly active, with its most recent push occurring just today. It uses the standard and permissive Apache-2.0 license, making it suitable for most development projects. However, the tool has very low community visibility, boasting only 9 GitHub stars. This means it has not been broadly battle-tested or independently audited by the open-source community.

Verdict
Use with caution: while actively maintained and properly licensed, the early-stage community footprint and automatic syncing of local code context to external servers require careful consideration before integrating into private projects.
SUMMARY

Kai is a semantic analysis engine that sits on top of Git. It captures meaningful changes, generates semantic diffs, and produces safe selective CI plans.

README.md

Kai Logo

Kai

Semantic infrastructure for code change.

Kai understands what code means — functions, dependencies, behavior impact —
not just which lines changed. This semantic graph powers precise CI,
context-aware IDEs, and verifiable AI coding agents.

kaicontext.com · Docs · Slack


Install

# curl
curl -sSL https://get.kaicontext.com | sh

# Homebrew
brew install kaicontext/kai/kai

Quick Start

kai init                      # Detects git, offers history import + auto-sync
kai capture -m "Initial"      # Snapshot your code with a message
kai push                      # Push to kaicontext.com
kai diff                      # Semantic change impact

In a git repo, kai init will:

  1. Offer to import git history as semantic snapshots
  2. Install a post-commit hook for automatic capture on each commit
  3. Generate a GitHub Actions / GitLab CI workflow to keep Kai in sync

For full command reference, see docs/cli-reference.md.


MCP Server

Kai ships an MCP server that gives AI coding assistants
access to call graphs, dependency maps, impact analysis, and test coverage.

# Claude Code
claude mcp add kai -- kai mcp serve

# Or without installing kai (npx downloads it automatically)
claude mcp add kai -- npx -y kai-mcp

No setup required — the server lazily initializes the semantic graph on first use.

12 tools: kai_status, kai_symbols, kai_files, kai_diff, kai_impact, kai_callers, kai_callees, kai_context, kai_dependencies, kai_dependents, kai_tests, kai_refresh.

See docs/mcp.md for Cursor setup, tool reference, and troubleshooting.


Code Reviews

Kai reviews are anchored to semantic changesets, not line diffs.

kai review open --title "Add auth middleware"   # Create a review
kai push                                         # Push to kaicontext.com
kai fetch --review abc123                        # Sync comments from web
kai review comments abc123                       # View inline comments locally

On the web, reviews show semantic diffs (what functions changed, not just which lines), inline commenting, and one-click merge that updates snap.main.


CI Integration

Kai CI runs workflows defined in .kailab/workflows/ with semantic checkout, parallel jobs, and 30-minute default timeouts.

kai ci runs                   # List CI runs
kai ci logs 42                # View logs for run #42
kai ci cancel 42              # Cancel a run
kai capture -m "Fix bug"      # Message shows as CI run headline

Email notifications on pipeline completion are sent to the snapshot author via Postmark.


What Kai Builds

For every capture, Kai constructs a queryable semantic model:

Layer What It Captures
Functions & methods Signatures, bodies, call graphs
Dependencies Module relationships, imports, data flow
Behavior changes What actually changed in meaning, not just text
Test coverage Which tests cover which source files (static + transitive)

This graph is immutable, content-addressed, and designed for machine reasoning.


Use Cases

Selective CI

Kai determines which tests actually need to run based on behavioral impact,
not file diffs. Result: 80% CI time reduction for early users.

AI Code Context

12 MCP tools give AI assistants structured access to your codebase's
dependency graph, call graph, impact analysis, and test coverage.

Code Reviews

Semantic diff shows what changed (function added, condition modified, API changed)
instead of raw line diffs. Inline comments anchored to symbols, not lines.

Verified AI Agents

Agent proposes edit → Kai validates impact →
agent executes with proof, not generation with hope.


Architecture

Kai is fully open source under Apache 2.0: core engine, CLI, and server.
Kai Cloud is the hosted version — same code, managed infrastructure.

kai capture → local semantic graph (SQLite)
kai push    → kaicontext.com (Postgres + GCS)
                ├── File viewer with search, language breakdown
                ├── CI with SSE live updates
                ├── Code reviews with semantic diffs
                └── Email notifications (Postmark)

See What's Open Source vs. Kai Cloud.


License

License: Apache-2.0

See LICENSE.


Community & Contributing

Reviews (0)

No results found