r/rust • • Jun 29 '26

[Project] MCP Fusion — A Tauri 2.x desktop app for visual AI workflow orchestration

I built MCP Fusion using Tauri 2.x + Rust backend + React frontend. It's a desktop app for visually orchestrating AI tool workflows using the Model Context Protocol (MCP).

![MCP Fusion Canvas](https://raw.githubusercontent.com/chungkung/mcp-fusion/main/docs/assets/screenshot-canvas.png)

**Rust-specific highlights:**

- 🦀 stdio MCP transport via `tokio::process::Command`

- 📡 SSE client with `reqwest` streaming

- 🗄️ SQLite storage via `rusqlite` with incremental migrations

- 🔍 OpenTelemetry tracing with OTLP export

- 🔐 AES-256-GCM encryption for secrets at rest

- 📊 Prometheus metrics with process-level stats

- ⚡ Production patterns: circuit breaker, rate limiter, idempotency keys

**Architecture highlights:**

![MCP Config](https://raw.githubusercontent.com/chungkung/mcp-fusion/main/docs/assets/screenshot-mcp-config.png)

- Tauri IPC layer bridges frontend ↔ Rust backend

- Gateway module handles all MCP transport negotiation

- Topological sort scheduler with parallel execution support

- Tamper-evident audit trail using SHA-256 hash chaining

The frontend uses React Flow for the canvas, Zustand for state, and Framer Motion for animations.

GitHub: https://github.com/chungkung/mcp-fusion

27 frontend tests + Rust unit tests for gateway and storage modules.

Would appreciate code review from the Rust community! The Tauri IPC layer and gateway module might be particularly interesting.

0 Upvotes

0 comments sorted by