stitch-native
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
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
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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 |
| 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 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| convert_screen | Convert a Stitch screen into native code that uses your own design system. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Config (stitch-native.json) example | |
| IR format |
TDQS
Scored across 7 tools
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).
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.
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.
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.