SuperAPI AI Directory

richer-richard/fenestra

fenestra-mcp is the Model Context Protocol (MCP) server for the fenestra project, used to let AI assistants render and validate native interfaces described in fenestra/1 JSON. It communicates with MCP clients over stdio, providing tools for vocabulary and Schema descriptions, interface rendering, semantic queries, scripted interaction, accessibility checks, focus order, layout checks, ARIA snapshot matching, screenshot comparison, description validation, and scenario running, and can compose multiple frames into an annotated filmstrip.

Open website

About this tool

fenestra-mcp is the Model Context Protocol (MCP) server in the fenestra project, with the goal of enabling AI assistants to render and validate native interfaces described in fenestra/1 JSON. The server uses the MCP protocol over stdio; to use it, point the MCP client at the fenestra-mcp binary.

Purpose and main capabilities

  • Description vocabulary and schema: describe_vocabulary provides the description syntax, including a minimal example for each node type and the theme color roles that colors can reference; it is recommended to call this first; describe_schema provides the formal JSON Schema for fenestra/1 descriptions as a machine-verifiable supplement.
  • Rendering and querying: render_ui renders into a typed access tree, a scaled-down preview image, and automatic accessibility warnings; query_ui finds nodes by semantic selector (role, name, value, or id), and when there is no match returns the closest candidates to guide retries.
  • Interaction and checks: interact drives scripted interaction via semantic selectors rather than coordinates (click, type, key press, Tab, hover, wheel, drag); check_a11y checks theme contrast, the label of each interactive control, and the APCA and WCAG 2 readability of each text node; focus_order returns references visited in order by the Tab cycle and respects modal focus traps; check_layout checks layout geometry against real frames, including interactive targets below the minimum hit size and signal-bearing nodes clipped off-screen.
  • Assertions and validation: match_aria_snapshot asserts an expected accessibility snapshot (partial, strict, or regex); match_screenshot compares pixel by pixel with a baseline PNG, with optional tolerance, diff pixel budget, and ignored mask rectangles; validate validates a description without rendering, returning issues located by path; run_scenario drives a description and optional steps in a single run and asserts a whole set of expectations against post-interaction frames (emitted intents, accessibility, ARIA, screenshots, queries).
  • Filmstrip: film_ui first applies optional steps (so that a click can trigger the transition to be observed), then enables real motion capture frames and composes them into an annotated filmstrip; this is the only tool that disables the reduced-motion setting, while other tools keep reduced motion for deterministic pixels.

Usage Each tool uses a typeBegin with structured results; query_ui, check_a11y, focus_order, check_layout, match_aria_snapshot, and describe_vocabulary have formal outputSchema, allowing clients to know the result shape in advance. Visual tools also include a scaled-down preview image and a resource_link pointing to a full-resolution PNG (file:// temporary path), preventing large images from bloating responses.

Baseline read restrictions The expect.screenshot.baseline of match_screenshot and run_scenario requires a disk PNG path. The server reads baselines from only one directory: by default, the working directory when the MCP client starts the server (i.e., the current project), and another location can be specified via FENESTRA_MCP_BASELINE_ROOT. Paths in tool calls can be relative to the root directory or absolute paths located within it; paths that resolve outside the root directory (including symbolic links inside the root directory pointing outside) are rejected, and the rejection message indicates the root directory so that legitimate calls can be retried. If the root directory is not a readable directory, the server will not start rather than silently falling back to the default value. When comparison fails, the returned diff image draws rendered pixels rather than baseline pixels.

Applicable scenarios and limitations Suitable for workflows that require an AI assistant to generate, inspect, interactively test, and visually regression-test native UI descriptions. The materials do not provide specific installation commands, running examples, performance data, or pricing information; the MCP registration name is mcp-name: io.github.richer-richard/fenestra-mcp, and the license is either MIT or Apache-2.0.