Complex plan
Enhance development AI workflows with advanced planning and sequential thinking capabilities.
MCP Complex Plans Server
A Model Context Protocol (MCP) server designed to enhance AI workflows with advanced planning and sequential thinking capabilities. This server enables AI agents to create structured plans, manage tasks efficiently, and integrate seamlessly with development environments.
Note
This tool has been developed mainly to work with Mistral Vibe CLI, but it should work with any MCP-compatible model. While not extensively tested with other models, contributions and testing are welcome!
Tip
Choose European models when you can, Europe is simply better! 🇪🇺
Features
- Plan Creation & Management: Create, update, list, and delete structured plans for complex tasks
- Sequential Thinking: Integrated tool for dynamic problem-solving and analysis
- Configuration: Customizable behavior through configuration files, CLI arguments, and environment variables
- Git Integration: Automatic .gitignore management
- Editor Integration: Open files in your preferred editor for review
All tools operate safely within the .complex_plans directory and can be used in both chat and plan modes.
Installation
Mistral Vibe CLI Configuration
To use this server with Mistral Vibe CLI, add the following configuration to your ~/.vibe/config.toml:
Important
Remove the
mcp_servers = []line from the upper part of the file for this to work!
[[mcp_servers]]
name = "complex_plans"
transport = "stdio"
command = "npx"
args = ["-y", "@tuchsoft/mcp-complex-plans"]
[tools.complex_plans_createPlan]
permission = "always"
[tools.complex_plans_updatePlan]
permission = "always"
[tools.complex_plans_openInEditor]
permission = "always"
[tools.complex_plans_sequentialThinking]
permission = "always"
[tools.complex_plans_listPlans]
permission = "always"
[tools.complex_plans_readPlan]
permission = "always"
[tools.complex_plans_deletePlan]
permission = "ask"
Use in plan/chat mode
To use the tools in plan/chat mode, create or edit the ~/.vibe/agents/plan.toml (and/or chat.toml) configuration file:
enabled_tools = [
"complex_plans_createPlan",
"complex_plans_updatePlan",
"complex_plans_openInEditor",
"complex_plans_sequentialThinking",
"complex_plans_listPlans"
]
For better results
For better results, edit your system prompt to include a snippet like the following to instruct the model when to use this tool:
**FOR COMPLEX, MULTI-FILE EDITS, ALWAYS GENERATE A MARKDOWN PLAN FIRST:** if the user request a complex task that require editing multiple files, traverse the project or make a lot of changes, **YOU MUST** create a markdown plan and ask the user to confirm it before proceeding, use the `complex_plans_createPlan` tool (and consequitive `complex_plans_readPlan`, `complex_plans_updatePlan`, `complex_plans_listPlans`, `complex_plans_openInEditor`, (optional) `complex_plans_deletePlan` tools).
**ALWAYS** ask the user to review and accept the plan after calling `complex_plans_openInEditor` and **BEFORE** doing anything else, do not proceed with the implementation until the user has accepted the plan.
Follow the instrucion provided by the tool itself.
Also if the user request a plan creation **ALWAYS** use the `complex_plans_createPlan` tool.
Optionally, add also this other block to ensure the chain of thought is used whenever possible:
**ALWAYS USE AN INTERNAL CHAIN OF THOUGHT**: Before answering to the user, writing code, editing a file, or performing whatever action, **always** use an internal chain of thought to verify your findings trough the use of the `complex_plans_sequentialthinking` tool.
Use as many tokens as you believe are necessary for your internal reasoning.
Output limit and verbosity constraints do not apply to your internal reasoning.
Always use the `complex_plans_sequentialthinking` tool for any task that is not a direct question-answer, as a rule of thumb if you are reading a file, you must also use the `complex_plans_sequentialthinking` tool.
Usage
- The model should decide on its own when to use the tool when the task is complex, long, or requires editing many files.
- To force the model to create a plan, simply include something like
Create a plan before implementing - To edit a plan:
- You can do it manually by editing the plan file. The section
Additional user provided detailsis where you can provide additional information the model missed. Remember to remove from theRisks/Doubtssection anything for which you provide a clear answer. - You can ask the model to do so by prompting
Edit the plan to...(orEdit my XYZ plan to...if not in the same conversation)
- You can do it manually by editing the plan file. The section
Configuration
The server supports multiple configuration methods with the following priority order (highest to lowest):
- Configuration file at project level (
[your_project]/.complex_plans/config.json) - Highest priority - CLI arguments - Override environment variables
- Environment variables - Override default values
- Default values - Lowest priority
Configuration Options
| Option | Type | Default | CLI Argument | Environment Variable | Description |
|---|---|---|---|---|---|
default_editor | string | "zed" | --default-editor= | MCP_COMPLEX_PLANS_DEFAULT_EDITOR | Default editor for opening files |
auto_delete_plans | boolean | false | --auto-delete-plans= | MCP_COMPLEX_PLANS_AUTO_DELETE_PLANS | Automatically delete plans after implementation |
add_to_gitignore | boolean | true | --add-to-gitignore= | MCP_COMPLEX_PLANS_ADD_TO_GITIGNORE | Automatically add .complex_plans to .gitignore |
disabled_tools | string[] | [] | --disabled-tools= | MCP_COMPLEX_PLANS_DISABLED_TOOLS | List of tools to disable (comma-separated) |
Configuration Examples
Configuration file (.complex_plans/config.json):
{
"default_editor": "vscode",
"auto_delete_plans": false,
"add_to_gitignore": true,
"disabled_tools": ["listPlans"]
}
CLI arguments:
node dist/index.js --default-editor=vscode --auto-delete-plans=false --disabled-tools=listPlans,deletePlan
Environment variables:
export MCP_COMPLEX_PLANS_DEFAULT_EDITOR="vscode"
export MCP_COMPLEX_PLANS_AUTO_DELETE_PLANS="false"
export MCP_COMPLEX_PLANS_DISABLED_TOOLS="listPlans,deletePlan"
Tools
Available Tools
- createPlan: Create structured plans for complex tasks
- updatePlan: Modify existing plans using SEARCH/REPLACE blocks
- deletePlan: Remove completed or obsolete plans
- listPlans: List all available plans in the current project
- openInEditor: Open files in your configured editor for review
- sequentialThinking: Dynamic problem-solving and analysis tool
Sequential thinking
The sequential thinking implementation is based on sequentialthinking, for detailed tool documentation and usage patterns, refer to that repo.
Development
npm install
npm run build
npm link #To then test using npx as normal
License
MIT
관련 서버
Scout Monitoring MCP
스폰서Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
스폰서Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Cygnus MCP Server
An MCP server demonstrating Cygnus tools for reading text files and invoking local APIs.
Lifecycle MCP Server
An MCP server for managing the software development lifecycle, with support for an optional external SQLite database.
MCP Client
A Python client for connecting to Model Context Protocol (MCP) servers, supporting local scripts and npx packages.
Paraview_MCP
An autonomous agent that integrates large language models with ParaView for creating and manipulating scientific visualizations using natural language and visual inputs.
MCP Yeoman Server
Search for and run Yeoman generator templates programmatically.
RunwayML + Luma AI
Interact with the RunwayML and Luma AI APIs for video and image generation tasks.
Code Council
Your AI Code Review Council - Get diverse perspectives from multiple AI models in parallel.
Shallow Research Code Assistant
A multi-agent AI-powered research and code assistant. Requires external API keys for LLM providers, web search, and secure code execution.
XCF Xcode MCP Server
A Swift-based MCP server that integrates with Xcode to enhance AI development workflows.
Unstructured API MCP Server
Interact with the Unstructured API to manage data sources, destinations, workflows, and jobs.