CRASH - Cascaded Reasoning with Adaptive Step Handlingのロゴ

CRASH - Cascaded Reasoning with Adaptive Step Handling

コミュニティ
nikkoxgonzales

MCP server for structured and efficient reasoning with step validation, branching, and revisions.

公開者nikkoxgonzales
リポジトリcrash-mcp
言語TypeScript
フォーク
6
スター
72
利用可能なツール
1
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    CRASH - Cascaded Reasoning with Adaptive Step Handlingは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(1個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには72件のスターと6件のフォークがあります。

CRASH.jpg


CRASH

Cascaded Reasoning with Adaptive Step Handling

An MCP (Model Context Protocol) server for structured, iterative reasoning. CRASH helps AI assistants break down complex problems into trackable steps with confidence tracking, revision support, and branching for exploring alternatives.

Inspired by MCP Sequential Thinking Server


Why CRASH?

I created this because typing "use sequential_thinking" was cumbersome. Now I can simply say "use crash" instead.

CRASH is more token-efficient than sequential thinking - it doesn't include code in thoughts and has streamlined prompting. It's my go-to solution when an agent can't solve an issue in one shot or when plan mode falls short.

Claude Code's Assessment

CRASH helped significantly for this specific task:

Where CRASH helped:
- Systematic analysis: Forced me to break down the issue methodically
- Solution exploration: Explored multiple approaches before settling on the best one
- Planning validation: Each step built on the previous one logically

The key difference:
CRASH forced me to be more thorough in the analysis phase. Without it, I might have
rushed to implement the first solution rather than exploring cleaner approaches.

Verdict: CRASH adds value for complex problems requiring systematic analysis of
multiple solution paths. For simpler tasks, internal planning is sufficient and faster.

Features

  • Structured reasoning steps - Track thought process, outcomes, and next actions
  • Confidence tracking - Express uncertainty with 0-1 scores, get warnings on low confidence
  • Revision mechanism - Correct previous steps, with original steps marked as revised
  • Branching support - Explore multiple solution paths with depth limits
  • Dependency validation - Declare and validate step dependencies
  • Session management - Group related reasoning chains with automatic timeout cleanup
  • Multiple output formats - Console (colored), JSON, or Markdown
  • Flexible validation - Strict mode for rigid rules, flexible mode for natural language

Installation

bash
npm install crash-mcp

Or use directly with npx:

bash
npx crash-mcp

Quick Setup

Most MCP clients use this JSON configuration:

json
{
  "mcpServers": {
    "crash": {
      "command": "npx",
      "args": ["-y", "crash-mcp"]
    }
  }
}

Configuration by Client

ClientSetup Method
Claude Codeclaude mcp add crash -- npx -y crash-mcp
CursorAdd to ~/.cursor/mcp.json
VS CodeAdd to settings JSON under mcp.servers
Claude DesktopAdd to claude_desktop_config.json
WindsurfAdd to MCP config file
JetBrainsSettings > Tools > AI Assistant > MCP
OthersUse standard MCP JSON config above

Use the cmd wrapper:

json
{
  "mcpServers": {
    "crash": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "crash-mcp"]
    }
  }
}
json
{
  "mcpServers": {
    "crash": {
      "command": "npx",
      "args": ["-y", "crash-mcp"],
      "env": {
        "CRASH_STRICT_MODE": "false",
        "MAX_HISTORY_SIZE": "100",
        "CRASH_OUTPUT_FORMAT": "console",
        "CRASH_SESSION_TIMEOUT": "60",
        "CRASH_MAX_BRANCH_DEPTH": "5"
      }
    }
  }
}
dockerfile
FROM node:18-alpine
WORKDIR /app
RUN npm install -g crash-mcp
CMD ["crash-mcp"]
json
{
  "mcpServers": {
    "crash": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "crash-mcp"]
    }
  }
}

Bun:

json
{ "command": "bunx", "args": ["-y", "crash-mcp"] }

Deno:

json
{
  "command": "deno",
  "args": ["run", "--allow-env", "--allow-net", "npm:crash-mcp"]
}

Configuration

VariableDefaultDescription
CRASH_STRICT_MODEfalseEnable strict validation (requires specific prefixes)
MAX_HISTORY_SIZE100Maximum steps to retain in history
CRASH_OUTPUT_FORMATconsoleOutput format: console, json, markdown
CRASH_NO_COLORfalseDisable colored console output
CRASH_SESSION_TIMEOUT60Session timeout in minutes
CRASH_MAX_BRANCH_DEPTH5Maximum branch nesting depth
CRASH_ENABLE_SESSIONSfalseEnable session management

Usage

Required Parameters

ParameterTypeDescription
step_numberintegerSequential step number (starts at 1)
estimated_totalintegerEstimated total steps (adjustable)
purposestringStep category: analysis, action, validation, exploration, hypothesis, correction, planning, or custom
contextstringWhat's already known to avoid redundancy
thoughtstringCurrent reasoning process
outcomestringExpected or actual result
next_actionstring/objectNext action (simple string or structured with tool details)
rationalestringWhy this next action was chosen

Optional Parameters

ParameterTypeDescription
is_final_stepbooleanMark as final step to complete reasoning
confidencenumberConfidence level 0-1 (warnings below 0.5)
uncertainty_notesstringDescribe doubts or assumptions
revises_stepintegerStep number being corrected
revision_reasonstringWhy revision is needed
branch_fromintegerStep to branch from
branch_idstringUnique branch identifier
branch_namestringHuman-readable branch name
dependenciesinteger[]Step numbers this depends on
session_idstringGroup related reasoning chains
tools_usedstring[]Tools used in this step
external_contextobjectExternal data relevant to step

