Token导航 LogoToken导航TokenDH.com
Divide and Conquer MCP Server logo
办公协作stdio官方级别未说明来源级核验

Divide and Conquer MCP Server

MCP Server

@smithery/cli

一个用于将复杂任务分解为可管理部分的模型上下文协议(MCP)服务器,采用结构化JSON格式存储任务信息、清单和上下文。

工具数

15

提示词数

0

GitHub Stars

7

资源数

0
AI协作JavaScriptClaude软件开发Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

landicefu

提供方

landicefu

最后核验

2026/5/17 20:28

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @landicefu/divide-and-conquer-mcp-server --client claude

详细介绍

](https://mseep.ai/app/landicefu-divide-and-conquer-mcp-server)

分割并征服MCP服务器

](https://smithery.ai/server/@landicefu/divide-and-conquer-mcp-server)

模型上下文协议(MCP)服务器,使AI代理能够使用结构化JSON格式将复杂任务分解为可管理的部分。

目录

目的

Divide and Conquer MCP Server是Temp Notes MCP Server的升级版,专为需要分解为可管理部分的复杂任务而设计。该服务器不使用简单的文本文件,而是使用结构化的JSON格式来存储任务信息、清单和上下文,从而更容易跟踪进度并维护多个对话的上下文。

主要特点

  • 结构化JSON格式:使用JSON结构存储任务信息,而不是纯文本
  • 任务跟踪:包括检查表功能和完成状态跟踪
  • 上下文保护:任务上下文和详细描述的专用字段
  • 进度监控:轻松可视化已完成任务与剩余任务
  • 任务排序:保持任务顺序,以便按顺序执行
  • 任务插入:能够在清单中的特定位置插入新任务
  • 元数据:跟踪标签、优先级和估计完成时间等其他信息
  • 注释和资源:存储与任务相关的其他笔记和资源

快速开始

  1. 将服务器添加到MCP配置中:
   {
     "mcpServers": {
       "divide-and-conquer": {
         "command": "npx",
         "args": ["-y", "@landicefu/divide-and-conquer-mcp-server"],
         "disabled": false
       }
     }
   }
  1. 开始在对话中使用它:
   // Initialize a new task
   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."
     }
   });

   // Add checklist items
   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."
     }
   });

安装

通过Smithery安装

通过以下方式自动安装克劳德桌面版的分而治之服务器 史密瑟里:

npx -y @smithery/cli install @landicefu/divide-and-conquer-mcp-server --client claude

选项1:使用npx(推荐)

将服务器添加到MCP配置中:

{
  "mcpServers": {
    "divide-and-conquer": {
      "command": "npx",
      "args": ["-y", "@landicefu/divide-and-conquer-mcp-server"],
      "disabled": false
    }
  }
}

选项2:从源代码安装

  1. 克隆存储库:
   git clone https://github.com/landicefu/divide-and-conquer-mcp-server.git
   cd divide-and-conquer-mcp-server
  1. 安装依赖项:
   npm install
  1. 构建服务器:
   npm run build
  1. 将服务器添加到MCP配置中:
   {
     "mcpServers": {
       "divide-and-conquer": {
         "command": "node",
         "args": ["/path/to/divide-and-conquer-mcp-server/build/index.js"],
         "disabled": false
       }
     }
   }

工具

分而治之MCP服务器提供以下工具:

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

检索具有完整上下文的当前任务(第一个未完成的任务)的详细信息,以及具有有限字段的所有其他任务。对于当前任务,包括context_and_plan在内的所有字段都包含在内。对于其他任务,只包括任务、详细描述和完成状态(不包括context_and_plan)。这是处理任务时推荐使用的工具。

使用示例

初始化复杂任务

await use_mcp_tool({
  server_name: "divide-and-conquer",
  tool_name: "initialize_task",
  arguments: {
    task_description: "Refactor the authentication system to use JWT tokens and improve security",
    context_for_all_tasks: "The current system uses session-based authentication with cookies. We need to migrate to JWT for better scalability and security.",
    initial_checklist: [
      {
        task: "Analyze current authentication flow",
        detailed_description: "Review the existing authentication code to understand the current flow.",
        context_and_plan: "Look at src/auth/* files. The current implementation uses express-session with MongoDB store. Pay special attention to session expiration handling."
      },
      {
        task: "Design JWT implementation",
        detailed_description: "Create a design document outlining how JWT will be implemented.",
        context_and_plan: "Consider token structure, storage, and refresh mechanisms. Research best practices for JWT implementation in Node.js applications. Reference the security requirements document in docs/security.md."
      }
    ],
    metadata: {
      tags: ["security", "refactoring", "authentication"],
      priority: "high",
      estimated_completion_time: "2 weeks"
    }
  }
});

