Kahuna

Kahuna

A persistent memory MCP server for AI copilots that automatically surfaces relevant context across sessions, projects, and teams, eliminating the need to repeat information.

Category
访问服务器

README

<div align="center"> <h1>🧠 Kahuna</h1> <p><strong>Your AI copilot's memory. Persistent context across sessions, projects, and teams.</strong></p> <p>Give your coding agent the context it needs — automatically.</p> <p> <a href="https://github.com/Aurite-ai/kahuna/stargazers"><img src="https://img.shields.io/github/stars/Aurite-ai/kahuna?style=social" alt="GitHub stars"></a> <a href="https://www.npmjs.com/package/@aurite-ai/kahuna"><img src="https://img.shields.io/npm/v/@aurite-ai/kahuna" alt="npm version"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> <a href="https://github.com/Aurite-ai/kahuna/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> <a href="https://github.com/Aurite-ai/kahuna/commits"><img src="https://img.shields.io/github/last-commit/Aurite-ai/kahuna" alt="Last commit"></a> </p> <p>Works with <strong>Claude Code</strong> · more copilots coming soon</p> </div>


The Problem

Every time you start a new conversation with your AI copilot, it forgets everything.

  • 🔄 You repeat the same context about your project, your team, your standards
  • 🤷 The copilot makes mistakes you've already corrected in past sessions
  • 📄 Your policies, specs, and business rules sit in files the copilot never sees
  • 🧠 Decisions and rationale from past conversations are lost forever

Copilots are powerful — but they have amnesia.

The Solution

Kahuna gives your copilot a persistent memory that grows smarter over time.

Without Kahuna With Kahuna
Copilot starts fresh every session Copilot remembers what it learned
You repeat context manually Context surfaces automatically
Knowledge lives in your head Knowledge lives in a structured KB
Decisions are forgotten Decisions persist across sessions

How it works: Kahuna runs as an MCP server alongside your copilot. You teach it your context once — policies, specs, decisions, patterns — and it proactively surfaces the right knowledge for each task.

🔒 All data stays local. Your code and context never leave your machine.


Quickstart (Claude Code)

Step 1: Add Kahuna to Claude Code

claude mcp add kahuna -s user -e ANTHROPIC_API_KEY="your-anthropic-api-key" -- npx @aurite-ai/kahuna

Scope options:

  • -s project — Config stored for current project only
  • -s user — Config stored globally (available across all projects)

Step 2: In any project, tell your copilot:

"Set up Kahuna"

This deploys copilot rules and runs onboarding. The copilot asks a few questions to understand your context — this only happens once.

Step 3: Start teaching it your context:

"learn ~/Downloads/api-guidelines.pdf"

"learn the docs/ folder"

Step 4: Start working — Kahuna surfaces the right context automatically.

"build a customer support agent"

Kahuna feeds your copilot your API conventions, auth patterns, and related context. No reminders needed.

<details> <summary>📦 More installation options (npm global, Docker, from source)</summary>

<br>

npm (Global Install)

npm install -g @aurite-ai/kahuna

Configure your MCP client to use kahuna-mcp as the command.

npx (No Install)

npx @aurite-ai/kahuna

Docker

docker pull kahuna/mcp
docker run -i kahuna/mcp

From Source

git clone https://github.com/Aurite-ai/kahuna.git
cd kahuna
pnpm install
pnpm --filter @aurite-ai/kahuna build
pnpm --filter @aurite-ai/kahuna bundle

</details>


What It Looks Like

You teach Kahuna your company's context:

"learn ~/docs/api-guidelines.pdf"

"learn the docs/ folder"

Later, you start a task:

"build a customer support agent"

Kahuna automatically surfaces the relevant context to your copilot:

  • ✅ Your API conventions and auth patterns
  • ✅ Customer data models and access policies
  • ✅ Error handling and response format standards
  • ✅ Related endpoints already in the codebase

