swift-dev-tools-mcp

badrinathvm/swift-dev-tools-mcp

3.3

If you are the rightful owner of swift-dev-tools-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Swift Dev Tools MCP Server provides essential tools for Swift and iOS/macOS development, integrating AI assistants with your development environment.

Tools
7
Resources
0
Prompts
0

🚀 Swift Dev Tools MCP Server

🛠️ Essential Swift & iOS/macOS development tools through the Model Context Protocol (MCP). Bridge your AI assistants with your development environment!

✨ What's Inside

🔧 Development Environment Info

  • 🐦 Swift Version - Check your Swift installation
  • 📱 iOS/macOS Simulators - List all available simulators
  • 🔨 Xcode Details - Version and build information
  • 📦 Xcode SDKs - All available development SDKs
  • 🔗 Connected Devices - Live iOS/macOS device detection
  • 🍎 macOS System Info - Version and architecture details
  • 📋 Multiple Xcode Support - Detect and manage multiple Xcode versions
  • Environment Health - Comprehensive development tools status check

🎯 Quick Start

📋 Requirements

  • 🍎 macOS 13.0+
  • 🐦 Swift 6.1+
  • 🔨 Xcode (for dev tools)

🏗️ Installation

1️⃣ Clone & Build

git clone <your-repo-url>
cd swift-dev-tools-mcp

# 🐛 Debug build
swift build

# 🚀 Release build  
swift build -c release

2️⃣ Run the Server

# Direct run
swift run swift-dev-tools-mcp

# Or use executable
.build/release/swift-dev-tools-mcp

🔌 MCP Client Setup

Configure Claude Desktop:

{
  "mcpServers": {
    "swift-dev-tools": {
      "command": "/path/to/your/.build/arm64-apple-macosx/release/swift-dev-tools-mcp"
    }
  }
}

To get upgrade to latest one

 brew update && brew upgrade swift-dev-tools-mcp

🛠️ Available Tools

ToolDescriptionExample Output
🐦 swift_versionCurrent Swift versionApple Swift version 5.9.2
📱 list_simulatoriOS/macOS simulatorsiPhone 15 Pro (Shutdown)
🔨 xcode_versionXcode build infoXcode 15.2 Build 15C500b
📦 xcode_sdksAvailable SDKsiOS 17.2 -sdk iphoneos17.2
🔗 connected_devicesLive device listConnected iOS/macOS devices
🍎 macos_versionSystem versionmacOS 14.2.1 (23C71)
⚙️ system_architectureCPU architecturearm64 or x86_64
📋 list_xcode_versionsAll Xcode installationsXcode.app (16.1, Build 16B40), Xcode-26.0.0-Beta.4.app (Version 26.0, Build 17A5285i), etc.
developer_tools_statusDev environment health checkStatus of all dev tools with ✓/✗

🏗️ Architecture

Built with modern Swift tools:

  • 🌟 Swift MCP SDK - Official MCP protocol implementation
  • 🏛️ Foundation - System process execution
  • 💬 Stdio Transport - Standard I/O communication

👨‍💻 Development

📁 Project Structure

swift-dev-tools-mcp/
├── 📄 Package.swift      # Package configuration
├── 🔒 Package.resolved   # Dependency lock
├── 📁 Sources/
│   └── 🐦 main.swift    # Server implementation
└── 📖 README.md         # This guide

➕ Adding New Tools

  1. 🎯 Define new Tool with name & description
  2. ➕ Add to tools array in ListTools handler
  3. 🔀 Add case in CallTool handler
  4. ⚙️ Implement system command function

🤝 Contributing

  1. 🍴 Fork the repository
  2. 🌿 Create feature branch
  3. ✏️ Make your changes
  4. 🧪 Add tests (if needed)
  5. 📤 Submit pull request

📚 Resources


💡 Pro Tip: This server bridges the gap between AI assistants and your Swift development environment, making your workflow more intelligent and automated!

🎉 Happy Coding! 🍎✨