badrinathvm/swift-dev-tools-mcp
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.
๐ 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
Tool | Description | Example Output |
---|---|---|
๐ฆ swift_version | Current Swift version | Apple Swift version 5.9.2 |
๐ฑ list_simulator | iOS/macOS simulators | iPhone 15 Pro (Shutdown) |
๐จ xcode_version | Xcode build info | Xcode 15.2 Build 15C500b |
๐ฆ xcode_sdks | Available SDKs | iOS 17.2 -sdk iphoneos17.2 |
๐ connected_devices | Live device list | Connected iOS/macOS devices |
๐ macos_version | System version | macOS 14.2.1 (23C71) |
โ๏ธ system_architecture | CPU architecture | arm64 or x86_64 |
๐ list_xcode_versions | All Xcode installations | Xcode.app (16.1, Build 16B40), Xcode-26.0.0-Beta.4.app (Version 26.0, Build 17A5285i), etc. |
โ
developer_tools_status | Dev environment health check | Status 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
- ๐ฏ Define new
Tool
with name & description - โ Add to
tools
array inListTools
handler - ๐ Add case in
CallTool
handler - โ๏ธ Implement system command function
๐ค Contributing
- ๐ด Fork the repository
- ๐ฟ Create feature branch
- โ๏ธ Make your changes
- ๐งช Add tests (if needed)
- ๐ค Submit pull request
๐ Resources
- ๐ Swift MCP SDK
- ๐ MCP Documentation
- ๐ Report Issues
๐ก Pro Tip: This server bridges the gap between AI assistants and your Swift development environment, making your workflow more intelligent and automated!
๐ Happy Coding! ๐โจ