Fenestra logo

Fenestra

by richer-richard

Render and test native Rust UIs through semantic accessibility, layout, interaction, screenshot, and motion tools.

Install Fenestra

Run the project’s own setup commands, in order.

Setup steps from the project

richer-richard/fenestra installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install fenestra-mcp
    

Overview

richer-richard/fenestra provides MCP tools for rendering and verifying native Rust UIs described as fenestra/1 JSON. It renders without a display or GPU, exposing a typed accessibility tree and semantic selectors for querying and interaction. Use it to validate accessibility, focus order, layout, screenshots, scripted scenarios, and motion without relying on screen coordinates. The server runs as a Rust binary over MCP stdio.

Use cases

  • Render native Rust UI descriptions without a display or GPU
  • Check accessibility contrast, labels, focus order, and hit targets
  • Run semantic interaction scenarios against post-action expectations
  • Compare rendered frames with PNG baselines
  • Capture animated transitions as captioned filmstrips

Key features

  • Typed accessibility-tree rendering
  • Semantic querying and interaction
  • Accessibility and layout verification
  • PNG screenshot matching with masks and tolerances
  • Scenario assertions and motion filmstrips

Tools13

What Fenestra lets your agent do. Expand a tool for its parameters.

Self-reported~222 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/19 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed13Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Fenestra works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Fenestra

richer-richard/fenestra is an MCP server that connects AI assistants to native Rust UIs described as fenestra/1 JSON. Its main tools render interfaces, query and interact with semantic selectors, validate accessibility and layout, compare screenshots, run scenarios, and capture motion as captioned filmstrips without requiring a display or GPU.

Install it with Cargo using `cargo install fenestra-mcp`, then configure an MCP client to launch the `fenestra-mcp` binary over stdio.

Use `match_screenshot` with a PNG baseline to compare rendered pixels. The tool supports an optional tolerance, a differing-pixel budget, and mask rectangles for regions that should be ignored.

Use `query_ui` and `interact` with semantic selectors based on role, name, value, or ID. Supported actions include clicking, typing, keyboard input, tabbing, hovering, wheel movement, and dragging; coordinates are not used.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFenestra AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/richer-richard-fenestra?style=directory)](https://allmcps.com/mcp/richer-richard-fenestra)
HTML Embed
<a href="https://allmcps.com/mcp/richer-richard-fenestra"><img src="https://allmcps.com/api/badge/richer-richard-fenestra?style=directory" alt="Fenestra on AllMCPs" /></a>