
Swiftforge
io.github.jrlingyin888由 GitHub 账号 jrlingyin888 发布v0.2.1更新于 Oct 24, 2026
Curated, current SwiftUI components (incl. iOS 26 Liquid Glass) for your AI coding agent.
概览
一个本地 MCP 服务器,为编程助手提供精选的现代 SwiftUI 组件目录,可浏览、搜索并获取组件源码。
- 可以做什么
- 查看目录中的分类与组件数量,可按分类筛选,先了解有哪些可用组件再为视图或页面挑选。
- 适用场景
- 当 AI 编程助手在构建 iOS 或 SwiftUI 界面,希望它取用当前且经过审阅的组件,而不是猜测 API 或使用已弃用写法时适用。
- 运行要求
- 以本地进程通过 stdio 运行,从 npm 包 swiftforge-mcp 安装(例如使用 npx),因此机器上需要 Node.js 和 npm。未声明任何认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Swiftforge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SwiftForge MCP
[npm version] [license] [MCP] [SwiftUI]
A curated, current, production-grade SwiftUI component library — served straight to your AI coding agent over MCP.
Think 21st.dev (curated React components for AI agents), but for SwiftUI.
See it in action
https://github.com/user-attachments/assets/c2460a1d-fb0d-47e0-9d1b-91e6a784717b
A quick tour of components from the catalog (incl. iOS 26 Liquid Glass), running in the demo app.
The problem
Coding agents (Claude Code, Cursor, Copilot) are great at logic and mediocre at SwiftUI. They:
- reach for deprecated APIs (
NavigationView,.foregroundColor,ObservableObjecteverywhere) - have never seen iOS 26 "Liquid Glass" (
.glassEffect,GlassEffectContainer,.buttonStyle(.glass)) and guess wrong - produce bland, one-off views instead of polished, reusable components
You end up rewriting their SwiftUI by hand. Every time.
What SwiftForge does
SwiftForge is a tiny MCP server that gives your agent on-demand access to a hand-curated catalog of modern, compile-ready SwiftUI components. When you ask your agent to "add a glass card" or "build an onboarding flow," it pulls the real, current component instead of hallucinating one.
The value isn't the server — it's the curated catalog: every component uses current API only, is dark-mode + Dynamic Type friendly, includes a #Preview, and is reviewed for taste.
Quick start
Claude Code
Cursor / Windsurf (~/.cursor/mcp.json or project .cursor/mcp.json)
Full setup, example prompts, and troubleshooting: docs/USAGE.md.
Run from a local clone (development)
Then just talk to your agent:
"Use swiftforge to add a Liquid Glass stat card to this dashboard." "Search swiftforge for a pull-to-refresh list and wire it to my view model."
Demo app — the closed loop, proven
examples/SwiftForgeDemo is a real iOS app that pulls in all 96 catalog components and builds clean — proof that the full loop works (agent → swiftforge → a compiling iOS app):
Verified ** BUILD SUCCEEDED ** on Xcode 26 / iOS 26 simulator — including the Liquid Glass components. The app live-renders a couple of components (paywall, OTP) and lists the full catalog.
Tools the agent gets
What's inside
96 curated components across 14 categories: Buttons & Controls · Cards & Containers · Navigation & Bars · Lists & Scroll · Lists & Grids · Forms & Inputs · Charts · Effects & Liquid Glass · Feedback & Overlays · Media · Auth & Account · Animations · Layout & Scaffolding · Onboarding & Hero — including dedicated iOS 26 Liquid Glass components with graceful-fallback notes.
Every component is gated through a syntax check (scripts/validate.js, xcrun swiftc -parse) and a senior-review pass that strips deprecated API.
📖 Browse every component → docs/CATALOG.md
Roadmap
- New components every release, kept current as iOS evolves.
- Missing something? Open an issue — requests drive what gets added next.
The catalog here is free and MIT.
License
MIT (server). Catalog content © its authors.
来源:README.md,提交 eca0728
工具
0版本历史
1- v0.2.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分