Sequential Thinking
Sequential Thinking
Section titled “Sequential Thinking”Sequential Thinking provides structured reasoning tools for complex problem-solving, enabling step-by-step analysis with confidence tracking and revision capabilities.
Configuration
Section titled “Configuration”{ "mcpServers": { "sequential": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"] } }}Available Tools
Section titled “Available Tools”sequentialthinking
Section titled “sequentialthinking”Dynamic problem-solving through structured thought sequences.
Parameters:
| Parameter | Description |
|---|---|
thought | Current thinking step |
thoughtNumber | Current step number (1, 2, 3…) |
totalThoughts | Estimated total steps needed |
nextThoughtNeeded | Whether more steps are needed |
isRevision | If this revises previous thinking |
revisesThought | Which thought is being reconsidered |
branchFromThought | Branching point for alternative paths |
needsMoreThoughts | If more analysis is needed |
Use Cases
Section titled “Use Cases”Complex Debugging
Section titled “Complex Debugging”/fix Intermittent authentication failuresSequential Thinking:
- Defines the question clearly
- Gathers evidence systematically
- Forms hypotheses with probabilities
- Tests most likely cause first
- Documents conclusion with confidence
Architecture Decisions
Section titled “Architecture Decisions”/brainstorm Database migration strategySequential Thinking:
- Explores options step-by-step
- Tracks trade-offs for each approach
- Revises conclusions based on feedback
- Builds confidence incrementally
Root Cause Analysis
Section titled “Root Cause Analysis”/research Why is the build slow?Sequential Thinking:
- Breaks problem into investigation steps
- Documents evidence at each step
- Adjusts hypothesis as facts emerge
- Provides confidence-scored conclusion
Command Integration
Section titled “Command Integration”| Command | How Sequential Thinking Helps |
|---|---|
/fix | Systematic root cause analysis |
/plan | Structured task decomposition |
/brainstorm | Organized design exploration |
/research | Step-by-step investigation |
Mode Integration
Section titled “Mode Integration”| Mode | Integration |
|---|---|
deep-research | Primary tool for thorough analysis |
brainstorm | Structures creative exploration |
review | Systematic code examination |
Example Workflow
Section titled “Example Workflow”Debugging Session
Section titled “Debugging Session”Thought 1: Define the problem
"What is causing authentication to fail intermittently for some users?"→ Confidence: N/A (question definition)Thought 2: Gather evidence
"Checking logs shows failures occur during peak hours,primarily for users with special characters in passwords."→ Confidence: 7/10Thought 3: Form hypothesis
"Hypothesis A: URL encoding issue with special characters.Evidence: Failure pattern matches special char passwords.Probability: 80%"→ Confidence: 8/10Thought 4: Test hypothesis
"Tested with password 'test@123' - fails.Tested with 'test123' - works.Hypothesis confirmed."→ Confidence: 9/10Thought 5: Conclusion
"Root cause: URL encoding mangles special characters.Fix: Use base64 encoding instead.Confidence: 9/10"→ nextThoughtNeeded: falseBest Practices
Section titled “Best Practices”Start with Clear Questions
Section titled “Start with Clear Questions”Define what you’re investigating before gathering evidence.
Track Confidence
Section titled “Track Confidence”Explicitly state confidence levels to identify when more investigation is needed.
Allow Revisions
Section titled “Allow Revisions”Use isRevision and revisesThought to refine understanding as new information emerges.
Branch When Needed
Section titled “Branch When Needed”Use branchFromThought to explore alternative hypotheses without losing the main thread.