home / skills / fusengine / agents / mcp-tools

This skill streamlines iOS/macOS development by coordinating XcodeBuildMCP and Apple Docs MCP for automated builds and offline API/WWDC access.

npx playbooks add skill fusengine/agents --skill mcp-tools

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
4.0 KB
---
name: mcp-tools
description: MCP tools for Xcode automation and Apple documentation access. XcodeBuildMCP for builds, apple-docs for WWDC and API docs. Use when building projects, searching documentation, or accessing WWDC content.
user-invocable: false
references: references/xcodebuild-mcp.md, references/apple-docs-mcp.md
related-skills: swift-core, ios, macos
---

# MCP Tools for Swift Development

**Model Context Protocol servers for enhanced Swift/Xcode workflows.**

## Available MCP Servers

### 1. XcodeBuildMCP
**Purpose**: Xcode project automation and build validation

**Documentation**: `xcode-build-mcp.md`

**Key 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

---

### 2. Apple Docs MCP
**Purpose**: Official Apple documentation with offline WWDC access

**Documentation**: `apple-docs-mcp.md`

**Key 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

---

## 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)
```

### 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 errors
```

---

## Complete Development Workflow (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 changes
```

---

## Benefits

### 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
✅ Official Apple documentation (most accurate)
✅ WWDC sessions offline (2014-2025)
✅ Zero network latency
✅ Complete API coverage
✅ Deprecation and availability info

---

## Resources

**XcodeBuildMCP**:
- [GitHub](https://github.com/cameroncooke/XcodeBuildMCP)
- [npm](https://www.npmjs.com/package/xcodebuildmcp)
- Version: 1.12.3

**Apple Docs MCP**:
- [GitHub](https://github.com/kimsungwhee/apple-docs-mcp)
- [npm](https://www.npmjs.com/@kimsungwhee/apple-docs-mcp)

---

## Quick Reference

| Task | MCP Tool | Documentation |
|------|----------|---------------|
| Search Apple API | `apple-docs` | `apple-docs-mcp.md` |
| Find WWDC session | `apple-docs` | `apple-docs-mcp.md` |
| Get code example | `apple-docs` | `apple-docs-mcp.md` |
| Build project | `XcodeBuildMCP` | `xcode-build-mcp.md` |
| Validate changes | `XcodeBuildMCP` | `xcode-build-mcp.md` |
| Clean build | `XcodeBuildMCP` | `xcode-build-mcp.md` |
| Create project | `XcodeBuildMCP` | `xcode-build-mcp.md` |

Overview

This skill provides MCP tools for Xcode automation and fast access to Apple documentation and WWDC content. It bundles XcodeBuildMCP for project discovery, builds, cleaning, and autonomous build validation, plus Apple Docs MCP for offline API docs and WWDC transcripts. Use it to enforce zero-error builds and to research official Apple APIs and sample code without network latency.

How this skill works

XcodeBuildMCP scans workspaces and projects, lists schemes, runs builds for macOS, iOS Simulator, and devices, cleans derived data, and can scaffold new projects from templates. Apple Docs MCP serves a local mirror of Apple’s documentation and WWDC sessions (2014–2025), enabling symbol lookup, API availability checks, deprecation info, and sample code retrieval. The recommended workflow runs Apple Docs research first, then uses XcodeBuildMCP to validate every code change until the build succeeds.

When to use it

  • Immediately after making code changes to validate compilation (mandatory).
  • When debugging build failures or tracking down linker/compile errors.
  • While researching Apple APIs, availability, deprecations, or sample code.
  • To find WWDC sessions and transcripts for platform best practices.
  • When scaffolding new Xcode projects or cleaning stale build data.

Best practices

  • Always run XcodeBuildMCP after every change; do not commit with build errors.
  • Prioritize Apple Docs MCP for API decisions before consulting third-party sources.
  • Use the scheme listing and build settings features to confirm targets and configurations.
  • Keep local documentation updated to include the latest WWDC sets for reproducible research.
  • Iterate: build, read errors, fix, and rebuild until zero errors are reported.

Example use cases

  • Validate a feature branch by running an automated build and resolving compiler errors before code review.
  • Search for the official SwiftUI API, sample code, and WWDC guidance when implementing a new UI pattern.
  • Create a new app scaffold from a template and run an initial clean build to verify project setup.
  • Audit code for deprecated APIs and update availability checks using Apple Docs MCP.
  • Diagnose a flaky simulator-only crash by reproducing builds for device and simulator targets and inspecting build settings.

FAQ

Does Apple Docs MCP include WWDC transcripts?

Yes. It provides offline WWDC session transcripts from 2014 through 2025 for fast, local access.

Is build validation required for every code change?

Yes. The workflow enforces running XcodeBuildMCP after each change and only committing when builds succeed.