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! ๐ŸŽโœจ