An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
Comprehensive documentation is available in the following files:
- Executive Summary - High-level overview of Sequential Thinking
- Practical Guide - Examples and best practices for using the tool
- Technical Documentation - Detailed technical explanation of the architecture
- Flow Engine Architecture - In-depth explanation of the flow engine's flexibility and strategy-specific flows
- Strategy Comparison - Detailed comparison of different thinking strategies
- Break down complex problems into manageable steps
- Revise and refine thoughts as understanding deepens
- Branch into alternative paths of reasoning
- Adjust the total number of thoughts dynamically
- Support for unfixed step numbers through cyclic flows
- Strategy-specific flow patterns for different reasoning approaches
- Generate and verify solution hypotheses
Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.
Inputs:
thought(string): The current thinking stepnextThoughtNeeded(boolean): Whether another thought step is neededthoughtNumber(integer): Current thought numbertotalThoughts(integer): Estimated total thoughts neededisRevision(boolean, optional): Whether this revises previous thinkingrevisesThought(integer, optional): Which thought is being reconsideredbranchFromThought(integer, optional): Branching point thought numberbranchId(string, optional): Branch identifierneedsMoreThoughts(boolean, optional): If more thoughts are needed
Provides detailed documentation for the Sequential Thinking tool, including:
- When to use the tool
- Key features
- Parameter explanations
- Best practices for effective usage
The Sequential Thinking tool is designed for:
- Breaking down complex problems into steps
- Planning and design with room for revision
- Analysis that might need course correction
- Problems where the full scope might not be clear initially
- Tasks that need to maintain context over multiple steps
- Situations where irrelevant information needs to be filtered out
- Node.js (v14 or higher) and npm (v6 or higher) OR
- Docker
- Clone the repository:
git clone https://github.com/aaronsb/sequentialthinking-plus.git cd sequentialthinking-plus- Install dependencies:
npm install- Make the server executable:
chmod +x index.js- Run the server:
node index.jsPull and run the latest image from GitHub Container Registry:
docker run --rm -i ghcr.io/aaronsb/sequentialthinking-plus:latest- Clone the repository:
git clone https://github.com/aaronsb/sequentialthinking-plus.git cd sequentialthinking-plus- Build the Docker image:
./scripts/build-local.sh- Run the Docker container:
./scripts/run-local.shThis will run the server with the correct permissions, ensuring that any files created are owned by the current user, not root.
To contribute to the project:
- Fork the repository on GitHub
- Clone your fork locally
- Add the upstream repository:
git remote add upstream https://github.com/aaronsb/sequentialthinking-plus.git- Create a branch for your changes
- Submit a pull request with your changes
Add this to your cline_mcp_settings.json:
{"mcpServers":{"think-strategies":{"autoApprove": [], "disabled": false, "timeout": 60, "command": "node", "args": [ "/path/to/repo/sequentialthinking-plus/index.js" ], "env":{}, "transportType": "stdio" } } }{"mcpServers":{"think-strategies":{"autoApprove": [], "disabled": false, "timeout": 60, "command": "docker", "args": [ "run", "--rm", "-i", "--user", "$(id -u):$(id -g)", "-v", "/tmp/sequentialthinking-plus-data:/app/data", "ghcr.io/aaronsb/sequentialthinking-plus:latest" ], "env":{}, "transportType": "stdio" } } }This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.
