texel-mcp

v0.9.2
io.github.Brunovncs/texel-mcp Checked 1 day ago Published 1 month ago

Minecraft skins and textures as code: JSON specs compiled to PNG, with a review an agent can act on.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

texel_render Render skin

Compile a skin spec and review it. Returns a review sheet image (front | back | right | left views + raw texture), the review (score, issues with JSON paths and fix hints, art checks, craft advice, suggested next steps) and, on request, the texture (64×64 for a player skin), a text render and a close-up of some parts. Deterministic; never modifies files.

ParameterTypeDescription
filestringInstead of "spec": a .json spec file in the workspace, e.g. "skins/knight.json". Saves resending the whole spec on every call; texel_patch then edits the file in place.
focusarrayAlso return a close-up of these parts or groups alone (e.g. ["head"], ["arms"]) from all six sides, large, on gray: for judging a face, a hood or one garment.
includearrayExtra outputs. "sheet" is the review image; "ascii" adds a text render for models without vision.
specA Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

texel_patch Patch skin

Apply a patch to a spec (update, replace, add or remove layers by id; change palette, legend or meta) and render the result like texel_render. Layers without an id first get "<op>-<index>" and keep it, so the next patch can use the same ids. Entries that cannot apply are skipped and reported. With "spec", returns the patched spec, the review and the sheet. With "file", writes the patched spec back to that file and returns only the review and the sheet.

ParameterTypeDescription
patch *A patch ({ patch: [{ do: "update", id, set }, …] }) as a JSON object or JSON text. Format: texel://docs/spec, section "Patches".
filestringInstead of "spec": a .json spec file in the workspace, e.g. "skins/knight.json". Saves resending the whole spec on every call; texel_patch then edits the file in place.
includearrayExtra outputs. "sheet" is the review image; "ascii" adds a text render for models without vision.
specA Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

texel_validate Validate skin spec

Check a spec for errors and warnings without rendering images. Cheap; use it after every edit.

ParameterTypeDescription
filestringInstead of "spec": a .json spec file in the workspace, e.g. "skins/knight.json". Saves resending the whole spec on every call; texel_patch then edits the file in place.
specA Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

texel_save Save skin

Compile a spec and write <path>.png (the texture), <path>.skin.json (the source) and optionally <path>.sheet.png into the workspace (/tmp). Also writes every other file the texture is in game: a block's <path>_top.png / _side.png…, an animation's strip with <path>.png.mcmeta, a particle's <path>_0.png…, the glowing pixels as <path>_eyes.png. Refuses specs with errors.

ParameterTypeDescription
path *stringOutput path without extension, relative to the workspace, e.g. "skins/frost-mage".
spec *A Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1
sheetbooleanAlso write the review sheet.

texel_live Start live preview

Start (or reuse) a live session and return a studio URL for the user. While it runs, every texel_render result appears in their open browser tab immediately, so they can watch the skin evolve and give feedback mid-way. Call it before the first render and share the URL with the user.

ParameterTypeDescription
openbooleanAlso open the URL in the default browser of the machine running this server.
portintegerPreferred local port (default 4747; the next free one is used if busy).

texel_share Share skin

Store the spec on https://www.texel.dev.br and return a short link (https://www.texel.dev.br/s/<id>) that opens the exact skin in the studio. Falls back to a long self-contained link when offline.

ParameterTypeDescription
spec *A Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

texel_pull Load skin from link

