Skip to content

MCP Tools Reference

Run the full coder → sonar → reviewer pipeline with real-time progress notifications.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description
coderstringNoFrom configAI agent for code generation
coderModelstringNonullSpecific model for coder
reviewerstringNoFrom configAI agent for code review
reviewerModelstringNonullSpecific model for reviewer
reviewerFallbackstringNoFrom configFallback reviewer if primary fails
reviewerRetriesnumberNo1Max review retries on parse error
plannerstringNonullAI agent for planning
plannerModelstringNonullSpecific model for planner
refactorerstringNonullAI agent for refactoring
refactorerModelstringNonullSpecific model for refactorer
modestringNostandardReview mode: paranoid | strict | standard | relaxed
methodologystringNotddDevelopment methodology: tdd | standard
maxIterationsnumberNo5Max coder/reviewer loop iterations
maxIterationMinutesnumberNo5Timeout per iteration (minutes)
maxTotalMinutesnumberNoFrom configTotal session timeout (minutes)
baseBranchstringNomainGit base branch for diffs
baseRefstringNonullExplicit base git ref for diff
branchPrefixstringNofeat/Git branch prefix
enablePlannerbooleanNofalseEnable planning role
enableReviewerbooleanNotrueEnable review role
enableRefactorerbooleanNofalseEnable refactoring role
enableResearcherbooleanNofalseEnable research role
enableTesterbooleanNofalseEnable test quality audit
enableSecuritybooleanNofalseEnable OWASP security audit
enableTriagebooleanNofalseEnable task complexity triage
enableSerenabooleanNofalseEnable Serena semantic analysis
autoCommitbooleanNofalseAuto-commit after approval
autoPushbooleanNofalseAuto-push after commit
autoPrbooleanNofalseCreate PR after push
autoRebasebooleanNotrueRebase on base branch before push
noSonarbooleanNofalseSkip SonarQube analysis
pgTaskstringNonullPlanning Game card ID (e.g., PRJ-TSK-0042)
pgProjectstringNonullPlanning Game project ID
kjHomestringNo~/.karajanOverride KJ_HOME directory
sonarTokenstringNoFrom configOverride SonarQube token
enableImpeccablebooleanNofalseEnable Impeccable design audit (automated UI/UX quality gate)
enableHuReviewerbooleanNofalseEnable HU story certification (user story quality gate). Auto-activated by triage for medium/complex tasks since v1.38.0
huFilestringNonullPath to user story file for HU reviewer. Optional — when auto-activated by triage, hu-reviewer works without a file
taskTypestringNonullTask type for policy resolution: sw, infra, doc, add-tests, refactor
autoSimplifybooleanNotrueAuto-simplify pipeline for triage level 1-2 (coder-only, skip reviewer/tester). Set to false to always run the full pipeline
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Run coder-only mode — skip the review loop. Useful for quick changes.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description
coderstringNoFrom configAI agent for coding
coderModelstringNonullSpecific model for coder
kjHomestringNo~/.karajanOverride KJ_HOME directory
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Run reviewer-only mode against the current diff. Useful after manual changes.

ParameterTypeRequiredDefaultDescription
taskstringYesReview task description
reviewerstringNoFrom configAI agent for review
reviewerModelstringNonullSpecific model for reviewer
baseRefstringNonullBase ref for diff comparison
kjHomestringNo~/.karajanOverride KJ_HOME directory
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Generate an implementation plan without writing code, with heartbeat/stall telemetry and clearer diagnostics for long runs.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description
plannerstringNoFrom configAI agent for planning
plannerModelstringNonullSpecific model for planner
kjHomestringNo~/.karajanOverride KJ_HOME directory
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Resume a paused session (e.g., after fail-fast or clarification question).

ParameterTypeRequiredDefaultDescription
sessionIdstringYesSession ID to resume (e.g., s_2026-02-28T20-47-24-270Z)
answerstringNonullAnswer to the question that caused the pause
kjHomestringNo~/.karajanOverride KJ_HOME directory

Read and display session reports with budget tracking.

ParameterTypeRequiredDefaultDescription
listbooleanNofalseList all session IDs instead of showing the latest
sessionIdstringNoLatestSpecific session ID to read
formatstringNotextOutput format: text | json
tracebooleanNofalseShow stage-by-stage breakdown with timing and costs
currencystringNousdCost display currency: usd | eur
kjHomestringNo~/.karajanOverride KJ_HOME directory

Run SonarQube scan on the current project.

ParameterTypeRequiredDefaultDescription
kjHomestringNo~/.karajanOverride KJ_HOME directory
sonarTokenstringNoFrom configOverride SonarQube token
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Initialize karajan-code configuration, review rules, and SonarQube setup.

ParameterTypeRequiredDefaultDescription
kjHomestringNo~/.karajanCustom KJ_HOME directory
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Check system dependencies and agent CLIs (claude, codex, gemini, aider).

ParameterTypeRequiredDefaultDescription
kjHomestringNo~/.karajanOverride KJ_HOME directory
timeoutMsnumberNonullCommand timeout in milliseconds (legacy; prefer heartbeat/stall telemetry and session silence guardrails)

