Skip to main content
Glama

Virada kit maker (MCP server)

Make a cycling kit for Virada with the AI of your choice. Give your agent pictures of a jersey and bib shorts; this MCP server tells it the game's kit format, shows it the kit on the game's riders (male and female, in the game's look) so it can compare with your pictures and fix what differs, and writes the finished kit file (.kit.zip) for you to send in. Submitted kits are reviewed before they appear in the game.

Connect your agent

The server runs on your computer (Python 3.12+, uv):

uvx --from git+https://github.com/gloscherrybomb/virada-kit-mcp virada-kit

Claude Code: claude mcp add virada-kit -- uvx --from git+https://github.com/gloscherrybomb/virada-kit-mcp virada-kit

Claude Desktop, Gemini CLI, Cursor and other MCP clients (their MCP settings file, mcpServers):

{"mcpServers": {"virada-kit": {"command": "uvx", "args": ["--from", "git+https://github.com/gloscherrybomb/virada-kit-mcp", "virada-kit"]}}}

Then ask, for example: "Make a Virada kit from this picture (attached). Use the virada-kit tools; show me the preview before exporting." If you only have a front picture, the agent will propose the back and sides first.

Related MCP server: texel-mcp

What the agent gets

tool

does

get_kit_spec

the format and the workflow (SPEC.md)

get_template

the sheet templates: a guide (where each rider's seams, zip and pockets fall) or a clean canvas to paint on

add_asset

add a logo or a painted sheet (file path or base64)

render_sheets

the flat jersey and bib sheets

preview_kit

the kit on the male or female rider from six angles

compare_to_reference

your picture beside the kit on the rider from a similar angle

validate_kit, export_kit

check it and write the .kit.zip; the file comes back to the agent in the result (and as the resource kit://<file>), and a local server also saves it in ~/virada-kits

import_kit

open a kit file to keep working on it

Agents can build a kit from layers (colours, bands, panels, stripes, shapes, lines, text, logos) or paint the whole sheet as a picture (image models), or both. The format: SPEC.md.

Example

The Virada jersey: reference and the kit on the game's rider

examples/virada: a product picture made into a kit.

The kit file

<name>.kit.zip: kit.json (the design and its notes), jersey.png (2048 x 2048) and bib.png (2048 x 1024), the pictures it uses, and previews. The game reads the two sheets.

Notes

  • Only use names, logos and designs you own or made.

  • The preview riders are made from Quaternius' Universal Base Characters (CC0). Fonts: Montserrat and Oswald (SIL Open Font License, see src/virada_kit/data/fonts).

  • Chat apps (Gemini web, Claude.ai, ChatGPT) connect to a server by URL, not by running it: run the remote version (Dockerfile, or VIRADA_KIT_PUBLIC_URL=https://your.host virada-kit --http --host 0.0.0.0 --port 8000) behind HTTPS and give the app https://your.host/mcp. There pictures go in as base64 (no paths), and exported kits also come with a download link valid for an hour.

Develop

uv sync && uv run pytest

Available Tools

10 tools
add_assetB
Read-onlyIdempotent

Add a picture the kit uses: a logo for an 'image' layer (PNG with transparency is best) or a whole painted sheet for {"sheet": ...}. Give a local file path (local servers) or base64 PNG/JPEG data. Use the id it returns in the kit. Names: letters, digits, _ and -. In a chat app that can't send a picture's bytes, skip this: build with layers.

Inputs: name (required), path, base64_png. Returns: result

compare_to_referenceA
Read-onlyIdempotent

The user's reference picture beside the kit on the game's rider from a similar angle, to spot what differs (colours, where panels and logos sit, sizes). Pick the view nearest the reference's angle. The rider is cropped to the jersey (jersey_only, default) or to the jersey and bibs, as product pictures are framed. If you can't send the picture's bytes (a chat app), leave the reference out: you get the rider's views alone to set beside the picture you can see. grid (default on) draws the FRONT and BACK panels' coordinates on the rider (a line every 0.1 of u and v, thicker at u = 0.5): read off where and how big each logo, stripe and panel edge is in the reference, and set the same numbers in the kit.

Inputs: kit (required), body, grid, view, +3 more.

export_kitA
Read-onlyIdempotent

Write the kit file (.kit.zip: kit.json, the two finished sheets, its pictures, previews) and hand it back. Only after the compare loop shows the kit matching the user's pictures (see get_kit_spec's workflow); it refuses a kit that was never compared, or one with invented parts, until user_approved=true (the user has seen and agreed). The result carries the file itself (an embedded resource, application/zip, also readable later as kit://) for you to save or pass on, plus where the server wrote it (path: local servers; default its work folder) and a preview to check.

Inputs: kit (required), path, user_approved.

get_kit_specA
Read-onlyIdempotent

The kit format and how to make a kit: the sheets and their panels, the layer types, the workflow. Read first.

Inputs: no named parameters. Returns: result

get_templateB
Read-onlyIdempotent

A sheet's template ('jersey' 2048x2048 or 'bib' 2048x1024). style 'guide': the panels and where the game's male (blue) and female (pink) riders' kit edges, seams, zip and pockets fall, for placing layers. style 'clean': white panels with thin outlines, names and which way is up, the zip line, pockets, cuff and gripper bands: the canvas to paint a whole sheet on (route B, e.g. with an image model; paint everything, leave no outlines or words). save_to: also write the full-size PNG to this path (local servers).

Inputs: sheet, style, save_to.

import_kitC
Read-onlyIdempotent

Open a .kit.zip (made here or elsewhere) to keep working on it: returns its kit object (to edit and pass to the other tools) and adds its pictures as assets; also shows it on the riders.

Inputs: path, base64_zip.

list_assetsC
Read-onlyIdempotent

The pictures added so far.

Inputs: no named parameters. Returns: result

preview_kitA
Read-onlyIdempotent

The kit on the game's rider, in the game's look; follow it with compare_to_reference and fix what differs. body: 'male' or 'female'. views (any of front, front34_left, left, back, right, front34_right; default front, front34_left, back). front34_left = the front turned to show the rider's left side, like most product photos.

Inputs: kit (required), body, views.

render_sheetsB
Read-onlyIdempotent

The kit's two finished sheets as pictures (jersey, then bib), to check the flat layout.

Inputs: kit (required).

validate_kitB
Read-onlyIdempotent

Check a kit object against the format. Returns 'valid' or the problems to fix.

Inputs: kit (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct step or resource in the kit workflow: spec reading, template fetch, asset add/list, validation, flat-sheet rendering, rider preview, reference comparison, export, and import. The potentially overlapping render_sheets vs preview_kit and preview_kit vs compare_to_reference are clearly separated by their descriptions (flat layout vs on-rider view vs side-by-side reference). No two tools appear to do the same thing.

    Naming Consistency5/5

    All ten tools follow a consistent verb_noun snake_case pattern (get_kit_spec, get_template, add_asset, list_assets, validate_kit, render_sheets, preview_kit, compare_to_reference, export_kit, import_kit). Verbs are used predictably and no convention mixing is present.

    Tool Count5/5

    Ten tools is well-scoped for a kit-design workflow, with each tool earning its place as a stage (spec, template, assets, validate, render, preview, compare, export, import). Nothing feels redundant or padded.

    Completeness4/5

    The workflow lifecycle is essentially complete: read spec, get template, manage assets, validate, render, preview, compare against reference, and round-trip via export/import. The only minor gap is asset lifecycle management (add/list exist but no remove or rename), which agents can work around.

    Related MCP Connectors

    Related MCP Servers