
incomestreamsurfer/roo-code-memory-bank-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Этот проект реализует основную функциональность системы Roo Code Memory Bank как сервера протокола Model Context Protocol (MCP).
Обзор
Этот проект реализует основную функциональность системы Roo Code Memory Bank как сервера протокола Model Context Protocol (MCP). Он позволяет ИИ-помощникам поддерживать контекст проекта через сеансы, взаимодействуя с файловым банком памяти с использованием структурированных инструментов MCP. Этот MCP-сервер предоставляет следующие инструменты: Создает банк памяти / каталог и стандартные файлы .md (productContext.md, activeContext.md, progress.md, decisionLog.md, systemPatterns.md) с исходными шаблонами. * Ввод: (Необязательно) {"project brief content": строка } * Выход: { "статус": "успех" | "ошибка", "сообщения"?: строка [], "сообщение"?: строка } *: Проверяет, существует ли банк памяти/каталог и перечисляет файлы .md в нем. * Ввод: {} * Выход: { "существует": булевый, "файлы": строка [] } * : Считывает полное содержимое определенного файла банка памяти. * Ввод: { "file name": строка } * Выход: { "контент": строка } или объект ошибки.
Обзор (машинный перевод)
Этот проект реализует основную функциональность системы Roo Code Memory Bank как сервера протокола Model Context Protocol (MCP). Он позволяет ИИ-помощникам поддерживать контекст проекта через сеансы, взаимодействуя с файловым банком памяти с использованием структурированных инструментов MCP.
Особенности
Этот MCP-сервер предоставляет следующие инструменты:
** initialize_memory_bank**: Создает каталог memory-bank/ и стандартные .md файлы [[T3], activeContext.md, progress.md, decisionLog.md, systemPatterns.md] с начальными шаблонами.
** Ввод*: (необязательно) { "project_brief_content": string }
Output: { "status": "success" | "error", "messages"?: string[], "message"?: string }
[[Т10]]: Проверяет, существует ли каталог memory-bank/ и перечисляет файлы .md в нем.
** Ввод: [[Т13]]
** Автомат*: { "exists": boolean, "files": string[] }
read_memory_bank_file: Считывает полное содержимое определенного файла банка памяти.
** Ввод*: [[Т16]]
Вывод: { "content": string } или объект ошибки.
append_memory_bank_entry: Добавляет новую временную запись в указанный файл, необязательно под конкретным заголовком разметки.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Roo Code Memory Bank MCP Server
This project implements the core functionality of the Roo Code Memory Bank system as a Model Context Protocol (MCP) server. It allows AI assistants to maintain project context across sessions by interacting with a file-based memory bank using structured MCP tools.
Features
This MCP server provides the following tools:
initialize_memory_bank: Creates thememory-bank/directory and standard.mdfiles (productContext.md,activeContext.md,progress.md,decisionLog.md,systemPatterns.md) with initial templates.- Input: (Optional)
{ "project_brief_content": string } - Output:
{ "status": "success" | "error", "messages"?: string[], "message"?: string }
- Input: (Optional)
check_memory_bank_status: Checks if thememory-bank/directory exists and lists the.mdfiles within it.- Input:
{} - Output:
{ "exists": boolean, "files": string[] }
- Input:
read_memory_bank_file: Reads the full content of a specified memory bank file.- Input:
{ "file_name": string } - Output:
{ "content": string }or error object.
- Input:
append_memory_bank_entry: Appends a new, timestamped entry to a specified file, optionally under a specific markdown header. Creates the file if it doesn’t exist.- Input:
{ "file_name": string, "entry": string, "section_header"?: string } - Output:
{ "status": "success" | "error", "message": string }
- Input:
Prerequisites
- Node.js (v18 or later recommended)
- npm (usually included with Node.js)
- An MCP client environment (like the one used by Cline) capable of managing and launching MCP servers.
Installation
- Clone the repository:
git clone https://github.com/IncomeStreamSurfer/roo-code-memory-bank-mcp-server.git cd roo-code-memory-bank-mcp-server - Install dependencies:
npm install - Build the project:
This compiles the TypeScript code into JavaScript in thenpm run builddist/directory.
Configuration (for Cline MCP Client)
To make this server available to your AI assistant (like Cline), you need to add its configuration to your MCP settings file (e.g., cline_mcp_settings.json).
Find the mcpServers object in your settings file and add the following entry:
{
"mcpServers": {
// ... other server configurations ...
"roo-code-memory-bank-mcp": {
"autoApprove": [
"initialize_memory_bank",
"check_memory_bank_status",
"read_memory_bank_file",
"append_memory_bank_entry"
],
"disabled": false,
"timeout": 60,
"command": "node", // Or "cmd.exe" with "/c node ..." on Windows if needed
"args": [
// IMPORTANT: Replace this path with the actual absolute path
// to the compiled index.js file on your system
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
// ... other server configurations ...
"roo-code-memory-bank-mcp": {
"autoApprove": [
"initialize_memory_bank",
"check_memory_bank_status",
"read_memory_bank_file",
"append_memory_bank_entry"
],
"disabled": false,
"timeout": 60,
"command": "node", // Or "cmd.exe" with "/c node ..." on Windows if needed
"args": [
// IMPORTANT: Replace this path with the actual absolute path
// to the compiled index.js file on your system
"/path/to/your/cloned/repo/roo-code-memory-bank-mcp-server/dist/index.js"
],
"env": {},
"transportType": "stdio"
}
// ... other server configurations ...
}
}