Command Palette

Search for a command to run...

Home / Servers

kuma

by plumpslabs

Kuma Logo
# Kuma

Safety-first context & orchestration engine for AI coding agents.

npm license: MIT node: >=18

Works with any MCP-compatible agent: Claude Code, Cursor, Windsurf, Zed, and more.


What is Kuma?

Kuma is an MCP (Model Context Protocol) server that acts as a pre-modification safety layer for AI coding agents. Before an agent touches your code, Kuma enforces a research and safety pipeline — like a pre-flight checklist for code changes.

The Problem: AI agents often modify code without understanding the full context — missing dependencies, breaking related features, or repeating past mistakes.

The Solution: Kuma is a shadow memory that injects "where is this file fragile and why is it written this way" right before the agent touches it:

  • 🪄 Auto-inject hooks — gotchas/decisions/history injected before every edit, zero extra steps
  • 🧠 Knowledge graph — SQLite-based derived cache (hash-verified, never stale)
  • 📝 Decision memory — ADR-style decision tracking across sessions
  • 📊 Kuma Studio — Visual dashboard for gotchas, decisions, and shadow-memory metrics

Quick Start

# Run with npx (zero setup)
npx -y @plumpslabs/kuma

# Or install globally
npm install -g @plumpslabs/kuma
kuma

Kuma auto-generates:

  • .kuma/init.md — Project-specific behavioral rules
  • .kuma/kuma.db — SQLite knowledge graph (WASM, zero native build)
  • .skills/ — Skill files for common patterns

Core Architecture: 3 Pipeline-Driven Tools

Kuma provides 3 coarse-grained tools with impactful actions. Removed gimmick actions (add_node, feature, heal, harvest, session_mine, todo, context, benchmark, domain_rules, layers, noise_policy, lock, override, policy, contract, portability, doctor, gitignore, clean, progressive, sync, visualize, researches) are no longer documented.

🧠 kuma_context — Context & Research

ActionPurposeImpact
initLean project brief + restore session🔴 Required first
research5-step pipeline: cache → graph → scan → impact → decision🔴 Required before edits
historyWhy is this file written this way (cross-session trace)🔴 High
flowHash-verified derived flow cache (F13)🔴 High
impactAnalyze change effects on related code🟡 Linear
navigateTrace code flow across files🟡 Linear
changesView change log for current session🟡 Linear
rollbackUndo a specific change by ID🟡 Linear
digestUltra-compact <500 token project briefing🟡 Linear
driftDetect memory staleness & code drift🟡 Linear
resumeLoad previous session context🟡 Linear

💾 kuma_memory — Decision & Knowledge

ActionPurposeImpact
gotchaRecord bugs/quirks IMMEDIATELY🔴 Exponential
arch_flowRecord architecture flow (max 5 core files)🔴 Exponential
decisionRecord ADR-style decision with rationale🔴 Exponential
research_saveSave research findings to cache🟡 Linear
mineMine git history for hidden decisions🟡 Linear
sessionView session summary🟢 Skip
searchSearch knowledge graph🟡 Linear
delete_nodeRemove node/gotcha from graph + table🟡 Linear
goal_progressTrack goal completion🟢 Skip

🛡️ kuma_safety — Safety & Verification

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

199,260

mcp-server-git

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs

89,176

mcp-server-fetch

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,176

@modelcontextprotocol/server-everything

OfficialUpdated today

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,176