Skip to main content
Glama
stitch-native

stitch-native

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
extract_tokensB

Extract Stitch design tokens (colours, spacing) as a SwiftUI theme, a Compose theme or CSS custom properties (:root).

stitch_to_irB

Parse a Stitch screen into the platform-neutral layout IR (JSON).

stitch_to_swiftuiB

Convert a Stitch screen to a SwiftUI view. Reports off-token colours and warnings.

stitch_to_composeB

Convert a Stitch screen to a Jetpack Compose (Material 3) composable. Reports off-token colours and warnings.

stitch_to_htmlB

Convert a Stitch screen to one self-contained HTML page (a single block with tokens as CSS custom properties, semantic tags, no script, no external URLs). Layout mode only. Material icons become filled from the config's iconsHtml; unmapped icons are listed.

stitch_to_nativeB

Convert one Stitch screen to the project's targets in one call (swiftui, compose, html; default = the config's targets, else swiftui + compose), plus the theme file of each. In state mode html is skipped with a warning.

init_configA

Build a stitch-native.json skeleton from the colours, fonts and icons a screen uses, merged over an existing config (existing entries win and are never deleted). Only the keys of the requested targets are written (iOS-only: no iconsCompose, no output.compose); an explicit targets is stored in the config. Returns the JSON and the unmapped entries to fill in.

Prompts

Interactive templates invoked by user choice

NameDescription
convert_screenConvert a Stitch screen into native code that uses your own design system.

Resources

Contextual data attached and managed by the client

NameDescription
Config (stitch-native.json) example
IR format

TDQS

A3.5/5.0

Scored across 7 tools

Disambiguation4/5

Each tool has a distinct output artifact (IR, Compose, SwiftUI, HTML, theme tokens, config skeleton), but stitch_to_native explicitly aggregates the per-target converters, so an agent must decide between the batch tool and the individual ones. extract_tokens vs init_config both deal with colours/spacing and could be momentarily confused, though descriptions clarify (theme output vs config JSON).

Naming Consistency4/5

Five tools follow a clean stitch_to_<target> pattern, with extract_tokens and init_config as verb_noun actions in the same snake_case style. The mix of a common prefix family and two standalone verbs is readable and predictable.

Tool Count5/5

Seven tools is well-scoped for a screen-to-code converter: one per target, one aggregate, plus IR, tokens and config. No tool feels redundant enough to remove, and none of the workflow is missing a slot.

Completeness4/5

The surface covers the full pipeline: parse (IR), per-target conversion, tokens, batch native export, and config bootstrapping. Minor gaps remain — no config validation/inspection tool or way to list/map icons beyond init_config's output, and no additional targets (e.g. Flutter/XML) if those are in scope.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues