SwiftUI previews in VS Code, rendered by Xcode 27's headless MCP server.
View on GitHub ↗Homepage ↗SwiftUI previews in VS Code, rendered by Xcode itself.
Xcode 27 can run headless and exposes its tools over MCP, including RenderPreview. This extension asks it to render the Preview (or PreviewProvider) in your current Swift file and shows the image beside your editor. It re-renders when you save. Because Xcode does the rendering, the result matches Xcode's canvas, and the Xcode window never needs to be open.
- A ▶ Preview link above each Preview and PreviewProvider that opens that preview. - A tab for each preview in the file. Double-click a tab to jump to its code. - Re-renders when you save any Swift file in the workspace. - Pick the device, language, color scheme, Dynamic Type size, orientation and the other variants Xcode offers for the preview. - Interactive mode on simulators: the preview runs live for a moment before the snapshot, so content loaded in .task or onAppear and finished animations show up. - Supports Preview(arguments:) items and widget timelines. - Shows build errors as short File.swift:12: message lines, with the full log in the Xcode Preview output. - Export the rendered preview as a PNG, for PR descriptions, docs or App Store drafts. - Open in Xcode jumps to the selected preview in Xcode, when you want its live, interactive canvas. - Follows the active Swift editor.
Install Xcode Preview from the VS Code Marketplace, or from the terminal:
Each GitHub release also has the .vsix attached, for installing manually.
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/michalkos--vscode-xcode-preview.html)
Annotate a running iOS simulator in your browser, and hand the notes to your coding agent.
haplollc/VesaliusA map of your codebase for Claude Code: an on-device code graph with an MCP server, a CLI, a Mac app and a VS Code extension.
wangwanjie/LumenLumen:免费的 iOS / macOS 界面调试器,内置 MCP 与 CLI,Claude Code / Codex / Cursor 一行接入|Free iOS & macOS UI debugger with built-in MCP server for AI agents
MarlonJD/apple-debug-mcpLocal, capability-aware MCP server for authorized AI-assisted macOS and iOS debugging, Simulator/device workflows, Apple binary analysis, profiling, and reproducible evidence.
jankutschera/theonotesOpen-source Markdown notes for Mac, iPhone, iPad and Apple Watch, with iCloud sync and an MCP server for Claude. GPL-3.0.
breferrari/xcrewYour Xcode crew inside Claude Code: three MCP servers working as one, with live build progress and test reports Claude can act on.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.