Show current configuration (pretty-print or JSON).

ParameterTypeRequiredDefaultDescription
jsonbooleanNofalseOutput as JSON instead of pretty-print
kjHomestringNo~/.karajanOverride KJ_HOME directory

List pipeline roles or show a specific role template.

ParameterTypeRequiredDefaultDescription
actionstringNolistAction: list | show
roleNamestringNonullRole to inspect (e.g., coder, reviewer, reviewer-paranoid)
kjHomestringNo~/.karajanOverride KJ_HOME directory

List or change AI agent assignments per role. Supports session, project, and global scope.

ParameterTypeRequiredDefaultDescription
actionstringNolistAction: list | set
rolestringNonullRole to change (e.g., coder, reviewer) — required for set
providerstringNonullProvider to assign (e.g., claude, codex) — required for set

Human confirms agent configuration before kj_run/kj_code executes. Required before first run in each MCP session.

ParameterTypeRequiredDefaultDescription
humanResponsestringYesHuman’s response: "ok" to confirm, or natural language to adjust (e.g., "use gemini as coder")
coderstringNonullOverride coder agent
reviewerstringNonullOverride reviewer agent
testerstringNonullOverride tester agent
securitystringNonullOverride security agent
solomonstringNonullOverride solomon agent
enableTesterbooleanNonullEnable/disable tester role
enableSecuritybooleanNonullEnable/disable security role

Show real-time status and log of the current or last Karajan run. Returns a parsed status summary (current stage, agent, iteration, errors) plus recent log lines.

ParameterTypeRequiredDefaultDescription
linesnumberNo50Number of log lines to show

Response includes:

  • status.currentStage — which stage is currently running
  • status.currentAgent — which AI agent is active
  • status.iteration — current iteration number
  • status.isRunning — whether a run is in progress
  • status.errors — last 3 error lines

Read-only codebase health audit across 5 dimensions: security, code quality, performance, architecture, and testing. Generates a structured report with A-F scores and prioritized recommendations without modifying any files.

ParameterTypeRequiredDefaultDescription
taskstringNonullOptional focus area or specific concern to audit
projectDirstringNocwdProject directory to audit
kjHomestringNo~/.karajanOverride KJ_HOME directory

Run discovery analysis on a task using multiple analytical frameworks (gaps, Mom Test, Wendel, JTBD).

ParameterTypeRequiredDefaultDescription
taskstringYesTask description to analyze
modestringNogapsDiscovery mode: gaps | momtest | wendel | classify | jtbd
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_discover",
"params": {
"task": "Add multi-tenancy support",
"mode": "jtbd"
}
}

Classify task complexity and determine which pipeline roles should be activated.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description to classify
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_triage",
"params": {
"task": "Fix typo in the README"
}
}

Investigate codebase context relevant to a task before planning or coding.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description to research
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_researcher",
"params": {
"task": "Refactor the authentication module"
}
}

Design solution architecture for a task, producing a structured design document.

ParameterTypeRequiredDefaultDescription
taskstringYesTask description to architect
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_architect",
"params": {
"task": "Migrate from REST to GraphQL"
}
}

Start, stop, or check the status of the HU Board dashboard.

ParameterTypeRequiredDefaultDescription
actionstringYesAction: start | stop | status
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_board",
"params": {
"action": "start"
}
}

Manage user stories (create, update, list, get) in the local HU Board.

ParameterTypeRequiredDefaultDescription
actionstringYesAction: create | update | list | get
titlestringNonullUser story title (required for create)
descriptionstringNonullUser story description
huIdstringNonullHU identifier (required for update and get)
statusstringNonullHU status
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_hu",
"params": {
"action": "create",
"title": "As a user I want to reset my password",
"description": "Password reset flow with email verification"
}
}

Send an observation to Solomon without interrupting the pipeline. Useful for providing context or hints that Solomon can consider in its next evaluation.

ParameterTypeRequiredDefaultDescription
observationstringYesObservation or suggestion for Solomon
sessionIdstringNoLatestSession ID to target
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_suggest",
"params": {
"observation": "The reviewer is focusing on naming conventions — consider overriding"
}
}

List, install, or remove domain-specific skills for pipeline roles. Skills extend coder, reviewer, and architect prompts with domain knowledge.

ParameterTypeRequiredDefaultDescription
actionstringNolistAction: list | install | remove
skillstringNonullSkill identifier (required for install and remove)
projectDirstringNocwdProject directory

Example:

{
"tool": "kj_skills",
"params": {
"action": "install",
"skill": "react-patterns"
}
}

All tools return a structured response:

Success:

{
"ok": true,
"sessionId": "s_...",
...
}

Error:

{
"ok": false,
"error": "Error message",
"tool": "kj_run",
"category": "sonar_unavailable",
"suggestion": "Actionable fix suggestion"
}

Error categories: sonar_unavailable, auth_error, config_error, agent_missing, timeout, branch_error, agent_stall, git_error, unknown.