Logo von CRASH - Cascaded Reasoning with Adaptive Step Handling

CRASH - Cascaded Reasoning with Adaptive Step Handling

Community
nikkoxgonzales

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

Herausgebernikkoxgonzales
Repositorycrash-mcp
SpracheTypeScript
Forks
6
Sterne
72
Verfügbare Tools
1
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    CRASH - Cascaded Reasoning with Adaptive Step Handling stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • Verfügbare Tools: 1

    Unten finden Sie die aufrufbaren Aktionen. Namen und Beschreibungen werden angezeigt, sofern der Server sie bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    Kennzahlen des verlinkten Repositorys: Sterne (72) und Forks (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

Installation

TypingMind
Voraussetzungen:

Node.js 18+

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

Verfügbare Tools

  • 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 mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald CRASH - Cascaded Reasoning with Adaptive Step Handling verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor einrichten“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Einstellungen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor einrichten“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie „Terminal“ (macOS) bzw. „Windows Terminal“ (Windows).
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

CRASH - Cascaded Reasoning with Adaptive Step Handling als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server bearbeiten“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server bearbeiten“.
  3. Fügen Sie die MCP-Server-Konfiguration für CRASH - Cascaded Reasoning with Adaptive Step Handling ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server bearbeiten“
{
  "mcpServers": {
    "nikkoxgonzales-crash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "crash-mcp"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von CRASH - Cascaded Reasoning with Adaptive Step Handling. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von CRASH - Cascaded Reasoning with Adaptive Step Handling.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit CRASH - Cascaded Reasoning with Adaptive Step Handling bei dieser Aufgabe helfen?
CRASH - Cascaded Reasoning with Adaptive Step Handling
Gerne. Ich habe es gelesen.
Das habe ich mit CRASH - Cascaded Reasoning with Adaptive Step Handling gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling verwendet?

CRASH - Cascaded Reasoning with Adaptive Step Handling ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich den MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie CRASH - Cascaded Reasoning with Adaptive Step Handling mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum den MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald CRASH - Cascaded Reasoning with Adaptive Step Handling verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich den MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling mit TypingMind?

CRASH - Cascaded Reasoning with Adaptive Step Handling wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt der MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling in TypingMind bereit?

Die MCP-Tools von CRASH - Cascaded Reasoning with Adaptive Step Handling (Anzahl: 1) können Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen.

Muss ich meine API-Schlüssel mit TypingMind teilen, um den MCP-Server CRASH - Cascaded Reasoning with Adaptive Step Handling zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal. Sie wählen Ihre Modellanbieter selbst und behalten die Kontrolle über Ihre API-Schlüssel, Prompts und MCP-Konfiguration. Falls CRASH - Cascaded Reasoning with Adaptive Step Handling eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