
Divide and Conquer MCP Server

2025.03.24
0
JavaScript任务管理开发工具开发效率
Divide and Conquer MCP Server 是一个基于 Model Context Protocol (MCP) 的服务,旨在帮助 AI 代理将复杂任务分解为可管理的部分。它使用结构化的 JSON 格式来存储任务信息、检查清单和上下文,从而更轻松地跟踪进度并在多个对话中保持上下文。
View on GitHub
Overview
产品定位
Divide and Conquer MCP Server 是一个专门用于分解复杂任务的 MCP 服务器,适用于需要将大型任务分解为多个小任务的场景,尤其适合软件开发、项目管理和研究分析。
核心功能
- 结构化 JSON 格式:使用 JSON 结构存储任务信息,而非纯文本。
- 任务跟踪:包含检查清单功能,支持完成状态跟踪。
- 上下文保存:提供专用字段存储任务上下文和详细描述。
- 进度监控:轻松可视化已完成和剩余任务。
- 任务排序:维护任务顺序以支持顺序执行。
- 任务插入:能够在检查清单的特定位置插入新任务。
- 元数据:跟踪标签、优先级和预计完成时间等附加信息。
- 笔记和资源:存储与任务相关的附加笔记和资源。
适用场景
- 复杂软件开发任务:将大型开发任务分解为多个小任务,跟踪进度并保持上下文。
- 项目规划和管理:创建结构化项目计划,跟踪任务完成状态。
- 研究和分析:分解研究问题,跟踪进度并记录资源和发现。
工具列表
initialize_task
:初始化新任务。update_task_description
:更新主任务描述。update_context
:更新所有任务的上下文信息。add_checklist_item
:添加新检查清单项。update_checklist_item
:更新现有检查清单项。mark_task_done
:标记任务为完成。mark_task_undone
:标记任务为未完成。remove_checklist_item
:移除检查清单项。reorder_checklist_item
:重新排序检查清单项。add_note
:添加任务笔记。add_resource
:添加任务资源。update_metadata
:更新任务元数据。clear_task
:清除当前任务数据。get_checklist_summary
:获取检查清单摘要。get_current_task_details
:获取当前任务详情。
常见问题解答
- 数据存储位置:默认存储在
~/.mcp_config/divide_and_conquer.json
(macOS/Linux)或C:\Users\username\.mcp_config\divide_and_conquer.json
(Windows)。 - 文件不存在时:读取时返回空任务结构,写入时自动创建文件。
- 目录不存在时:写入时自动创建目录结构。
- 文件损坏或不可访问:返回适当的错误消息。
使用教程
使用依赖
无特殊依赖,直接通过 npx
或从源码安装。
安装教程
选项 1:使用 npx(推荐)
将以下配置添加到 MCP 配置文件中:
{
"mcpServers": {
"divide-and-conquer": {
"command": "npx",
"args": ["-y", "@landicefu/divide-and-conquer-mcp-server"],
"disabled": false
}
}
}
选项 2:从源码安装
-
克隆仓库:
bash git clone https://github.com/landicefu/divide-and-conquer-mcp-server.git cd divide-and-conquer-mcp-server
-
安装依赖:
bash npm install
-
构建服务器:
bash npm run build
-
将以下配置添加到 MCP 配置文件中:
json { "mcpServers": { "divide-and-conquer": { "command": "node", "args": ["/path/to/divide-and-conquer-mcp-server/build/index.js"], "disabled": false } } }
调试方式
使用以下命令初始化任务并添加检查清单项:
await use_mcp_tool({
server_name: "divide-and-conquer",
tool_name: "initialize_task",
arguments: {
task_description: "Refactor the authentication system",
context_for_all_tasks: "The current system uses session-based authentication."
}
});
await use_mcp_tool({
server_name: "divide-and-conquer",
tool_name: "add_checklist_item",
arguments: {
task: "Analyze current authentication flow",
detailed_description: "Review the existing authentication code.",
context_and_plan: "Look at src/auth/* files. The current implementation uses express-session with MongoDB store."
}
});