Decision Tree MCP Server

Integrations

  • Supports environment configuration through .env files for setting up Redis connection, RTDQ file directory, and server port.

  • Provides integration with Git for repository cloning during the setup process.

  • Built on Node.js to implement the MCP server functionality, with specific requirements for version 16+ to support ES Modules and top-level await.

dt_mcp サーバー (意思決定ツリーとタスク管理 MCP サーバー)

このプロジェクトは、Node.jsベースのModel Context Protocol(MCP)サーバーを実装します。このサーバーは、 .rtdqファイルで定義された決定木を管理・操作し、基本的なToDoリストを処理するように設計されています。解析済みの.rtdqデータとToDoリストを保存するためのバックエンドとしてRedisを使用します。

特徴

  • RTDQ処理:
    • 指定されたディレクトリから.rtdqファイル (v2.1 形式) を読み込みます。
    • .rtdqファイルを非同期的に解析します。
    • 解析された決定木データを Redis に保存します。
    • ロードされたツリーから特定のノードを取得するための MCP ツール ( get_dt_node_from_redis ) を提供します。
  • ToDo管理:
    • シンプルな ToDo リストを管理するための MCP ツール ( add_todolist_todosmark_todo_done ) を提供します。
    • ToDo 項目を Redis に保存します。
  • MCP統合:
    • 標準の MCP サーバーとして機能します。
    • /mcpエンドポイントで HTTP Server-Sent Events (SSE) を介して通信します。
    • 標準の MCP tools/listおよびtools/callメソッドを介して機能を公開します。

前提条件

  • Node.js (ES モジュールとトップレベルの await には v16 以上を推奨)
  • npm(またはyarn)
  • Redis サーバーが実行中でありアクセス可能

設定

  1. クローンリポジトリ:
    git clone <your-repo-url> cd dt-mcp-server
  2. 依存関係をインストールします:
    npm install
  3. **環境の設定:**プロジェクト ルートに.envファイルを作成するか ( .gitignoreに追加する)、環境変数を設定します。
    • REDIS_URL : Redisサーバーへの接続URL(例: redis://localhost:6379 )。デフォルトはredis://localhost:6379
    • RTDQ_DIR : (オプション) .rtdqファイルを含むディレクトリへの絶対パス。デフォルトはプロジェクト内のrtdq_filesというサブディレクトリです。
    • PORT : (オプション) サーバーがリッスンするポート。デフォルトは3000です。
  4. RTDQディレクトリの作成: RTDQ_DIRで指定されたディレクトリ(またはデフォルトのrtdq_filesサブディレクトリ)が存在することを確認してください.rtdqファイルをその中に配置してください。

サーバーの実行

npm start
-
security - not tested
F
license - not found
-
quality - not tested

.rtdq ファイルから決定木を読み込んで管理し、ストレージに Redis を使用して基本的な ToDo リスト機能を提供する Node.js MCP サーバー。

  1. Features
    1. Prerequisites
      1. Setup
        1. Running the Server
          ID: uxbuuglms5