Skip to main content
Glama
README.md
# RenderBuddy MCP โ€” AI-Connected Render Agent & Gateway

> *"Your Blender render, one message away."*  
> Version: **v3.0.1** | Status: **Production Ready** | Tests: **59/59 Passed (100%)**

---

## ๐ŸŽจ What is RenderBuddy?

**RenderBuddy** is an open-source, AI-connected render agent and gateway platform for **Blender 3.6+ and 5.1+**. It allows 3D artists, studio teams, and developers to monitor and control long Blender render jobs using **natural language** โ€” via AI assistants (Antigravity, Claude, Cursor), a real-time Web Dashboard, or a Telegram Mobile Bot.

---

## โœจ Features at a Glance

* ๐ŸŸข **Native Blender Add-on (v3.0.1)**: Runs inside Blender with `@persistent` render handlers and an N-Panel control panel.
* ๐Ÿค– **MCP Server (8 Tools)**: Exposes status, frame preview, settings, email dispatch, local upload, render cancellation, and system shutdown tools to AI clients over stdio.
* ๐Ÿ“Š **Glassmorphism Web Dashboard**: Live telemetry monitoring completion percentage, frame count, elapsed time, and engine stats in real time.
* ๐Ÿ“ฑ **Telegram Bot Integration**: Monitor progress, request live frame previews (`/preview`), or cancel renders (`/cancel <PIN>`) directly from your phone.
* ๐Ÿ”’ **PIN Security Gate**: Destructive actions (render cancellation and system shutdown) are protected by salted SHA-256 PIN authentication.
* ๐Ÿš€ **Zero Cloud Dependency**: Pure Python core (stdlib + MCP SDK). No subscription services required.

---

## ๐Ÿ›๏ธ System Architecture & Gateway Hierarchy

RenderBuddy operates on a decoupled 3-tier architecture:

```
Workstation (Blender + Add-on)
    โ””โ”€ Loopback TCP (Port 7345) โ”€โ”€โ–บ Local Agent (SQLite DB + REST API 7342)
                                        โ”‚
                                        โ–ผ
                               Gateway Runner (runner.py)
                                โ”œโ”€โ”€ API Interface (Agent HTTP 7342 proxy)
                                โ”œโ”€โ”€ Web Dashboard (web_ui.py - Port 8080)
                                โ”œโ”€โ”€ Telegram Bot (telegram_bot.py)
                                โ””โ”€โ”€ Pairing Service (pairing.py - OTP Manager)
                                        โ”‚
                                        โ–ผ
                               Public Internet / Remote Clients
                                (Mobile Web UI / Telegram / MCP / ChatGPT)
```

---

## ๐Ÿš€ Quick Start Guide

### 1. Build & Install the Blender Add-on
```powershell
python build_addon.py
```
In Blender: **Edit โ†’ Preferences โ†’ Add-ons โ†’ Install from Disk...** โ†’ Select `dist/renderbuddy_addon.zip` and enable **RenderBuddy**.

### 2. Configure MCP Client
Add RenderBuddy to your MCP client configuration (`mcp_config.json`):

```json
{
  "mcpServers": {
    "renderbuddy": {
      "command": "python",
      "args": [
        "D:/MCP_RenderBuddy/main.py"
      ]
    }
  }
}
```

### 3. Launch Gateway Services
```powershell
python -m gateway.runner
```

---

## ๐Ÿ“š Complete Documentation Index

For detailed instructions, architecture, presentation guide, and developer documents, consult the full documentation suite:

* ๐Ÿ“– **[Presentation & File Overview Guide](PROJECT_PRESENTATION_GUIDE.md)** โ€” Exhaustive file-by-file catalog, architectural pitch, and live demo script.
* ๐Ÿ“– **[Installation Guide](HOW_TO_INSTALL.md)** โ€” Step-by-step setup, Python environment, ngrok tunnel, and MCP registration.
* ๐Ÿ“– **[Operating Manual](HOW_TO_USE.md)** โ€” N-Panel controls, OTP pairing, Web UI, Telegram bot commands, and MCP natural language prompts.
* ๐Ÿ“– **[Deployment Topology & Diagrams](DEPLOYMENT.md)** โ€” End-to-end network deployment, security boundaries, and 4 complete UML sequence diagrams.
* ๐Ÿ“– **[Architecture Specification](ARCHITECTURE.md)** โ€” Technical design, SQLite schema, event bus, and PIN authorization gates.
* ๐Ÿ“– **[What Was Built](WHAT_WAS_BUILT.md)** โ€” Milestone summary, version evolution, and file map.

---

## ๐Ÿงช Test Suite

RenderBuddy includes a full automated test suite covering configuration, event bus, SQLite projections, security gates, and tool handlers.

```powershell
python -m pytest -v
```
```
59 tests collected โ€” 59 passed in ~1.3s
```

---

## ๐Ÿ“œ License

RenderBuddy is released under the **MIT License**. Open-source for artists, studios, and developers worldwide.