Skip to main content
Glama

Tesla Wrap

Generador de wraps de Tesla Paint Shop: plantilla UV oficial + Grok Imagine + encil de paneles.

Funciona con todos los vehículos que Tesla publica en teslamotors/custom-wraps.

Uso del cliente (lo que debe seguir un MCP host): USAGE.md, también wrap://usage.

Pipeline

  1. Descarga la UV oficial del vehículo

  2. (Opcional) Usar un PNG de composición geométrica como semilla

  3. Grok Imagine pinta el aspecto en 2k / calidad media

  4. Aplica el esténcil a través de la máscara de paneles de Tesla → PNG de 1024×1024 de menos de 1 MB

Imagine es para el look. Los contornos siempre vienen de la plantilla de Tesla (IoU 1.0).

Related MCP server: Blockbench MCP Pro

Configuración

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env

Edita .env:

  • XAI_API_KEY — obligatorio para Grok Imagine

  • MCP_LOGIN_PASSWORD — obligatorio si ejecutas el MCP HTTP público

.env está en .gitignore. No pongas claves ni contraseñas en este repositorio.

Las plantillas oficiales se descargan en el primer fetch / create_wrap. Los PNGs generados se guardan en outputs/ (también en .gitignore).

CLI

python wrap.py vehicles
python wrap.py fetch highland

python wrap.py imagine --name black-gold --vehicle highland \
  --look "driver side chrome gold, passenger matte black, honeycomb fade on the hood" \
  --ref https://example.com/car.jpg

python wrap.py verify outputs/black-gold.png --vehicle highland
python wrap.py flatten outputs/black-gold.png

--base path/to/layout.png permite restilizar una UV ya maquetada en lugar de la plantilla en blanco.

MCP

Herramientas: list_vehicles, fetch_template, create_wrap, verify_wrap, flatten_wrap.

Stdio local

[mcp_servers.tesla-wrap]
command = "/path/to/grok-editor/.venv/bin/python"
args = ["/path/to/grok-editor/mcp_server.py"]

HTTP público + OAuth en la primera conexión

python mcp_server.py --http --host 127.0.0.1 --port 8787 --path /grok-editor-mcp

Define MCP_PUBLIC_HOST como el hostname al que enrías el tráfico o haces de proxy (sin https://). La primera conexión abre /login; la contraseña es MCP_LOGIN_PASSWORD de .env. Después, el cliente conserva un token OAuth. Grok Imagine sigue usando la XAI_API_KEY local.

[mcp_servers.tesla-wrap]
url = "https://YOUR_HOST/grok-editor-mcp"
enabled = true
tool_timeout_sec = 600

Estado (sin autenticación): http://127.0.0.1:8787/health

Unidad de usuario systemd opcional: tesla-wrap-mcp.service (WorkingDirectory usa %h/grok-editor).

Vehículos

model3, model3-2024-base (alias: highland, model3-premium), model3-2024-performance, modely, modely-2025-base, modely-2025-premium, modely-2025-performance, modely-l, models-2021, models-2025-plaid, modelx-2021, Ciberambulancia.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents and MCP clients to perform 3D asset creation and verification: exact b-rep CAD, GLB validation with embedded certificates, mesh inspection, and physics scenes, with most tools running without Blender.
    36
    48 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI clients to control Blockbench for 3D modeling, including geometry, UV, texturing, animation, procedural generation, quality gates, and human review via 95 tools over HTTP or stdio.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to search and inspect an indexed GTA San Andreas installation — models, textures, map placements and crash addresses — and to build, lint and convert texture, model and map mods through the same operations the CLI exposes.
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to turn pictures of a jersey and bib shorts into a finished cycling kit file for the game Virada. It supplies the kit format and templates, renders flat sheets and previews of the kit on male or female riders from six angles for comparison against reference pictures, then validates and exports the result as a .kit.zip.
    10
    MIT