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 のパネルマスクでステンシル → 1 MB 未満の 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

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