Memory Bank MCP Server

by t3ta
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Integrates with Git branch structure to organize and manage branch-specific memory banks, automatically detecting current branches and maintaining context across feature or fix branches

  • Utilizes GitHub Actions for automated testing across multiple Node.js versions and automated release processes including version bumping, tagging, and npm publishing

  • Supports Markdown format for memory bank documents with migration tools to convert to the newer JSON format

存储库 MCP 服务器

一个记忆库实现,用于使用模型上下文协议 (MCP) 跨会话管理项目文档和上下文。该服务器帮助像 Claude 这样的 AI 代理通过以结构化 JSON 格式存储的全局和特定分支记忆库来保持一致的项目知识。

该项目的灵感来自nickbaumann98/cline_docs存储库中的Cline Memory Bank

套餐

此存储库是一个由 Yarn Workspaces 管理的 monorepo。它包含以下软件包:

  • packages/mcp :MCP 服务器的核心实现。包含处理内存条操作、MCP 工具执行以及服务器启动的主要逻辑。
  • packages/schemas :定义用于记忆库文档的 JSON 模式(例如, memory_document_v2 )。
  • packages/vscode-extension :VSCode 扩展,提供与 Memory Bank MCP 服务器的集成(详情待定)。

入门

先决条件

  • Node.js(请参阅.tool-versions了解推荐版本)
  • Yarn(v1.x)

安装

从根目录克隆存储库并安装依赖项:

git clone https://github.com/t3ta/memory-bank-mcp-server.git cd memory-bank-mcp-server yarn install

运行 MCP 服务器

您可以直接从 monorepo 运行 MCP 服务器:

# From the monorepo root directory yarn workspace @memory-bank/mcp start --docs /path/to/your/docs

/path/to/your/docs替换为项目文档目录的实际路径( global-memory-bankbranch-memory-bank将驻留或创建的位置)。

有关运行服务器及其选项的更多详细信息,请参阅packages/mcp/README.md

发展

  • 构建所有包: yarn build
  • 对所有包运行测试: yarn test
  • 棉绒代码: yarn lint

请参阅每个包目录中的 README 文件,了解特定于包的开发说明。

执照

本项目遵循 MIT 许可证。详情请参阅 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

通过全局和分支特定的存储库来管理 Claude AI 会话中的项目文档和上下文的服务器,从而通过结构化的 JSON 文档存储实现一致的知识管理。

  1. Packages
    1. Getting Started
      1. Prerequisites
      2. Installation
      3. Running the MCP Server
    2. Development
      1. License
        ID: cziza80o10