Examples

Basic Usage

json
{
  "step_number": 1,
  "estimated_total": 3,
  "purpose": "analysis",
  "context": "User requested optimization of database queries",
  "thought": "I need to first understand the current query patterns before proposing changes",
  "outcome": "Identified slow queries for optimization",
  "next_action": "analyze query execution plans",
  "rationale": "Understanding execution plans will reveal bottlenecks"
}

With Confidence and Final Step

json
{
  "step_number": 3,
  "estimated_total": 3,
  "purpose": "summary",
  "context": "Analyzed queries and tested index optimizations",
  "thought": "The index on user_id reduced query time from 2s to 50ms",
  "outcome": "Performance issue resolved with new index",
  "next_action": "document the change",
  "rationale": "Team should know about the optimization",
  "confidence": 0.9,
  "is_final_step": true
}

Revision Example

json
{
  "step_number": 4,
  "estimated_total": 5,
  "purpose": "correction",
  "context": "Previous analysis missed a critical join condition",
  "thought": "The join was causing a cartesian product, not the index",
  "outcome": "Corrected root cause identification",
  "next_action": "fix the join condition",
  "rationale": "This is the actual performance issue",
  "revises_step": 2,
  "revision_reason": "Overlooked critical join in initial analysis"
}

Branching Example

json
{
  "step_number": 3,
  "estimated_total": 6,
  "purpose": "exploration",
  "context": "Two optimization approaches identified",
  "thought": "Exploring the indexing approach first as it's lower risk",
  "outcome": "Branch created for index optimization testing",
  "next_action": "test index performance",
  "rationale": "This approach has lower risk than query rewrite",
  "branch_from": 2,
  "branch_id": "index-optimization",
  "branch_name": "Index-based optimization"
}

When to Use CRASH

Good fit:

  • Complex multi-step problem solving
  • Code analysis and optimization
  • System design with multiple considerations
  • Debugging requiring systematic investigation
  • Exploring multiple solution paths
  • Tasks where you need to track confidence

Not needed:

  • Simple, single-step tasks
  • Pure information retrieval
  • Deterministic procedures with no uncertainty

Development

bash
npm install        # Install dependencies
npm run build      # Build TypeScript
npm run dev        # Run with MCP inspector
npm start          # Start built server

Troubleshooting

Try using bunx instead of npx:

json
{ "command": "bunx", "args": ["-y", "crash-mcp"] }

Try the experimental VM modules flag:

json
{ "args": ["-y", "--node-options=--experimental-vm-modules", "crash-mcp"] }

Credits

Author

Nikko Gonzales - nikkoxgonzales

License

MIT

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "nikkoxgonzales-crash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "crash-mcp"
      ]
    }
  }
}

利用可能なツール

  • crash

    Facilitates structured, iterative reasoning for complex problem-solving and analysis. Use this to organize thoughts, break down tasks, and plan actions step-by-step. This tool is ideal for scenarios requiring careful consideration of multiple factors, such as code optimization, system design, or strategic planning.

    When to use CRASH:

    • When user says "use crash" or similar phrases
    • For multi-step or complex tasks requiring careful breakdown
    • For understanding, planning, or analyzing codes or content
    • When systematic reasoning is needed
    • When you need to revise or correct previous reasoning
    • When exploring multiple solution paths

    Key Features:

    • Flexible purpose types (analysis, action, validation, exploration, hypothesis, etc.)
    • Confidence tracking for uncertain situations
    • Revision mechanism to correct previous steps
    • Branching support for parallel exploration
    • Structured tool integration
    • No rigid formatting requirements (configurable)

    Instructions:

    • Each step must spec

CRASH - Cascaded Reasoning with Adaptive Step HandlingのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度CRASH - Cascaded Reasoning with Adaptive Step Handlingに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

CRASH - Cascaded Reasoning with Adaptive Step Handlingをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. CRASH - Cascaded Reasoning with Adaptive Step HandlingのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "nikkoxgonzales-crash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "crash-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてCRASH - Cascaded Reasoning with Adaptive Step HandlingのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. CRASH - Cascaded Reasoning with Adaptive Step HandlingのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
CRASH - Cascaded Reasoning with Adaptive Step Handlingを使ってこのタスクを手伝ってもらえますか?
CRASH - Cascaded Reasoning with Adaptive Step Handling
はい、読みました。
CRASH - Cascaded Reasoning with Adaptive Step Handlingで調べた結果をお伝えします。

よくある質問

CRASH - Cascaded Reasoning with Adaptive Step Handling MCPサーバーは何に使いますか?

CRASH - Cascaded Reasoning with Adaptive Step Handlingは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでCRASH - Cascaded Reasoning with Adaptive Step Handling MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでCRASH - Cascaded Reasoning with Adaptive Step Handlingを利用できます。

TypingMindでCRASH - Cascaded Reasoning with Adaptive Step Handling MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。CRASH - Cascaded Reasoning with Adaptive Step Handlingを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

CRASH - Cascaded Reasoning with Adaptive Step Handling MCPをTypingMindに接続するにはどうすればよいですか?

CRASH - Cascaded Reasoning with Adaptive Step HandlingはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでCRASH - Cascaded Reasoning with Adaptive Step Handling MCPのどのようなツールを利用できますか?

CRASH - Cascaded Reasoning with Adaptive Step Handlingは1個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

CRASH - Cascaded Reasoning with Adaptive Step Handling MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。CRASH - Cascaded Reasoning with Adaptive Step Handlingで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