loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

mcp-server-wtf

MCP Tool

Wave-Engineering/mcp-server-wtf

Flight recorder for incident troubleshooting inside Claude Code — captures tool calls, classifies events, generates runbooks

Install

$ npx loaditout add Wave-Engineering/mcp-server-wtf

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "mcp-server-wtf": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-wtf"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

WTF (Why That Failed)

A flight recorder for incident troubleshooting inside Claude Code. WTF captures every tool call and manual observation into a durable SQLite database that survives context compaction, then enriches raw entries through a background classifier into a distilled timeline.

Prerequisites
  • Bun runtime
  • Claude Code CLI (claude)
  • jq (JSON processor)
  • AWS credentials for Bedrock (optional — enables background classifier)
Installation
git clone https://github.com/Wave-Engineering/mcp-server-wtf.git
cd mcp-server-wtf
./scripts/install.sh

Verify everything is configured:

./scripts/install.sh --check
Quick Start
# Start troubleshooting
/wtf

# Investigate the issue... Claude records tool calls automatically

# Get the distilled timeline
wtf_happened

# Add your own observations
/wtf now "DNS resolver returning stale records"
Architecture Overview

WTF is a three-layer system:

  /wtf, /wtf now          Skills (user-facing entry points)
        |
        v
  wtf_now, wtf_happened   MCP Server (journal storage, retrieval,
  wtf_freshell             background classification)
        ^
        |
  PostToolUse hook         Auto-capture (every tool call -> JSONL queue)

Layer 1 -- Skills: /wtf starts a troubleshooting session and activates flight recorder mode. /wtf now adds manual journal entries.

Layer 2 -- MCP Server: A Bun + TypeScript server exposing four tools over stdio transport. Manages a SQLite database, ingests the hook queue, and runs a background classifier (Claude Haiku via AWS Bedrock) that categorizes entries as actions, breadcrumbs, theories, or noise.

Layer 3 -- PostToolUse Hook: A shell script that fires on every Claude Code tool call, extracts relevant fields, truncates large values, and appends a JSON line to .wtf/hook-queue.jsonl for ingestion.

Usage
Starting a Session
/wtf

Archives an

Tags

bunclaude-codeflight-recorderincident-responsemcpmcp-servertypescript

Reviews

Loading reviews...

Quality Signals

0
Installs
Last updated20 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/31/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/Wave-Engineering/mcp-server-wtf)](https://loaditout.ai/skills/Wave-Engineering/mcp-server-wtf)