# Prefire

Prefire — an MCP server that renders SwiftUI #Preview to PNG without Xcode Previews. AI agents see the UI they just changed.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 535 repo stars
- Author: BarredEwe
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/BarredEwe/Prefire
- Updated: 2026-10-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/prefire

## What it does

Prefire runs `#Preview` on any iPhone, iPad, light or dark theme and saves the result as PNG. The agent calls the `render` command, gets an image and checks the UI without Xcode Previews.

Inside: a CLI command `prefire render` builds the preview on the chosen device and returns the file path. Supports iOS, tvOS, macOS (the latter snapshot tests only). Requires Swift 6.0 and Xcode 16.0: the build fails without them.

Install with `brew install barredewe/prefire/prefire`, then `claude mcp add prefire -- prefire mcp` at the project root. The agent gets a `render` tool and uses it when changing SwiftUI code.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- check SwiftUI changes visually without running Xcode Previews
- render a preview on a specific device and theme for the agent
- get a PNG of the UI from `#Preview` via MCP
- show the agent the result of edits in SwiftUI components

## Example prompts
- render `ContentView` on iPhone 15 Pro in dark mode
- show preview of `LoginButton` on iPad mini
- save image of `ProfileCard` for light theme

## Similar
- [axiom-swiftui](https://affpapa.org/en/nevibecode/skills/axiom-swiftui.md) — skill · 1700 installs
- [Phonebook](https://affpapa.org/en/nevibecode/mcp/phonebook.md) — MCP server · ★ 14 repo stars
- [ios-developer](https://affpapa.org/en/nevibecode/agents/ios-developer.md) — subagent · 2684 installs
- [swiftui-design-skill](https://affpapa.org/en/nevibecode/skills/swiftui-design-skill.md) — skill · 1300 installs
- [swiftui-whats-new-27](https://affpapa.org/en/nevibecode/skills/swiftui-whats-new-27.md) — skill · 822 installs
- [swiftui-claude-skills](https://affpapa.org/en/nevibecode/skills/swiftui-claude-skills.md) — skill · 207 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
