The Divide and Conquer MCP Server provides a structured way for AI agents to break down complex tasks into manageable pieces using JSON format. It helps maintain context across multiple conversations while tracking progress on complex projects.
Add the server to your MCP configuration:
{
"mcpServers": {
"divide-and-conquer": {
"command": "npx",
"args": ["-y", "@landicefu/divide-and-conquer-mcp-server"],
"disabled": false
}
}
}
To install automatically via Smithery for Claude Desktop:
npx -y @smithery/cli install @landicefu/divide-and-conquer-mcp-server --client claude
Clone the repository:
git clone https://github.com/landicefu/divide-and-conquer-mcp-server.git
cd divide-and-conquer-mcp-server
Install dependencies and build:
npm install
npm run build
Configure your MCP settings:
{
"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 to use JWT tokens",
context_for_all_tasks: "The current system uses session-based authentication with cookies.",
initial_checklist: [
{
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."
},
{
task: "Design JWT implementation",
detailed_description: "Create a design document for JWT implementation.",
context_and_plan: "Consider token structure, storage, and refresh mechanisms."
}
],
metadata: {
tags: ["security", "refactoring"],
priority: "high",
estimated_completion_time: "2 weeks"
}
}
});
await use_mcp_tool({
server_name: "divide-and-conquer",
tool_name: "add_checklist_item",
arguments: {
task: "Implement JWT token generation",
detailed_description: "Create functions to generate and sign JWT tokens",
context_and_plan: "Use the jsonwebtoken library. Include user ID, roles, and expiration time in the payload."
}
});
const taskDetails = await use_mcp_tool({
server_name: "divide-and-conquer",
tool_name: "get_current_task_details",
arguments: {}
});
// Returns the first uncompleted task with full context,
// and other tasks with limited information
await use_mcp_tool({
server_name: "divide-and-conquer",
tool_name: "mark_task_done",
arguments: {
task_index: 0 // Mark the first task as done
}
});
The server automatically stores task data in:
~/.mcp_config/divide_and_conquer.json
C:\Users\username\.mcp_config\divide_and_conquer.json
The file is created automatically when you first initialize a task, and the directory structure is created as needed.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "divide-and-conquer" '{"command":"npx","args":["-y","@landicefu/divide-and-conquer-mcp-server"],"disabled":false}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"divide-and-conquer": {
"command": "npx",
"args": [
"-y",
"@landicefu/divide-and-conquer-mcp-server"
],
"disabled": false
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"divide-and-conquer": {
"command": "npx",
"args": [
"-y",
"@landicefu/divide-and-conquer-mcp-server"
],
"disabled": false
}
}
}
3. Restart Claude Desktop for the changes to take effect