mcp-tools
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMCP Tools for Swift Development
面向Swift开发的MCP工具
Model Context Protocol servers for enhanced Swift/Xcode workflows.
用于提升Swift/Xcode工作流的Model Context Protocol服务器。
Available MCP Servers
可用的MCP服务器
1. XcodeBuildMCP
1. XcodeBuildMCP
Purpose: Xcode project automation and build validation
Documentation:
xcode-build-mcp.mdKey features:
- Discover Xcode projects and workspaces
- Build for macOS, iOS Simulator, iOS Device
- List schemes and show build settings
- Clean builds and derived data
- Create new projects from templates
- Autonomous build validation (AI can build, read errors, fix, rebuild)
Installation:
json
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest"]
}
}
}Use when:
- After making code changes (MANDATORY validation)
- Debugging build issues
- Creating new Xcode projects
- Cleaning stale builds
用途:Xcode项目自动化与构建验证
文档:
xcode-build-mcp.md核心功能:
- 发现Xcode项目与工作区
- 为macOS、iOS模拟器、iOS设备构建项目
- 列出方案并显示构建设置
- 清理构建产物与派生数据
- 从模板创建新项目
- 自主构建验证(AI可执行构建、读取错误、修复问题、重新构建)
安装:
json
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest"]
}
}
}适用场景:
- 代码修改完成后(必须执行的验证步骤)
- 调试构建问题
- 创建新的Xcode项目
- 清理陈旧的构建产物
2. Apple Docs MCP
2. Apple Docs MCP
Purpose: Official Apple documentation with offline WWDC access
Documentation:
apple-docs-mcp.mdKey features:
- Search all Apple frameworks (SwiftUI, UIKit, Foundation, etc.)
- Get detailed symbol information (classes, methods, properties)
- WWDC sessions 2014-2025 with full transcripts (offline)
- Access Apple sample code
- Framework exploration and discovery
- API availability and deprecation checking
Installation:
json
{
"mcpServers": {
"apple-docs": {
"command": "npx",
"args": ["-y", "@kimsungwhee/apple-docs-mcp"]
}
}
}Use when:
- Researching Apple APIs (PRIORITY over Context7)
- Finding WWDC best practices
- Checking API availability
- Getting official code examples
用途:获取官方Apple文档及离线WWDC内容
文档:
apple-docs-mcp.md核心功能:
- 搜索所有Apple框架(SwiftUI、UIKit、Foundation等)
- 获取详细的符号信息(类、方法、属性)
- 2014-2025年WWDC会话及完整文字记录(离线可用)
- 获取Apple示例代码
- 框架探索与发现
- API兼容性与弃用情况检查
安装:
json
{
"mcpServers": {
"apple-docs": {
"command": "npx",
"args": ["-y", "@kimsungwhee/apple-docs-mcp"]
}
}
}适用场景:
- 调研Apple API时(优先级高于Context7)
- 查找WWDC最佳实践
- 检查API兼容性
- 获取官方代码示例
Workflow Integration
工作流集成
Research-First (MANDATORY)
调研优先(必须执行)
text
Priority order:
1. ⭐ Apple Docs MCP (official Apple docs + WWDC)
2. Context7 (third-party libraries)
3. Exa web search (community tutorials)text
优先级顺序:
1. ⭐ Apple Docs MCP(官方Apple文档 + WWDC)
2. Context7(第三方库)
3. Exa网页搜索(社区教程)Build Validation (MANDATORY)
构建验证(必须执行)
text
After EVERY code change:
1. XcodeBuildMCP: Build project
2. If errors → Read error messages
3. Fix issues
4. Rebuild to validate
5. Only commit if zero errorstext
每次代码修改后:
1. XcodeBuildMCP: 构建项目
2. 若出现错误 → 读取错误信息
3. 修复问题
4. 重新构建以验证
5. 仅在零错误时提交代码Complete Development Workflow (2026)
完整开发工作流(2026版)
text
1. Feature request received
↓
2. Apple Docs MCP: Search API/WWDC
↓
3. Read existing codebase (DRY principle)
↓
4. Implement following Apple patterns
↓
5. XcodeBuildMCP: Build to validate ⭐
↓
6. If build errors:
- Read error messages
- Fix issues
- Rebuild
↓
7. Run tests (if available)
↓
8. Commit changestext
1. 收到功能需求
↓
2. Apple Docs MCP: 搜索API/WWDC内容
↓
3. 阅读现有代码库(遵循DRY原则)
↓
4. 遵循Apple模式实现功能
↓
5. XcodeBuildMCP: 构建验证 ⭐
↓
6. 若出现构建错误:
- 读取错误信息
- 修复问题
- 重新构建
↓
7. 运行测试(若有可用测试)
↓
8. 提交变更Benefits
优势
XcodeBuildMCP
XcodeBuildMCP
✅ Autonomous error detection and fixing
✅ Zero tolerance for compilation errors
✅ Lightning-fast incremental builds
✅ Project scaffolding automation
✅ Build validation before commits
✅ 自主错误检测与修复
✅ 零容忍编译错误
✅ 极速增量构建
✅ 项目脚手架自动化
✅ 提交前的构建验证
Apple Docs MCP
Apple Docs MCP
✅ Official Apple documentation (most accurate)
✅ WWDC sessions offline (2014-2025)
✅ Zero network latency
✅ Complete API coverage
✅ Deprecation and availability info
✅ 官方Apple文档(最准确)
✅ 离线WWDC会话(2014-2025)
✅ 零网络延迟
✅ 完整API覆盖
✅ 弃用与兼容性信息
Resources
资源
Quick Reference
快速参考
| Task | MCP Tool | Documentation |
|---|---|---|
| Search Apple API | | |
| Find WWDC session | | |
| Get code example | | |
| Build project | | |
| Validate changes | | |
| Clean build | | |
| Create project | | |
| 任务 | MCP工具 | 文档 |
|---|---|---|
| 检索Apple API | | |
| 查找WWDC会话 | | |
| 获取代码示例 | | |
| 构建项目 | | |
| 验证变更 | | |
| 清理构建产物 | | |
| 创建项目 | | |