tesla-wrap
Tesla Wrap
Генератор обклейки Tesla Paint Shop: официальный UV-шаблон + Grok Imagine + трафарет по панелям.
Работает для каждого автомобиля Tesla, опубликованный в teslamotors/custom-wraps.
Использование клиентом (что должен делать MCP-хост): USAGE.md, а также wrap://usage.
Рабочий процесс
Скачайте официальный UV-шаблон для автомобиля
(Необязательно) используйте PNG с геометрической раскладкой как стартовую затравку
Grok Imagine создаёт внешний вид в 2k / среднем качестве
Прогоните через маску панелей Tesla → PNG 1024×1024 размером менее 1 МБ
Grok Imagine отвечает за внешний вид. Контуры всегда берутся из шаблона Tesla (IoU 1.0).
Related MCP server: Blockbench MCP Pro
Настройка
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .envОтредактируйте .env:
XAI_API_KEY— обязателен для Grok ImagineMCP_LOGIN_PASSWORD— обязателен, если вы запускаете публичный HTTP MCP
.env игнорируется Git. Не храните ключи и пароли в этом репозитории.
Официальные шаблоны скачиваются при первом вызове fetch / create_wrap. Созданные PNG попадают в outputs/ (тоже игнорируются Git).
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 преобразует уже размещённую UV-раскладку, а не пустой шаблон.
MCP
Инструменты: list_vehicles, fetch_template, create_wrap, verify_wrap, flatten_wrap.
Локальный stdio
[mcp_servers.tesla-wrap]
command = "/path/to/grok-editor/.venv/bin/python"
args = ["/path/to/grok-editor/mcp_server.py"]Публичный HTTP + первый OAuth-вход
python mcp_server.py --http --host 127.0.0.1 --port 8787 --path /grok-editor-mcpЗадайте MCP_PUBLIC_HOST — имя хоста, через который вы проксируете запросы (без https://). При первом подключении открывается /login; пароль — MCP_LOGIN_PASSWORD из .env. После этого клиент сохраняет OAuth-токен. Grok Imagine по-прежнему использует локальный XAI_API_KEY.
[mcp_servers.tesla-wrap]
url = "https://YOUR_HOST/grok-editor-mcp"
enabled = true
tool_timeout_sec = 600Проверка состояния (без авторизации): http://127.0.0.1:8787/health
Необязательный пользовательский юнит systemd: tesla-wrap-mcp.service (WorkingDirectory использует %h/grok-editor).
Автомобили
model3, model3-2024-base (псевдонимы: 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, cybertruck.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read vehicle records, service history and reminder settings. OAuth access via supported clients.
Auto.dev MCP — wraps the Auto.dev automotive data API (auto.dev)
CarsXE MCP — wraps the CarsXE Vehicle Data API (carsxe.com)
NHTSA MCP — wraps the NHTSA vPIC (Vehicle Product Information Catalog) API (free, no auth)…
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables 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.3648 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables 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.2MIT
- AlicenseAqualityBmaintenanceEnables 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.10MIT