MCP.so
Sign In

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.

Comments

More Reasoning MCP servers