# RunFix AI (runfix.live) > Automated runtime crash diagnosis, root-cause pinpointing, client-side secret scrubbing, CLI & MCP server, and syntax-aware unified Git patch synthesis in sub-seconds. RunFix AI (accessible at https://runfix.live and open-source on GitHub at https://github.com/Ahmad-glowex/tracelens-ai) is a developer triage platform, terminal CLI, and Model Context Protocol (MCP) server built with Next.js 14 App Router, TypeScript, and Tailwind CSS. It parses cryptic terminal stack traces, unhandled promise rejections, type panics, and container exit codes, sanitizes secrets client-side, isolates offending frames down to the exact root-cause user code line, and produces verified `git apply` compatible unified diffs. ## Primary Resources - [Interactive Workbench](https://runfix.live): Browser-based developer triage workbench with real-world error presets and sub-second execution (100% Free Public Beta • No Credit Card Required • Zero Telemetry BYOK). - [Developer Documentation](https://runfix.live/docs): Comprehensive setup guides for CLI, Model Context Protocol (MCP), CI Action healer, and REST API. - [Enterprise Security & Compliance](https://runfix.live/security): Architecture documentation for zero code telemetry, client-side secret scrubbing, and zero data retention. - [About Us & Vision](https://runfix.live/about): Founder vision, company background, and technical roadmap. - [GitHub Repository](https://github.com/Ahmad-glowex/tracelens-ai): Source code, CLI script, MCP server, issue tracker, and CI templates. - [API Route](https://runfix.live/api/analyze): High-throughput serverless API route handler for crash analysis. - [Terms of Service](https://runfix.live/terms): Legal terms operated by RunFix. - [Privacy Policy](https://runfix.live/privacy): Zero telemetry architecture, BYOK local storage, and code privacy guarantees. - [Full LLM Context](https://runfix.live/llms-full.txt): Complete technical documentation and architecture reference for AI agents. ## Core Capabilities 1. Deterministic Root-Cause Pinpointing: Slices noisy framework stacks down to the exact root-cause user code line across Node.js, Next.js, Python, Go, Rust, and Docker. 2. Verified Git Patch Synthesis: Emits syntactically valid RFC 5322 unified diff patches ready for direct terminal execution (`git apply patch.diff`). 3. Client-Side Secret & PII Scrubber: Client-side regex engine sanitizes API keys (OpenAI, Anthropic, Google, AWS, GitHub), JWT tokens, database connection passwords, and emails before network transmission. 4. Official CLI Tool: Available via `npx runfix` to monitor commands (`npx runfix "npm test"`), triage piped traces (`cat crash.log | npx runfix`), or run standalone. 5. Model Context Protocol (MCP) Server: Run `npx runfix mcp` to connect RunFix triage tools to Cursor, Windsurf, Claude Desktop, and VS Code. 6. Autonomous GitHub Action Healer: CI/CD workflow template (`templates/runfix-action.yml`) that intercepts failed CI runs and automatically opens a pull request with the synthesized patch. 7. Multi-Engine Cascading Failover: Serverless dispatch with automatic failover between Anthropic Claude frontier reasoning models, Google Gemini, Groq LPUs, and River AI clusters. 8. Zero Code Telemetry: User error traces and generated patches are never logged, stored on disk, or used for model training. BYOK API keys remain in client-side localStorage. ## CLI & MCP Usage ```bash # Run command and auto-triage failures npx runfix "npm test" npx runfix "pytest tests/" npx runfix "cargo build" # Analyze piped error log or stack trace cat failure.log | npx runfix # Launch Model Context Protocol (MCP) server for IDEs npx runfix mcp ``` ### MCP IDE Configuration (`claude_desktop_config.json` or `.cursor/mcp.json`) ```json { "mcpServers": { "runfix": { "command": "npx", "args": ["-y", "runfix", "mcp"], "env": { "RUNFIX_API_URL": "https://runfix.live/api/analyze" } } } } ``` ## API Specification - Method: `POST` - Path: `/api/analyze` - Request Headers: `Content-Type: application/json` - Request Body JSON Schema: - `errorLog` (string, required): Raw terminal error message or stack trace. - `provider` (string, optional): One of `anthropic`, `river`, `groq`, `gemini`, `openai`, `custom`. - `model` (string, optional): Target model identifier. - `apiKey` (string, optional): User BYOK API key for private execution. - `customUrl` (string, optional): Custom OpenAI-compatible endpoint URL. - Response Body JSON Schema: - `success` (boolean): Analysis outcome status. - `data.rootCause` (string): Direct 1-2 sentence technical analysis. - `data.targetFile` (string): Primary affected file path. - `data.diff` (string): Clean unified Git diff patch starting with `@@`. - `data.latency` (number): Execution latency in milliseconds. - `data.provider` (string): Active provider used. - `data.model` (string): Active model name used. ## Patch Application Instructions ```bash # Step 1: Save the generated diff to a patch file cat << 'EOF' > runfix.patch EOF # Step 2: Apply the patch to your repository git apply runfix.patch # Step 3: Run your test suite to verify resolution npm test # or pytest, go test, cargo test ``` ## Corporate & Operator Information - Entity Name: RunFix - Registered Address: - Official Contact: founder@runfix.live - Security Inquiries: security@runfix.live - Official Website: https://runfix.live - Repository: https://github.com/Ahmad-glowex/tracelens-ai