Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Karajan Code

MCP server by manufosela Verified · npm:karajan-code

Governs AI coding agents with git gates, SonarQube checks, TDD rules and cross-AI code review. It suits developers who want an enforced method behind agents such as Claude Code, Codex and Cursor.

  • Score 88
  • 43 stars
  • 13k a week
  • AGPL-3.0
  • Updated

Install Karajan Code

Built from the published package, never by AI.

claude mcp add karajan-code -- npx -y karajan-code

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Karajan Code in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the karajan-code block.

About

Karajan Code is a local orchestrator for AI-driven development. It installs a method that agents such as Claude Code, Codex, Copilot and Cursor follow on every task, and enforces it with git gates. Before a commit enters, SonarQube runs on the changed files, then a different AI reviews the exact diff. A commit without an approved verdict is rejected.

Karajan also tracks work on a card board, queries the codebase through a RAG index exposed as the kj_rag_query MCP tool, and gives spawned agent subprocesses an env allowlist. It offers nine built-in review agents and a deterministic supervisor for Claude Code sessions. It suits developers who want tests written first, reviewed commits and an audit trail for agent-written code.

Written from the project's README and checked against it.

Tools it gives your assistant

  • kj_rag_queryAnswers questions about the codebase from a local RAG index, installed as a native MCP tool.
  • kj review --stagedRuns SonarQube on staged files, then binds a cross-AI verdict to the exact diff.
  • kj solomonUses a third AI to rule when the brain and the reviewer disagree.
  • kj steward sweepChecks declared project guarantees and reports ok, broken, unknown or not observable.
  • kj audit --securityRuns a zero-token security pass over agent-context files, OSV, Semgrep and Sonar.

What you need

  • git
  • At least one AI agent CLI, such as Claude Code or Codex
  • npm, for the npm install route
  • Ollama, optional, for local embeddings

Try asking

  • Query the codebase with kj_rag_query to find where sessions are stored
  • Run kj review --staged on my current changes before I commit
  • Run a security audit with kj audit --security on this project

Good to know

  • Synchronous blocking hooks exist only in Claude Code.
  • On other hosts the Sentinel supervision is not active and only git gates apply.
  • The classic multiagent pipeline (kj run) was retired in version 5.0.
  • The Sentinel fails open rather than hanging a session.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://karajancode.com/install.sh | sh
  • Asks for administrator rights (sudo)In README.md: sudo
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Karajan Code

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Karajan Code: common questions

Which AI agents does Karajan Code work with?

The source lists Claude Code, Codex, GitHub Copilot, Antigravity, Kimi Code, Qwen, OpenCode, Aider and Gemini legacy as built-in review agents. It also names Cursor as an agent that writes code.

Does Karajan Code need Claude Code?

No. Claude Code is needed only for the synchronous Sentinel hooks inside a turn. On other hosts, git gates still apply and the tool reports which guarantee level is active.

How does the code review work?

SonarQube runs on the changed files first, and BLOCKER or CRITICAL findings reject the change. Then an AI different from the author reviews the exact diff, and the commit enters only with an approved verdict.

How do I install Karajan Code?

In Claude Code run claude mcp add karajan-code -- npx -y karajan-code. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Karajan Code the official server?

Karajan Code is published by npm:karajan-code from its verified domain in the official MCP Registry.

Is Karajan Code free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is Karajan Code safe to use?

It scores 88 of 100. Grades: maintenance A, licence C, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Karajan Code?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Karajan Code work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Karajan Code Install

Add to stack

Loading.