Skip to content
Conduit

mcp server

roblox-ai-vibe-coder

Vibe code Roblox games with AI

h4gen/roblox-ai-vibe-codercommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 23, 2026

Roblox AI Vibe Coder 🚀

Roblox AI Vibe Coder is an elite integration between Roblox Studio and Google Gemini, powered by the Model Context Protocol (MCP). It turns the AI from a simple code generator into a proactive, "ground-aware" game engineer that can live-build, debug, and manipulate your Roblox worlds in real-time.

🌟 Key Features

  • Proactive Engineering: The agent doesn't just suggest code; it applies fixes, inspects logs, and verifies its own changes immediately.
  • Voice-Powered Interaction (PTT): Hold the Right Command key to speak directly to the agent.
  • Instant Interruption: Don't wait for the agent to finish; you can interrupt a thinking loop or a tool execution at any time by speaking.
  • Ground-Aware Building: Integrated spatial logic ensures that spawned objects, NPCs, and assets automatically snap to the terrain surface.
  • Rich Toolset:
    • Hierarchy Inspection: Deep-dive into any Service tree.
    • Scripting Excellence: Source reading, overwriting, and Cursor-style patching.
    • Real-time Debugging: Instant access to Studio logs and error detection with automatic log fetching on failure.
    • World Manipulation: Bulk property editing, terrain generation, and procedural scattering.
    • Smart Asset Integration: Search and setup marketplace items (weapons, NPCs, props) with one command.
    • System Architecture: High-fidelity tools for UI generation, Lighting presets, and robust Game Logic patterns.
    • Mechanical Engineering: Construct vehicles and machines using constraints (Welds, Hinges, Motors) with connect_parts.
    • Quality Assurance: Built-in unit testing runner (run_unit_tests) and performance monitoring (get_performance_stats).
    • Codebase Navigation: Instantly find logic across all scripts with search_scripts.
    • Gemini Thinking Support: Leverages Gemini's reasoning capabilities to plan complex multi-step operations before execution.

🏗️ Architecture

The project consists of three main layers:

  1. Orchestrator (roblox_ai.py): An event-driven brain built with Python 3.11's asyncio.TaskGroup. It manages a central event queue for text and voice, handling real-time interruptions and Gemini 3 Flash multimodal sessions.
  2. Virtual Tool Layer (tools/): Definitions and Lua templates that map high-level AI actions (like generate_procedural_terrain) to optimized Luau execution.
  3. Roblox Studio MCP Server: A binary (e.g., rbx-studio-mcp) that acts as a bridge, receiving Luau code from the orchestrator and executing it directly inside the active Studio session.

🚀 Getting Started

Prerequisites

  1. Roblox Studio MCP: You must have the Roblox Studio MCP bridge installed and running.
    • Default path expected: /Applications/RobloxStudioMCP.app/Contents/MacOS/rbx-studio-mcp
  2. Google Gemini API Key: Obtain a key from Google AI Studio.
  3. Python 3.11+: Required for asyncio.TaskGroup and structured concurrency.

Installation

# Clone the repository
git clone https://github.com/your-repo/roblox-ai-vibe-coder.git
cd roblox-ai-vibe-coder

# Install dependencies
uv sync

Configuration

Create a .env file in the root directory:

GEMINI_API_KEY=your_api_key_here

Running the Agent

Start the interactive session:

uv run roblox_ai.py

How to interact:

  • Type: Enter commands normally at the > prompt.
  • Speak: HOLD the Right Command key, speak your instruction, and release to send.
  • Interrupt: Press Right Command at any time to cancel the agent's current task and start a new voice command.

Once connected, you can talk to the agent:

  • "Generate a rolling hills landscape with a small village near the spawn."
  • "Debug why my zombie NPC isn't moving."
  • "Find all scripts that reference 'GoldValue' and update them to use the new 'Currency' module."
  • "Style all parts in Workspace named 'Wall' to be semi-transparent and red."

🛠️ Tooling Summary

🌍 World & Environment

ToolDescription
generate_procedural_terrainNoise-based terrain generation (Hills, Plains, etc.).
manipulate_terrainPrecision terrain editing (Fill Block/Ball, Subtract).
scatter_objectsProcedurally scatter assets with surface alignment.
configure_lightingOne-click professional lighting presets (Day, Night, Horror).
raycast_checkDebug physics and line-of-sight.
get_spatial_summaryAI vision of the immediate surroundings.

🧱 Building & Assets

ToolDescription
smart_setup_assetSearch, insert, and auto-place Marketplace assets.
search_marketplaceQuery the Roblox library for asset IDs.
create_timed_spawnerAutomated object spawning system.
connect_partsCreate mechanical constraints (Welds, Motors, Hinges).
modify_instanceBulk property updates for styling.
reparent_instanceMove objects (e.g., equip tools/scripts).
create_instanceRecursive instance creation (great for custom trees).

💻 Scripting & Logic

ToolDescription
read/edit/patch_scriptFull suite of script management tools.
inject_script_templateInject standard game patterns (Leaderstats, Doors).
search_scriptsFind code across the entire project.
run_unit_testsExecute .spec verification scripts.
create_ui_layoutGenerate responsive UI hierarchies.

🔍 Debugging & Inspection

ToolDescription
inspect_serviceTree view of hierarchy and attributes.
get_studio_logsFetch real-time Output window logs.
get_object_infoDetailed property and tag inspection.
find_instancesSearch for objects by Name or ClassName.
get_performance_statsMonitor Memory, FPS, and Primitives.
manage_tagsCollectionService tag management.

⚠️ Important Notes

  • Edit vs. Play Mode: Some actions (like spawning objects via script) behave differently in Play Mode. Use get_studio_state to check the environment.
  • Publishing: The publish_game tool is included but will always require manual confirmation for safety.
  • Engine Security: Certain properties (like Technology) cannot be set via script due to Roblox engine restrictions.

Built for engineers who value simplicity, robustness, and the "vibe" of building.

↑↓ navigate openesc close