Integrations
Manages a project memory bank using Markdown files, providing tools to initialize, read, and append to structured context files that maintain project knowledge across sessions.
Serves as the runtime environment for the memory bank system, allowing file operations to create, check, read, and update the contextual knowledge base.
RooコードメモリバンクMCPサーバー
このプロジェクトは、Roo Code Memory Bankシステムのコア機能をモデルコンテキストプロトコル(MCP)サーバーとして実装します。これにより、AIアシスタントは構造化されたMCPツールを使用してファイルベースのメモリバンクとやり取りすることで、セッション間でプロジェクトのコンテキストを維持できるようになります。
特徴
この MCP サーバーは次のツールを提供します。
initialize_memory_bank
: 初期テンプレートを使用して、memory-bank/
ディレクトリと標準.md
ファイル (productContext.md
、activeContext.md
、progress.md
、decisionLog.md
、systemPatterns.md
) を作成します。- 入力: (オプション)
{ "project_brief_content": string }
- 出力:
{ "status": "success" | "error", "messages"?: string[], "message"?: string }
- 入力: (オプション)
check_memory_bank_status
:memory-bank/
ディレクトリが存在するかどうかを確認し、その中の.md
ファイルを一覧表示します。- 入力:
{}
- 出力:
{ "exists": boolean, "files": string[] }
- 入力:
read_memory_bank_file
: 指定されたメモリ バンク ファイルの完全な内容を読み取ります。- 入力:
{ "file_name": string }
- 出力:
{ "content": string }
またはエラー オブジェクト。
- 入力:
append_memory_bank_entry
: 指定されたファイルに、タイムスタンプ付きの新しいエントリを追加します。オプションで、特定のマークダウンヘッダーを付けて追加します。ファイルが存在しない場合は作成します。- 入力:
{ "file_name": string, "entry": string, "section_header"?: string }
- 出力:
{ "status": "success" | "error", "message": string }
- 入力:
前提条件
- Node.js (v18以降を推奨)
- npm (通常はNode.jsに含まれています)
- MCP サーバーを管理および起動できる MCP クライアント環境 (Cline で使用されるものなど)。
インストール
- リポジトリをクローンします。Copy
- 依存関係をインストールします:Copy
- プロジェクトをビルドします。これにより、TypeScript コードがCopy
dist/
ディレクトリ内の JavaScript にコンパイルされます。
構成(Cline MCP クライアント用)
このサーバーを AI アシスタント (Cline など) で使用できるようにするには、その構成を MCP 設定ファイル (例: cline_mcp_settings.json
) に追加する必要があります。
設定ファイルでmcpServers
オブジェクトを見つけて、次のエントリを追加します。
重要: /path/to/your/cloned/repo/
リポジトリをクローンしたマシンへの正しい絶対パスに置き換えてください。パス区切り文字がオペレーティングシステムに合っていることを確認してください(例:Windowsではバックスラッシュ「 \
を使用)。
サーバーの実行
通常、サーバーを手動で起動する必要はありません。MCPクライアント(Clineなど)は、ツールのいずれかが初めて呼び出されたときに、設定ファイルに指定されたcommand
とargs
を使用してサーバーを自動的に起動します。
手動でテストしたい場合は、プロジェクトディレクトリからnpm start
を実行できます。
使用法
AIアシスタントは定義されたツールを使用してサーバーとやり取りします。典型的なワークフローは以下のとおりです。
- メモリバンクのステータスを確認しています (
check_memory_bank_status
)。 - 必要に応じて初期化します (
initialize_memory_bank
)。 - コンテキストを取得するために関連ファイルを読み取ります (
read_memory_bank_file
)。 - 決定が下されるか、進捗が発生すると、エントリを追加します (
append_memory_bank_entry
)。
サーバー プロセスが開始されるディレクトリと同じディレクトリにmemory-bank/
ディレクトリが作成されます (MCP クライアント構成を介して起動された場合、このプロジェクト ディレクトリのルートになります)。
カスタム指示
これらの指示をRoo内で設定します
必要に応じてMCPを使用する必要があります
特定の MCP フローがあります:
context7 を使用して、このプロセスに必要な関連ドキュメントを見つけます。関連する知識は、関連するサブタスクに必ずフィードしてください。不明な点がある場合は、常に context7 を使用して重要なドキュメントを調査してください。+ を検索するには、Google マップの MCP を使用します。これにより、タスクを実行するために必要な基本的なビジネスを見つけることができます。Brave Search MCP を使用して、スクレイピングする URL を検索します。fetch_txt および fetch_markdown で fetch mcp を使用して、ページ上のテキストと画像を検索し、JSON ファイルに変換して詳細な情報を作成します。openrouter 検索を使用して、トピックやレビューなどの一般的な感情を検索します。
roo-code-memory-bank-mcp
サーバーを利用してプロジェクト コンテキストを維持します。
- タスクまたは重要なサブタスクの開始時に、
check_memory_bank_status
使用します。 - メモリ バンクが存在する場合 (
exists: true
)、関連ファイル (例:productContext.md
、activeContext.md
) に対してread_memory_bank_file
を使用して、現在のプロジェクト コンテキストを読み込みます。 - この意味深いコンテキストを計画と実行に組み込みます。
- 重要な決定、進捗状況の更新、またはアーキテクチャの変更を行う場合は、
append_memory_bank_entry
を使用して適切なファイル (decisionLog.md
、progress.md
など) に情報を記録し、コンテキストの永続性を確保します。 - メモリ バンクが存在しない場合は、プロジェクトに適している場合は、
initialize_memory_bank
使用を検討してください。
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
メモリ バンク ディレクトリに整理されたマークダウン ファイル内の構造化情報を保存および取得することにより、AI アシスタントがセッション間で永続的なプロジェクト コンテキストを維持できるようにします。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol implementation that enables AI assistants to interact with markdown documentation files, providing capabilities for document management, metadata handling, search, and documentation health analysis.Last updated -1434611TypeScriptMIT License
- AsecurityAlicenseAqualityProvides tools for interacting with Targetprocess, a project management and agile planning platform, enabling AI assistants to search, create, and update project entities with proper validation.Last updated -5TypeScriptMIT License
- AsecurityAlicenseAqualityMemory Bank Server provides a set of tools and resources for AI assistants to interact with Memory Banks. Memory Banks are structured repositories of information that help maintain context and track progress across multiple sessions.Last updated -1511113TypeScriptMIT License
- -securityAlicense-qualityA server for managing project documentation and context across Claude AI sessions through global and branch-specific memory banks, enabling consistent knowledge management with structured JSON document storage.Last updated -3177TypeScriptMIT License