 Command

Pranesh Nikhar's personal site. Vim-style keybinds for navigation; theme + font pickers below.

Theme
 Font Body Code
Reader
Keybinds
Navigation
j / ↓ Next item k / ↑ Previous item g First item in region G Last item in region zz Center focused item h / l Move left/right region ] / [ Next/previous heading } / { Next/previous block d / u Half-page down/up
Layout
<zh> / <zl> Toggle left/right sidebar <zr> Toggle reader view <zj> / <zk> Focus main/navbar <S-h/j/k/l> Focus left/main/navbar/right ⌃H / ⌃L Focus left/right sidebar ⌃J / ⌃K Focus main/navbar ⇧C / ⇧E Collapse / expand all sections
Dialogs
⌃P / : Command palette ⌃X Theme picker / Search ? Show keybinds Esc / ⌃C Close dialog
History
n Next document b Previous document ⌃O History back ⌃I History forward
 Search
about: Pranesh Nikhar about/more: 🪪 More docs/test: Docs Test ideas: 💡 Ideas more: ➕ More now: Now posts: 📬 Posts projects: 📚 Projects webtui: Style posts/agentic-eda: AgenticEDA — Automated Exploratory Data Analysis with LangGraph posts/cap-theorem-outage-story: CAP Theorem with a Real Outage Story posts/codepilot: CodePilot — From Requirements to Deployable FastAPI Backend posts/common-auth-mistakes: Common Auth Mistakes Developers Make posts/compiled-vs-jit-vs-interpreted: Why Is X Language Fast or Slow? — Compiled vs JIT vs Interpreted posts/cs-degree-gaps: Things CS Degrees Don't Teach You posts/cve-2025-breach-analysis: CVE-2025 Breach Analysis — Midnight Blizzard and the 16 Billion Credential Leak posts/fixloop: FixLoop — AI Agent Loop for Self-Correcting Code posts/functional-vs-oop: Functional vs OOP — Same Problem, Both Ways posts/getman: Getman — Declarative API Tester for CLI & TUI posts/how-compilers-optimize: How Compilers Actually Optimize Your Code posts/http3-quic: HTTP/3 and QUIC — Why They Matter posts/leetcode-vs-engineering: LeetCode vs Real Engineering Skills posts/llm-from-scratch: LLM from Scratch — GPT-Style Transformer in PyTorch posts/lsm-trees-bloom-filters: LSM Trees & Bloom Filters — Production Deep Dive posts/mcp-workflow-builder: MCP Workflow Builder — Visual DAG for MCP Tools posts/persistent-memory: Persistent Memory — Long-Term Memory for AI Agents via MCP posts/playcli: PlayCLI — Terminal Video Player posts/postgres-mvcc: How PostgreSQL MVCC Works — Multi-Version Concurrency Control Deep Dive posts/raft-consensus: Raft Consensus Algorithm Explained posts/rust-borrow-checker: Rust Borrow Checker — Catches Real Bugs posts/titan: Titan — Terminal AI Coding Agent posts/what-happens-url: What Happens Between Typing a URL and Seeing the Page posts/what-happens-when-you-run-a-program: What Actually Happens When You Run a Program posts/zero-knowledge-proofs: Zero-Knowledge Proofs Explained Simply webtui/components/accordion: Accordion webtui/components/badge: Badge webtui/components/button: Button webtui/components/checkbox: Checkbox webtui/components/dialog: Dialog webtui/components/input: Input webtui/components/popover: Popover webtui/components/pre: Pre webtui/components/progress: Progress webtui/components/radio: Radio webtui/components/range: Range webtui/components/separator: Separator webtui/components/spinner: Spinner webtui/components/switch: Switch webtui/components/table: Table webtui/components/textarea: Textarea webtui/components/tooltip: Popover webtui/components/typography: Typography webtui/components/view: View webtui/contributing/contributing: Contributing webtui/contributing/contributing: ## Local Development webtui/contributing/contributing: ## Issues webtui/contributing/contributing: ## Pull Requests webtui/contributing/style-guide: Style Guide webtui/contributing/style-guide: ## CSS Units webtui/contributing/style-guide: ## Selectors webtui/contributing/style-guide: ## Documentation webtui/installation/astro: Astro webtui/installation/astro: ## Scoping webtui/installation/astro: ### Frontmatter Imports webtui/installation/astro: ### ‹style› tag webtui/installation/astro: ### Full Library Import webtui/installation/nextjs: Next.js webtui/installation/vite: Vite webtui/plugins/plugin-dev: Developing Plugins webtui/plugins/plugin-dev: ### Style Layers webtui/plugins/plugin-nf: Nerd Font Plugin webtui/plugins/theme-catppuccin: Catppuccin Theme webtui/plugins/theme-custom: Custom Theme webtui/plugins/theme-everforest: Everforest Theme webtui/plugins/theme-gruvbox: Gruvbox Theme webtui/plugins/theme-nord: Nord Theme webtui/plugins/theme-vitesse: Vitesse Theme webtui/start/ascii-boxes: ASCII Boxes webtui/start/changelog: Changelog webtui/start/installation: Installation webtui/start/installation: ## Installation webtui/start/installation: ## Using CSS webtui/start/installation: ## Using ESM webtui/start/installation: ## Using a CDN webtui/start/installation: ## Full Library Import webtui/start/installation: ### CSS webtui/start/installation: ### ESM webtui/start/installation: ### CDN webtui/start/intro: Introduction webtui/start/intro: ## Features webtui/start/plugins: Plugins webtui/start/plugins: ## Official Plugins webtui/start/plugins: ### Themes webtui/start/plugins: ## Community Plugins webtui/start/theming: Theming webtui/start/theming: ## CSS Variables webtui/start/theming: ### Font Styles webtui/start/theming: ### Colors webtui/start/theming: ### Light & Dark webtui/start/theming: ## Theme Plugins webtui/start/theming: ### Using Multiple Theme Accents webtui/start/tuis-vs-guis: TUIs vs GUIs webtui/start/tuis-vs-guis: ## Monospace Fonts webtui/start/tuis-vs-guis: ## Character Cells posts/termium: Termium — Chromium-Based Terminal Browser posts/new-projects-july-2026: New Projects — GRIT, Sage, Terrain Analyser, Self-Healing RAG, and More watchlist: 🎬 Watchlist posts/graph-engineering-rag: Graph Engineering replaced RAG at Microsoft, Stanford and Anthropic posts/graph-engineering-claude: Graph Engineering with Claude: 14-Step Roadmap from 0 to Graph Architect posts/agent-harness-loop-graph-engineering: Agent Harness Engineering vs Loop Engineering vs Graph Engineering
 Theme Current: Light j/k or ↑/↓ + Enter

MCP Workflow Builder — Visual DAG for MCP Tools

Drag-and-drop canvas for chaining MCP tools into multi-step pipelines. Export as standalone TypeScript scripts. React Flow frontend, Express backend, SQLite persistence.

🎯 What It Does

MCP Workflow Builder is a visual drag-and-drop canvas for chaining MCP (Model Context Protocol) tools into multi-step pipelines — no coding required. Connect MCP servers, drag tools onto a React Flow canvas, wire them into a directed acyclic graph (DAG), and execute with real-time streaming.

┌─────────┐    ┌─────────┐    ┌─────────┐
│  Start   │ →  │  Tool A  │ →  │  Tool B  │
└─────────┘    └─────────┘    └─────────┘


                            ┌─────────┐
                            │  End     │
                            └─────────┘

🧱 Tech Stack

ComponentTechnology
FrontendReact 18, Vite 5, React Flow 11, Tailwind CSS 3
BackendExpress 4, better-sqlite3
SDK@modelcontextprotocol/sdk
StreamingServer-Sent Events (SSE) for real-time execution
ExportStandalone TypeScript script generation

🏗️ Architecture

├── client/
│   ├── WorkflowCanvas.tsx      # Main React Flow canvas
│   ├── ToolPalette.tsx         # Left sidebar with searchable tool list
│   ├── component/
│   │   ├── ConditionNode.tsx
│   │   ├── ToolNode.tsx
│   │   └── SubworkflowNode.tsx
│   ├── MCPConnectionDialog.tsx  # Add new MCP server
│   ├── TemplateDialog.tsx       # Load from template
│   ├── ExecutionPanel.tsx       # 200-line terminal log, SSE stream
│   ├── ErrorBoundary.tsx
│   └── hooks/
│       ├── useWorkflow.ts
│       ├── useExecution.ts
│       └── useMCP.ts

├── server/
│   ├── routes/
│   │   ├── workflows.ts        # CRUD for workflows
│   │   ├── mcp.ts              # MCP server management
│   │   ├── execution.ts        # Pipeline execution
│   │   └── templates.ts        # Template storage
│   ├── services/
│   │   ├── execution-engine.ts  # Topological sort, parameter binding, SSE
│   │   ├── mcp-connection.ts   # stdio transport, tool discovery
│   │   ├── workflow-store.ts   # SQLite CRUD
│   │   ├── template-store.ts   # Template management
│   │   ├── export-generator.ts # TypeScript export
│   │   └── execution-store.ts  # History
│   └── data/workflows.db       # SQLite database

└── shared/
    └── types/
        └── index.ts            # Shared TypeScript types

🧩 Node Types

Node TypePurpose
StartEntry point, defines initial parameters
EndTerminal node, collects final outputs
InputUser-input prompt/parameter node
ToolExecutes an MCP tool with parameter bindings
ConditionBranches based on expressions: ==, !=, >, <, >=, <=, contains, startsWith, isEmpty
SubworkflowNests another saved workflow as a step

🔄 Execution Engine

The execution engine (execution-engine.ts) processes the DAG:

  1. Topological sort with cycle detection (prevents infinite loops)
  2. Parameter binding: {{nodeId.prop}} syntax resolves upstream outputs
  3. Condition evaluation: branch expressions determine which path to follow
  4. Branch skipping: inactive branches get skipped status
  5. SSE streaming: real-time push of each step’s result to the frontend

📦 Templates

4 built-in templates to get started:

  • Code Review: Analyze code → linter → security scan → report
  • Data Pipeline: Fetch data → transform → validate → export
  • Research: Web search → extract → summarize → save
  • Custom: Empty canvas

📤 Export

Pipelines can be exported as standalone TypeScript scripts with zero external dependencies beyond @modelcontextprotocol/sdk:

import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'

const client = new Client({ name: 'exported-pipeline', version: '1.0.0' })

async function evaluate(step: Step, context: Map<string, any>): Promise<any> {
  // Inline the pipeline logic
}

🚀 Quick Start

# Start the server
cd server && npm install && npm start
# → Server on http://localhost:3001

# Start the client
cd client && npm install && npm dev
# → UI on http://localhost:5173

# Add an MCP server, drag tools onto the canvas
# Wire them together, hit execute

💡 Why It’s Interesting

MCP tools are powerful individually, but their real potential is in composition — chaining multiple tools together to solve complex tasks. The Workflow Builder makes this visual, interactive, and exportable. The DAG-based execution with parameter binding, conditional branching, and real-time SSE streaming turns a collection of individual MCP servers into a full pipeline orchestrator. The TypeScript export feature means your visual workflow becomes a deployable script — best of both worlds.

 praneshnikhar.site / posts / mcp-workflow-builder · Top 1:1