fresnel-mcp
v0.2.2MCP server for fresnel: let AI agents create, edit, preview and export Liquid Glass app icons (.icon bundles)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
icon_create Create icon
Creates a new .icon bundle (Icon Composer format). background accepts "#RRGGBB", "gradient:#top,#bottom", "auto-gradient:#color", "automatic", "system-light", "system-dark" or a color string like "display-p3:1,0.5,0,1".
| Parameter | Type | Description |
|---|---|---|
path * | string | Bundle path, e.g. "MyApp.icon" (".icon" is added if missing). Relative paths are inside the first allowed root. |
background | string | Background fill for all appearances |
dark_background | string | Background override for the dark appearance |
dry_run | boolean | Validate and report the result without writing anything |
overwrite | boolean | Replace an existing bundle. Default false |
watch | boolean | Also target watchOS (circular). Default true |
icon_inspect Inspect icon
Shows the groups, layers, attributes and per-appearance overrides of an .icon bundle.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
icon_add_group Add group
Adds a group. Groups carry the Liquid Glass settings (translucency, blur-material, specular, shadow, lighting).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | Path to the .icon bundle (".icon" is added if missing) |
dry_run | boolean | Validate and report the result without writing anything |
index | integer | 0 = frontmost (default) |
props | object | Group attributes, e.g. {"translucency": {"enabled": true, "value": 0.5}, "blur-material": 0.3} |
icon_add_layer Add layer
Adds an image layer to a group (the group is created if it does not exist). Provide either `svg` (inline SVG markup), `source` (path to an .svg/.png/.jpg file inside the allowed roots) or `png_base64`. Artwork should be a square, unmasked 1024×1024 canvas with a transparent background; it is placed at its natural size, centered.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name or #index. A missing group is created in front (index 0); use icon_move to reorder. |
path * | string | Path to the .icon bundle (".icon" is added if missing) |
dry_run | boolean | Validate and report the result without writing anything |
file_name | string | Name to store in Assets/, e.g. "star.svg" |
index | integer | Position inside the group, 0 = frontmost (default) |
name | string | Layer name |
png_base64 | string | |
props | object | Layer attributes, e.g. {"glass": true, "opacity": 0.8, "fill": "#FFFFFF", "position": {"scale": 0.8, "translation-in-points": [0, -40]}} |
source | string | Image file path |
svg | string | Inline SVG markup |
icon_set Set attributes
Sets attributes on the document, a group or a layer. Pass `appearance` ("dark", or "tinted" = Mono in Icon Composer) and/or `platform` ("iOS", "macOS", "watchOS", "square" = iOS+macOS) to write a variant for only that case. Set a value to null to remove it (or to remove the override when `appearance` is given). See fresnel://schema/icon-json for keys and formats.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
props * | object | kebab-case keys, e.g. {"translucency": {"enabled": true, "value": 0.6}, "specular": true} |
target * | string | "document", "<Group>" or "<Group>/<Layer>" (names or #index) |
appearance | string | |
dry_run | boolean | Validate and report the result without writing anything |
platform | string |
icon_move Reorder
Moves a group or layer to a new index (0 = frontmost). Layers can move to another group with to_group.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
path * | string | Path to the .icon bundle (".icon" is added if missing) |
target * | string | |
dry_run | boolean | Validate and report the result without writing anything |
to_group | string |
icon_align Align or distribute
Aligns groups or layers by their bounding boxes (left, hcenter, right, top, vcenter, bottom), or spaces 3+ items evenly (distribute-horizontal, distribute-vertical). With one target, or basis "canvas", items align to the 1024 pt canvas. Only positions change.
| Parameter | Type | Description |
|---|---|---|
how * | string | |
path * | string | Path to the .icon bundle (".icon" is added if missing) |
targets * | array | "<Group>" or "<Group>/<Layer>" (names or #index); all of the same kind |
basis | string | Default: selection (canvas when there is one target) |
dry_run | boolean | Validate and report the result without writing anything |
platform | string | Write the positions as a platform variant |
icon_remove Remove group or layer
Removes a group or a layer. Unused assets are deleted from Assets/.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
target * | string | |
dry_run | boolean | Validate and report the result without writing anything |
icon_validate Validate
Checks the icon against the schema and Apple HIG recommendations (square unmasked layers, opaque background, no text, variants, …).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
icon_render Render preview
Renders an approximate preview PNG of one appearance and returns it as an image. Optionally saves it with `out`.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
appearance | string | Default: "default". Mono in Icon Composer = clear-light / clear-dark / tinted-light / tinted-dark |
light_angle | number | Light direction in degrees, 0 = top (default), -45 = top-left |
mask | string | |
out | string | Save the PNG to this path |
platform | string | Default: iOS. watchOS renders a circle |
size | integer | Pixels, default 512 |
tint | string | Tint color for tinted appearances, "#RRGGBB" |
icon_render_sheet Render all appearances
Renders the six appearances (Default, Clear light, Tinted light / Dark, Clear dark, Tinted dark) side by side and returns the PNG.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .icon bundle (".icon" is added if missing) |
cell | integer | Cell size in pixels, default 240 |
out | string | |
tint | string | Tint color for tinted appearances, "#RRGGBB" |
icon_export Export
Exports the icon. Formats: "icon" (copy of the .icon bundle for Xcode 26+ / Icon Composer), "icns" (macOS), "appiconset" (Xcode asset catalog with Dark and Tinted variants), "png" (PNG set per appearance and size). Raster formats use fresnel’s approximate renderer. Assets.car requires Apple’s actool on macOS and is not produced here.
| Parameter | Type | Description |
|---|---|---|
formats * | array | |
out_dir * | string | |
path * | string | Path to the .icon bundle (".icon" is added if missing) |
appearances | array | PNG appearances, default all six |
sizes | array | PNG sizes, default [1024, 512, 256, 128, 64, 32, 16] |