获取清单摘要

const summary = await use_mcp_tool({
  server_name: "divide-and-conquer",
  tool_name: "get_checklist_summary",
  arguments: {
    include_descriptions: true
  }
});

// Result contains a formatted summary of the checklist with completion status (context is excluded to save space)

获取当前任务详细信息

const taskDetails = await use_mcp_tool({
  server_name: "divide-and-conquer",
  tool_name: "get_current_task_details",
  arguments: {}
});

// Result contains:
// - ultimate_goal: The final goal of the entire task (task_description)
// - tasks: Array of all tasks, where the current task (first uncompleted) has all fields including context_and_plan,
//   while other tasks have limited fields (task, detailed_description, done) without context_and_plan
// - current_task_index: Index of the current task (first uncompleted)
// - Additional task metadata, notes, resources, etc.

用例

1.复杂的软件开发任务

在处理复杂的软件开发任务时,人工智能代理经常面临上下文窗口的限制,这使得很难在一次对话中完成所有步骤。分而治之MCP服务器允许代理:

  • 将大型任务分解为更小、更易于管理的部分
  • 跟踪多个对话的进度
  • 维护否则会丢失的重要上下文
  • 按逻辑顺序组织任务
  • 记录决策和资源

2.项目规划和管理

对于项目规划和管理任务,服务器启用:

  • 创建包含任务和子任务的结构化项目计划
  • 跟踪进度和完成状态
  • 维护上下文和要求
  • 记录决策和资源
  • 跨多个对话进行协作

3.研究与分析

在进行研究和分析时,代理人可以:

  • 将研究问题分解为特定领域进行调查
  • 跟踪进展和发现
  • 维护上下文和背景信息
  • 文件来源和资源
  • 以结构化的方式组织调查结果

JSON结构

服务器使用以下JSON结构存储任务信息:

{
  "task_description": "A medium-level detailed description about the whole task. The final goal we want to achieve.",
  
  "checklist": [
    {
      "done": false,
      "task": "A short yet comprehensive name for the task",
      "detailed_description": "A longer description about what we want to achieve with this task",
      "context_and_plan": "Related information, files the agent should read, and more details from other tasks, as well as a detailed plan for this task. This is typically the longest string."
    }
  ],
  
  "context_for_all_tasks": "Information that all tasks in the checklist should include.",
  
  "metadata": {
    "created_at": "ISO timestamp",
    "updated_at": "ISO timestamp",
    "progress": {
      "completed": 0,
      "total": 1,
      "percentage": 0
    },
    "tags": ["tag1", "tag2"],
    "priority": "high|medium|low",
    "estimated_completion_time": "ISO timestamp or duration"
  },
  
  "notes": [
    {
      "timestamp": "ISO timestamp",
      "content": "Additional notes or observations about the overall task"
    }
  ],
  
  "resources": [
    {
      "name": "Resource name",
      "url": "URL or file path",
      "description": "Description of the resource"
    }
  ]
}

配置存储

默认情况下,分而治之MCP服务器将任务数据存储在以下位置:

  • 在macOS/Linux上: ~/.mcp_config/divide_and_conquer.json (扩展到 /Users/username/.mcp_config/divide_and_conquer.json)
  • 在Windows上: C:\Users\username\.mcp_config\divide_and_conquer.json

此文件是在您首次初始化任务时自动创建的。如果在您尝试读取任务数据时该文件不存在,服务器将返回一个空的任务结构,并在您下次写入时创建该文件。

服务器处理以下情况:

  • 如果读取时文件不存在:返回空任务结构
  • 如果目录不存在:写入时自动创建目录结构
  • 如果文件已损坏或无法访问:返回相应的错误消息

贡献

欢迎投稿!请随时提交拉取请求。

许可证

此项目根据MIT许可证获得许可-有关详细信息,请参阅许可证文件。

目录标签

目录标签

AI协作JavaScriptClaude软件开发任务管理本地部署JSON结构化进度跟踪

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

local-only

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

15

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotokenlocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP