Code Reasoning MCP Server
@mettamatt
About Code Reasoning MCP Server
A code reasoning MCP server, a fork of sequential-thinking
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"code-reasoning": {
"command": "npx",
"args": [
"-y",
"@mettamatt/code-reasoning"
]
}
}
}Tools
1π§ 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): 1. Need to explore alternatives? β Use BRANCH (πΏ) with branch_from_thought + branch_id 2. Need to correct earlier thinking? β Use REVISION (π) with is_revision + revises_thought 3. Scope changed? β Adjust total_thoughts up or down as needed 4. 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?"
Overview
What is Code Reasoning MCP Server?
A Model Context Protocol (MCP) server that enhances Claude's ability to solve complex programming tasks through structured, step-by-step thinking. It integrates with Claude Desktop and VS Code, providing a systematic approach to coding challenges.
How to use Code Reasoning MCP Server?
Install by adding the server configuration (npx -y @mettamatt/code-reasoning) to your Claude Desktop or VS Code MCP settings. To trigger reasoning, append "Use sequential thinking to reason about this." to your chat message, or use ready-made prompt templates via the "+" icon or /help command. Optional command-line flags include --debug for detailed logging and --help for help.
Key features of Code Reasoning MCP Server
- Optimized for programming tasks and problem-solving
- Structured thinking breaks down complex problems
- Thought branching explores multiple solution paths
- Thought revision allows refining earlier reasoning
- Automatically stops after 20 thought steps
- Pre-defined prompt templates for common tasks
Use cases of Code Reasoning MCP Server
- Breaking down complex coding problems into manageable steps
- Exploring multiple solution paths in parallel
- Refining earlier reasoning as understanding improves
FAQ from Code Reasoning MCP Server
What safety limits does the server have?
The server automatically stops after 20 thought steps to prevent infinite loops.
What command-line options are available?
You can use --debug to enable detailed logging and --help (or -h) to show help information.
How do I trigger sequential thinking?
Append "Use sequential thinking to reason about this." to your chat message, or select a ready-to-use prompt from the Code Reasoning prompts menu.
Which environments are supported?
The server works with Claude Desktop and VS Code via standard MCP configuration.
What license is this project under?
The project is licensed under the MIT License.
Frequently asked questions
What safety limits does the server have?
The server automatically stops after 20 thought steps to prevent infinite loops.
What command-line options are available?
You can use `--debug` to enable detailed logging and `--help` (or `-h`) to show help information.
How do I trigger sequential thinking?
Append "Use sequential thinking to reason about this." to your chat message, or select a ready-to-use prompt from the Code Reasoning prompts menu.
Which environments are supported?
The server works with Claude Desktop and VS Code via standard MCP configuration.
What license is this project under?
The project is licensed under the MIT License.
Basic information
More Reasoning MCP servers
Unified MCP Suite
Godzilla675A suite of Model Context Protocol (MCP) servers designed to enhance AI agent capabilities. Provides tools for media search/understanding (images, video), web information retrieval, PDF generation, and PowerPoint presentation creation, enabling agents to interact with diverse data
n8n Workflow Builder MCP
ifmelateMCP server that allow LLM in agent mode builds n8n workflows for you
Agentic Radar
splx-aiA security scanner for your LLM agentic workflows
π Aider-MCP: AI Coding Server with Universal Auto-Detection
jacv888Aider-MCP-Upgraded is a production-grade multi-agent AI coding system that combines Desktop Commander (DC) investigation capabilities with Aider's implementation power. Features 70%+ token reduction, modular architecture, and intelligent workflow automation through strategic agen
MCP Sandbox
JohanLi233Python sandboxes for llms
Comments