Your copilot builds it right the first time — no reminders needed.


How It Works

┌─────────────────────────────────────────────────────────────────┐
│  YOU                          COPILOT                  KAHUNA   │
│                                                                 │
│  "set up Kahuna"  ─────────►  deploys rules  ─────►  .claude/   │
│                               asks questions          stores    │
│                                                       context   │
│                                                                 │
│  "learn these docs" ───────►  kahuna_learn   ─────►  knowledge  │
│                                                       base      │
│                                                                 │
│  "build feature X" ────────►  kahuna_prepare ─────►  surfaces   │
│                               _context                relevant  │
│                                                       files     │
└─────────────────────────────────────────────────────────────────┘

💡 If Kahuna saves you from repeating yourself, consider giving it a ⭐. It helps others discover the project.


Contents


How It Compares

Feature Kahuna Copilot Memory RAG Tools Manual Context
Persists across sessions Partial
Learns from files & conversations Files only N/A
Proactive context surfacing Query-based
Auto-classifies knowledge Manual
Works across projects Varies
Zero-config for copilot
Data stays local Varies

Kahuna is not a replacement for built-in copilot memory — it's what copilot memory should have been.


Features

  • 🧠 Knowledge Base — Store, categorize, and retrieve context from markdown files
  • 🎯 Smart Context Surfacing — Automatically surface relevant knowledge for your task
  • 🔗 Integration Management — Discover, verify, and use external service integrations
  • 🔐 Secure Credential Vault — Store and manage secrets with multiple provider support
  • 📊 Usage Tracking — Monitor token consumption and costs per project
  • 🚀 Onboarding System — Guided setup for organization and project context

Available Tools

Tool Description
kahuna_initialize Deploys copilot rules, runs onboarding
kahuna_learn Adds files to knowledge base with classification
kahuna_prepare_context Surfaces relevant knowledge for a task
kahuna_ask Quick Q&A against the knowledge base
kahuna_delete Remove outdated files from the knowledge base
kahuna_provide_context Store org or user context in the knowledge base
kahuna_usage View token usage and cost summary for the project
kahuna_list_integrations List all discovered integrations and their status
kahuna_use_integration Execute operations on discovered integrations
kahuna_verify_integration Verify integration credentials and connectivity
health_check Verify MCP server connectivity

Documentation

For Users:

For Contributors:


Contributing

We welcome contributions of all kinds!

<details> <summary>🛠️ Developer Setup</summary>

<br>

Prerequisites

  • Node.js 18+
  • pnpm 9+

Quick Start

# Install dependencies
pnpm install

# Set up environment
cp apps/mcp/.env.example apps/mcp/.env

# Build workspace packages
pnpm build

# Run tests
pnpm test

Scripts

Command Description
pnpm build Build all packages (via Turborepo)
pnpm test Run all tests across workspace
pnpm lint Lint codebase (Biome)
pnpm lint:fix Lint and auto-fix issues
pnpm format Format codebase (Biome)
pnpm typecheck Type-check all packages
pnpm clean Remove build artifacts and caches

Testing CLI

Command Description
pnpm kahuna-test Run testing CLI
pnpm test:create Create a test project from a scenario
pnpm test:list List available scenarios and test projects
pnpm test:collect Collect results from a test session

Project Structure

kahuna/
├── apps/
│   └── mcp/                # MCP server (stdio) — context management tools
│       ├── src/
│       │   ├── knowledge/  # Knowledge base domain logic (agents, storage, surfacing)
│       │   ├── integrations/   # External service integration management
│       │   ├── vault/      # Secure credential management
│       │   ├── usage/      # Token usage and cost tracking
│       │   └── tools/      # MCP tool handlers
│       └── templates/      # Project initialization templates
├── packages/
│   ├── testing/            # QA testing infrastructure (scenarios + CLI)
│   └── vck-templates/      # Copilot configuration templates
└── docs/                   # Documentation

</details>


License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选