# richer-richard/fenestra [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/richer-richard/fenestra/tree/main/fenestra-mcp  
**GitHub Stars:** 15  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/richer-richard-fenestra

## Description
Render and verify native Rust GUIs with no display or GPU: render to a typed accessibility tree, query/interact by semantic selector (never coordinates), check contrast/focus-order/hit-target-size, diff screenshots, and watch motion play as a captioned filmstrip. 13 tools. cargo install fenestra-mcp.

## Tools
Capabilities this server exposes over MCP:

- **describe_vocabulary** — the description grammar: every node type with a
- **describe_schema** — the formal JSON Schema for a `fenestra/1` description,
- **render_ui** — render to a typed access tree, a downscaled preview image, and
- **query_ui** — find nodes by a semantic selector (role, name, value, or id);
- **interact** — drive scripted interactions (click, type, key, tab, hover,
- **check_a11y** — theme contrast, labeling of every interactive control, and
- **focus_order** — the keyboard focus order: the refs a Tab cycle visits, in
- **check_layout** — layout geometry from the real frame: interactive targets
- **match_aria_snapshot** — assert an expected accessibility snapshot (partial /
- **match_screenshot** — compare against a baseline PNG, pixel by pixel, with an
- **validate** — validate a description without rendering; problems come back
- **run_scenario** — drive a description + optional steps through a whole
- **film_ui** — drive optional steps (applied first, so a click can trigger the

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/richer-richard/fenestra/tree/main/fenestra-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
cargo install fenestra-mcp
```

## Documentation

## What richer-richard/fenestra does

richer-richard/fenestra evaluates native Rust interfaces represented as fenestra/1 JSON. It can render a description into a typed accessibility tree, a downscaled preview, and accessibility warnings without requiring a display or GPU. Agents can inspect controls by role, name, value, or ID, then interact with them through semantic selectors rather than pixel coordinates.

The server supports both individual checks and bundled verification. It can validate input descriptions before rendering, inspect keyboard focus order, check contrast and text legibility, identify small interactive targets and clipped signal-bearing nodes, compare rendered output with PNG baselines, and assert accessibility snapshots. It can also execute a scenario containing interactions and several expectations in one pass.

## How it works

The server communicates over MCP stdio. Its input UI descriptions use the fenestra/1 JSON format. `describe_vocabulary` explains the available node types and theme color roles, while `describe_schema` exposes the formal JSON Schema; these tools can help an agent construct or inspect valid descriptions before rendering.

Interactions include clicking, typing, keyboard input, tabbing, hovering, wheel movement, and dragging. Selectors remain semantic throughout, and a failed query returns nearby candidates that can guide a retry. Visual tools return structured results first, attach a reduced-size preview, and provide a `resource_link` to the full-resolution PNG at a temporary `file://` path.

Most tools use reduced motion to keep rendered pixels deterministic. `film_ui` is the exception: it enables real motion, optionally applies steps first, captures frames, and combines them into a captioned filmstrip.

## Setup and configuration

Install the binary with Cargo:

```sh
cargo install fenestra-mcp
```

Configure an MCP client to launch the `fenestra-mcp` executable over stdio. Screenshot baselines are restricted to a single root directory. By default, that root is the working directory from which the MCP client starts the server. Set `FENESTRA_MCP_BASELINE_ROOT` to use another location.

Baseline paths supplied to `match_screenshot`, or through `run_scenario` screenshot expectations, may be relative to the root or absolute within it. Paths that resolve outside the root are rejected, including symlinks that point outward. The configured root must be a readable directory; otherwise startup stops instead of falling back to the default.

## Tools and capabilities

The server exposes 13 tools:

- Describe the fenestra vocabulary and JSON Schema.
- Render UI descriptions and inspect typed accessibility output.
- Query nodes and perform semantic interactions.
- Check contrast, labels, APCA, WCAG 2 legibility, focus order, hit-target size, and clipping.
- Match accessibility snapshots and compare screenshots with tolerances, pixel budgets, and ignore masks.
- Validate descriptions without rendering.
- Run multi-expectation interaction scenarios.
- Capture motion as a captioned filmstrip.

Several tools publish formal output schemas, including query, accessibility, focus, layout, ARIA snapshot, and vocabulary operations. Screenshot comparisons return a diff image when they fail; that image contains the rendered pixels rather than the baseline pixels.

## Limitations and notes

The input format is specifically fenestra/1 JSON, and the server is intended for native Rust GUI descriptions using that format. Interactions depend on semantic selectors and do not provide coordinate-based control. Baseline access is deliberately confined to the configured directory. Motion is disabled for deterministic rendering except during `film_ui` captures.

The project is licensed under either MIT or Apache-2.0, at the user's option.

_Full upstream README: https://allmcps.com/mcp/richer-richard-fenestra/readme_

