Skip to main content
Glama

Tesla Wrap

Tesla Paint Shop 랩 생성기입니다. 공식 UV 템플릿 + Grok Imagine + 패널 스텐실 방식입니다.

Tesla가 teslamotors/custom-wraps에서 공개하는 모든 차량에서 동작합니다.

클라이언트 사용법(MCP 호스트가 따라야 할 사항)은 USAGE.md 및 wrap://usage를 참조하세요.

파이프라인

  1. 차량의 공식 UV를 다운로드한다.

  2. (선택) 기하학적인 레이아웃 PNG에서 시드를 만든다.

  3. Grok Imagine이 2k / 중간 품질로 룩을 그려낸다.

  4. Tesla의 패널 마스크로 스텐실 처리 → 1MB 미만의 1024×1024 PNG

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 — Imagine에서 필수

  • MCP_LOGIN_PASSWORD — 공개 HTTP MCP를 실행할 경우 필수

.env는 gitignore에 들어 있습니다. 이 저장소에는 키나 비밀번호를 넣지 마세요.

공식 템플릿은 최초의 fetch / create_wrap 호출 시 다운로드됩니다. 생성된 PNG는 outputs/ 폴더에 저장됩니다(이 폴더도 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

이미 배치된 UV를 사용합니다. --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이 열리며, 여기에 사용되는 비밀번호는 .env에 있는 MCP_LOGIN_PASSWORD입니다. 이후 클라이언트는 OAuth 토큰을 유지합니다. 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.

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.
    3
    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