What it does
Prefire turns the #Preview blocks in a SwiftUI project into snapshot tests, a Playbook catalog of components and user stories, and PNG renders. Its MCP server lets agents such as Claude Code, Cursor and Codex render previews and inspect the UI they changed. The server exposes list_previews, render_previews and build_board.
It suits teams that want regression checks without writing test code, a browsable catalog for designers and QA, or an agent that checks its own SwiftUI work. Snapshots are compared on every run across the devices listed. Individual previews can be included, excluded, grouped into flows or marked as UI states, and parameterized previews expand into separate snapshots. UIKit and AppKit views are also supported.
Setup uses one of several installs: the Homebrew CLI, the SPM plugin, the Xcode build tool plugin, or Mint (beta). The MCP server is registered with the agent from the folder containing .prefire.yml, and the scheme to build is set in render_configuration. Snapshot tests are generated into DerivedData when the test target builds.
Limitations and requirements
Requires Swift 6.0 or higher and Xcode 16.0 or higher. Supports iOS 14 or higher and macOS 13 or higher, with macOS limited to snapshot tests. Mint installation is in beta. The MCP server needs a project with a .prefire.yml file and a scheme set in render_configuration.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
Prefire
Render SwiftUI #Preview as PNG images, so an AI agent sees the views it changes
v6.6.1As shown on registry.modelcontextprotocol.io when we last read it