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.
Install Karajan Code
Built from the published package, never by AI.
claude mcp add karajan-code -- npx -y karajan-codeRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"karajan-code": {
"args": [
"-y",
"karajan-code"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"karajan-code": {
"args": [
"-y",
"karajan-code"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"karajan-code": {
"args": [
"-y",
"karajan-code"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add karajan-code -- npx -y karajan-code{
"mcpServers": {
"karajan-code": {
"args": [
"-y",
"karajan-code"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add karajan-code npx -y karajan-codeGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
