
用于编码代理的持久内存:一个MCP服务器,用于Claude Code、Claude Desktop、Cursor和VS Code Copilot。只需从npm或PyPI安装一次,然后即可离线运行。
概览
BantamKit 是一个 MCP 服务器:代理保存值得保留的内容——你提到的偏好、决定、有效的修复——并在下一次会话调用,而不是再次请求。它支持、、、以及任何 stdio MCP 客户端。从或 安装一次;之后它就开始运行。 然后用Claude代码重启主机,打开新会话,让代理呼叫bantamkit_status。更喜欢Python?PIP在你保留的VENV中安装“bantamkit[mcp]”,然后bantamkit-mcp——安装Claude。所有路由和主机都在下面。 - 事实是.bantamkit/memory下的普通Markdown文件,经过去重处理并限制字节预算。memory_save和memory_recall负责工作;memory_compact和memory_dream保持存储整洁。- 回忆读取项目存储、你在.bantamkit/config.yaml中授予的任何存储,以及你的配置文件存储~/.bantamkit/memory。保存文件会保存到项目商店。- --install会为Claude Code、Claude Desktop、Cursor或VS Code Copilot写入条目,备份它编辑的文件,且从不提示。
概述(AI 翻译)
给你的编码代理一个能超越会话的记忆。 bantamkit 是一个 MCP 服务器: 代理人保存了值得保留的——你说的偏好、决定、有效的修复—— 并且在下次会话中调用它,而不是再次请求。它与Claude代码、Claude 桌面、光标、GitHub Copilot in VS Code 以及任何标准 MCP 客户端。安装一次 来自 npm 或 PyPI;之后它开始 offline。
🚀 快速开始
然后重启主机(用Claude代码,开启新会话),让代理呼叫
bantamkit_status。更喜欢蟒蛇?pip install "bantamkit[mcp]" 就把它变成你养的 venv
bantamkit-mcp --install claude。所有路线和主机都在下方。
✨ 你得到了什么
- 残存的内存。 事实是
.bantamkit/memory下的普通 Markdown 文件,经过去重处理 并被限制在字节预算内。memory_save和memory_recall完成工作;[memory_compact和memory_dream保持店铺整洁。 - 默认分层。 回忆读取项目存储,即你授予的任何存储
.bantamkit/config.yaml,以及你的配置文件存储~/.bantamkit/memory。存档会去到 项目商店。 - **每个主机一个命令。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
bantamkit — memory MCP server for Claude Code, Cursor, VS Code Copilot and Claude Desktop
Give your coding agent a memory that outlasts the session. bantamkit is an MCP server: the agent saves what is worth keeping — a preference you stated, a decision, the fix that worked — and recalls it next session instead of asking you again. It works with Claude Code, Claude Desktop, Cursor, GitHub Copilot in VS Code and any stdio MCP client. Install it once from npm or PyPI; after that it starts offline.
🚀 Quick start
npx -y bantamkit-mcp@latest --install claude # or claude-desktop, copilot, cursor
Then restart the host (in Claude Code, open a new session) and ask the agent to call
bantamkit_status. Prefer Python? pip install "bantamkit[mcp]" into a venv you keep, then
bantamkit-mcp --install claude. Every route and host is below.
✨ What you get
- Memory that persists. Facts are plain Markdown files under
.bantamkit/memory, deduped and held to a byte budget.memory_saveandmemory_recalldo the work;memory_compactandmemory_dreamkeep the store tidy. - Layered by default. Recall reads the project store, any stores you grant in
.bantamkit/config.yaml, and your profile store~/.bantamkit/memory. Saves go to the project store. - One command per host.
--installwrites the entry for Claude Code, Claude Desktop, Cursor or VS Code Copilot, backs up any file it edits, and never prompts. - Offline after one install. Both install routes record the server by absolute path, so no launch needs the network or your shell’s PATH.
- Claude Code hooks, if you want them.
--install-hooksputs the memory index in front of each new session, surfaces matching facts on each prompt, and nudges a save at the end of a long session that saved nothing (docs/hooks.md). - More than memory. JSON Schema validation, a token ledger read off the host’s transcripts,
安装
npx -y bantamkit-mcp配置
{"mcpServers": {"bantamkit": {"command": "npx", "args": ["-y", "bantamkit-mcp"]}}}