mettamatt/code-reasoning
If you are the rightful owner of code-reasoning and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that enhances Claude's ability to solve complex programming tasks through structured, step-by-step thinking.
Tools
Functions exposed to the LLM to take actions
code-reasoning
🧠 A detailed tool for dynamic and reflective problem-solving through sequential thinking.
This tool helps you analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens.
📋 KEY PARAMETERS:
- thought: Your current reasoning step (required)
- thought_number: Current number in sequence (required)
- total_thoughts: Estimated final count (required, can adjust as needed)
- next_thought_needed: Set to FALSE ONLY when completely done (required)
- branch_from_thought + branch_id: When exploring alternative approaches (🌿)
- is_revision + revises_thought: When correcting earlier thinking (🔄)
✅ CRITICAL CHECKLIST (review every 3 thoughts):
- Need to explore alternatives? → Use BRANCH (🌿) with branch_from_thought + branch_id
- Need to correct earlier thinking? → Use REVISION (🔄) with is_revision + revises_thought
- Scope changed? → Adjust total_thoughts up or down as needed
- Only set next_thought_needed = false when you have a complete, verified solution
💡 BEST PRACTICES:
- Start with an initial estimate of total_thoughts, but adjust as you go
- Don't hesitate to revise earlier conclusions when new insights emerge
- Use branching to explore multiple approaches to the same problem
- Express uncertainty when present
- Ignore information that is irrelevant to the current step
- End with a clear, validated conclusion before setting next_thought_needed = false
✍️ End each thought by asking: "What am I missing or need to reconsider?"
Prompts
Interactive templates invoked by user choice
architecture-decision
Framework for making and documenting architecture decisions
bug-analysis
Systematic approach to analyzing and fixing bugs
code-review
Comprehensive template for code review
feature-planning
Structured approach to planning new feature implementation
refactoring-plan
Structured approach to code refactoring
Resources
Contextual data attached and managed by the client