Load the spec behind a Texel share link (https://www.texel.dev.br/s/<id>, a bare id, or a long studio link with #z= / #spec=) so you can keep developing an existing skin. Returns the spec JSON.

ParameterTypeDescription
link *stringA share link or short id.

texel_render_family Render skin family

Expand a family (base spec + variants and/or a matrix of axes) and review every member. Returns a lineup image (front and back of each member, in order) and a per-member score table.

ParameterTypeDescription
family *A skin family ({ kind: "family", base, variants?, matrix? }) as a JSON object or JSON text. Format: texel://docs/families

texel_save_family Save skin family

Expand a family and write <directory>/<member-id>.png and .skin.json for every member, plus <directory>/lineup.png, into the workspace (/tmp). Refuses families with errors.

ParameterTypeDescription
directory *stringOutput directory relative to the workspace, e.g. "skins/guild".
family *A skin family ({ kind: "family", base, variants?, matrix? }) as a JSON object or JSON text. Format: texel://docs/families

texel_import_png Import skin PNG

Convert an existing PNG in the workspace into an editable spec, one layer per painted face, palette keys c01…cNN. A player skin (64×64 or legacy 64×32) by default; pass layout for a mob, armor, cape, item or block texture. With pixelize, any picture becomes a texture of the layout's size first (concept art or a render on a white background → a 16×16 item; an HD 128×128 skin → 64×64): background removed, colors reduced, specks cleaned. Rename palette keys to material names before editing.

ParameterTypeDescription
path *stringPath to a .png file, relative to the workspace.
colorsintegerWith pixelize: colors to keep (default 16; 0 keeps every averaged color).
layoutstringTexture layout of the PNG, e.g. "zombie", "humanoid" (armor), "item". Default: player skin.
outlinestringWith pixelize: a 1-pixel outline around the shape, "#rrggbb" or "auto" (items).
pixelizebooleanScale and clean a picture of any size into the layout's texture size first.
sizearrayWith pixelize: the texture size for resizable layouts (gui, painting, HD items), e.g. [32, 32].

texel_palette Palette from a reference image

Read a reference PNG in the workspace (concept art, a photo of a figure, another skin) and return its main colors, most common first, each with a role (shadow, midtone, highlight, neutral, accent), as a ready spec "palette" and "legend". Use it to match a reference instead of guessing hex values; derive the other tones with "~" steps.

ParameterTypeDescription
path *stringPath to a .png file, relative to the workspace.
colorsintegerHow many colors to keep.

texel_pack Build resource pack

Build a Minecraft resource pack from spec files, family files and folders of them in the workspace (/tmp): every texture at its "asset" path (or its layout's default: vanilla paths for mobs, item/<name> for items…), with .png.mcmeta, _eyes files, particle definitions, pack.mcmeta for the Minecraft version, and with models: true also the models, block states and item definitions items and blocks need. Writes a .zip or a folder, then checks the result like texel_check_pack.

ParameterTypeDescription
files *arraySpec files, family files or folders of .json specs, relative to the workspace.
descriptionstring
mcVersionstringMinecraft Java version, e.g. "1.21.4". Default: the latest Texel knows.
modelsbooleanAlso write models, block states and item definitions for item, block and plant textures (new items and blocks need them; replaced vanilla textures don't).
namespacestringNamespace for textures whose "asset" has none. Default "minecraft" (replaces vanilla textures); a mod uses its id.
outstringOutput .zip, or a folder, relative to the workspace.

texel_check_pack Check resource pack

Check a resource pack (a folder or a .zip in the workspace, /tmp), not only ones Texel made: pack.mcmeta and the versions its format covers, file and namespace names, PNGs, .mcmeta animations and GUI scaling, entity texture sizes against Texel's layouts, models, block states, item definitions and particles that point at missing files, and unused textures. Each issue has the file, a JSON path and a fix hint.

ParameterTypeDescription
path *stringThe pack folder or .zip, relative to the workspace.
mcVersionstringMinecraft Java version the pack must work on, e.g. "1.21.4".

texel_diff Diff two skins

Compare two specs pixel by pixel and report which faces changed. Use it to confirm a patch touched only what you intended. Returns the changed-pixel mask over the texture map (magenta = changed).

ParameterTypeDescription
after *A Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1
before *A Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

texel_get_example Get example spec

Return a complete, working example spec to learn from or fork. Skins: explorer, knight, robot, astronaut, wizard, cozy, winged-pig, miner-zombie, creeper, mud-pig, bronze-armor, banner-cape, ember-blade, zebra, sky-evoker, ash-log, magma-pulse, stone-button, spark. Family: guild.

ParameterTypeDescription
id *string

texel_read_docs Read Texel docs

Read a documentation page as markdown. Pages: protocol (Skin Agent Protocol), spec (Skin spec reference), art-guide (Skin art guide), families (Skin families), api (Agent interfaces), install (Install as a tool). Read "spec" before writing your first spec.

ParameterTypeDescription
page *string