tesserae-studio-mcp
v0.7.0MCP bridge for Tesserae Studio: author e-ink widgets with an AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
studio_health
Studio + Tesserae connection state: mode (disk/live), whether live data and faithful render are available, and how widgets register (symlink/push).
list_widgets
List every widget Studio can see: workspace widgets (editable) and the connected Tesserae's reference widgets, each with fragments, plus whether it is editable and registered (live).
scaffold_widget
Create a new fragment-first, lint-clean widget in the workspace. archetype: stat|list|chart|status|weather|calendar|image. Set server=true to include a server.py stub. Returns the new widget id + files.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
archetype | string | |
fragments | ||
server | boolean |
scaffold_bundle
Scaffold a widget bundle: a shared <name>_core companion (kind data, with choices() + an admin blueprint) plus member widgets wired to it. members is a list of {name, icon?}; defaults to one member. Returns the core + member ids. Register the core and each member with Tesserae for the family to work live.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
admin | boolean | |
members |
scaffold_service
Scaffold a service plugin (kind: service): a non-placeable data source, server.py fetch() only, no render side, that feeds a canvas code/data element from an API. Probe it with empty options to get its self-describing scope map; lint and register it like a widget.
| Parameter | Type | Description |
|---|---|---|
name * | string |
duplicate_widget
Copy an existing widget (workspace or a connected Tesserae reference widget) into the workspace as a new editable widget.
| Parameter | Type | Description |
|---|---|---|
source * | string | |
name |
delete_widget
Delete a workspace widget and every file in it, permanently. Unregisters it from the connected Tesserae first (symlink or push, whichever it is on), so nothing is left pointing at a folder that no longer exists. Only workspace widgets can be deleted; the connected checkout's reference widgets are not Studio's to remove. Use this to clear away a failed first attempt rather than leaving two widgets with the same name in the picker. DESTRUCTIVE and not undoable: confirm with the operator before calling it on anything they did not just ask you to throw away.
| Parameter | Type | Description |
|---|---|---|
widget * | string |
list_files
List a workspace widget's files (path, language, editable).
| Parameter | Type | Description |
|---|---|---|
widget * | string |
read_file
Read one file from a widget (e.g. path='client.js'). Works on workspace widgets and, read-only, on the connected checkout's reference widgets (e.g. ha_core) so you can learn a family's pattern + house style.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
widget * | string |
write_file
Write one file in a workspace widget (whole-file). For a small change prefer edit_file. Run lint_widget after editing.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string | |
widget * | string |
edit_file
Replace an exact substring in one file, instead of resending the whole file. `old` must be unique unless replace_all=true. Run lint_widget after.
| Parameter | Type | Description |
|---|---|---|
new * | string | |
old * | string | |
path * | string | |
widget * | string | |
replace_all | boolean |
design_system
Read a Spectra house-style stylesheet so you match the widget conventions (classes + tokens) on the first pass instead of reverse-engineering siblings. name: spectra-widgets | spectra-styles | spectra-tokens | base | forms.
| Parameter | Type | Description |
|---|---|---|
name | string |
lint_widget
Run the widget linter (the Golden Rules + manifest schema). Returns findings with rule/level/message/file/line and error/warning counts.
| Parameter | Type | Description |
|---|---|---|
widget * | string |
mine_data_schema
Mine a canvas-bindable data_schema (fields + sample) from the widget's data. source: auto|live|sample. apply=true writes it into plugin.json. Returns fields (typed), the data_schema, and a diff vs the declared one.
| Parameter | Type | Description |
|---|---|---|
widget * | string | |
apply | boolean | |
max_fields | integer | |
options | ||
source | string |
widget_data
Fetch the data a widget's server.py returns (live), or its sample. Returns {data, source} with the flattened field paths. fresh=true bypasses Tesserae's cache so a just-edited server.py is reflected immediately.
| Parameter | Type | Description |
|---|---|---|
widget * | string | |
fresh | boolean |
register_widget
Register a workspace widget with the connected Tesserae so it gets live data + faithful render. Uses a local symlink when co-located, else an HTTP push over MCP (remote / HA). May report needs_reload / restarting.
| Parameter | Type | Description |
|---|---|---|
widget * | string |
unregister_widget
Remove a workspace widget's registration from the connected Tesserae.
| Parameter | Type | Description |
|---|---|---|
widget * | string |
faithful_render
Return the true e-ink render of a registered widget as a PNG image (Tesserae's Playwright screenshot). size: xs|sm|md|lg. options = cell options to render a configured state; fragment = render one declared fragment (default the whole widget); fresh=true bypasses Tesserae's cache. The widget must be registered and Tesserae reachable. Returns an image, or {error} on failure.
| Parameter | Type | Description |
|---|---|---|
widget * | string | |
fragment | ||
fresh | boolean | |
options | ||
size | string |
screenshot_widget
Write a widget's faithful-render PNG (from Tesserae) to out_path on disk, for catalog screenshots. lg is 1200x800. options = a configured state; fragment = one declared fragment. The widget must be registered and Tesserae reachable. Same render path as faithful_render, just saved to a file.
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
widget * | string | |
fragment | ||
options | ||
size | string |
package_widget
Build the release tarball for a widget (or its whole bundle) and return its sha256 + size + folders. For the catalog, the tarball_url is normally the widget's own GitHub repo release archive; use this for a self-hosted tarball or to inspect what ships.
| Parameter | Type | Description |
|---|---|---|
widget * | string |
generate_catalog_entry
Build + validate a marketplace catalog entry against the real marketplace.schema.json. author={name, github?}; tags is a non-empty subset of the closed taxonomy; release={version, tarball_url, sha256} (sha256 is fetched from tarball_url if omitted). Identity (id/kind/folders) is filled from the manifest; a bundle gets folders. Returns {entry, valid, errors}.
| Parameter | Type | Description |
|---|---|---|
author * | object | |
release * | object | |
tags * | array | |
widget * | string | |
description | ||
name | ||
official | ||
source |
open_catalog_pr
Prepare a PR to the widget catalog: validates the entry, computes the widgets.json diff, and drafts the PR title/body + screenshot path. dry_run (default true) returns the plan without touching GitHub; opening the real PR is gated (the widget must first live in its own GitHub repo with a tagged release, so tarball_url resolves).
| Parameter | Type | Description |
|---|---|---|
author * | object | |
release * | object | |
tags * | array | |
widget * | string | |
dry_run | boolean | |
source |