Skip to main content
Glama

Decision Tree MCP Server

by psikosen

dt_mcp 服务器(决策树和任务管理 MCP 服务器)

该项目实现了一个基于 Node.js 的模型上下文协议 (MCP) 服务器,用于管理和与.rtdq文件中定义的决策树进行交互,并处理基本的待办事项列表。它使用 Redis 作为后端,用于存储已解析的.rtdq数据和待办事项列表。

特征

  • RTDQ 处理:
    • 从指定目录加载.rtdq文件(v2.1 格式)。
    • 异步解析.rtdq文件。
    • 将解析后的决策树数据存储在 Redis 中。
    • 提供 MCP 工具( get_dt_node_from_redis )来从加载的树中检索特定节点。
  • 待办事项管理:
    • 提供 MCP 工具( add_todolist_todosmark_todo_done )来管理简单的待办事项列表。
    • 将待办事项存储在 Redis 中。
  • MCP 集成:
    • 充当标准 MCP 服务器。
    • 通过/mcp端点上的 HTTP 服务器发送事件 (SSE) 进行通信。
    • 通过标准 MCP tools/listtools/call方法公开功能。

先决条件

  • Node.js(建议使用 v16+ 版本,用于 ES 模块和顶层 await)
  • 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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Node.js MCP 服务器从 .rtdq 文件加载和管理决策树,并使用 Redis 进行存储提供基本的待办事项列表功能。

  1. 特征
    1. 先决条件
      1. 设置
        1. 运行服务器

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Node.js server that allows browsing Git repositories through MCP, providing tools to view directory structures and read important files from repositories.
            Last updated -
            2
            JavaScript
            MIT License
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            An MCP server that provides tools and resources for managing a coding project's todo list, allowing users to view, add, update, and delete todo items with details like priority, status, and tags.
            Last updated -
            1
            Python
          • -
            security
            A
            license
            -
            quality
            An MCP server that enables fetching web content using the Node.js undici library, supporting various HTTP methods, content formats, and request configurations.
            Last updated -
            66
            8
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            F
            license
            A
            quality
            An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
            Last updated -
            39
            28
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/psikosen/dt_mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server