xcode-mcp-server

xcode-mcp-server

237

The Xcode MCP Server is a tool that facilitates interactions between AI assistants and Xcode projects, supporting tasks like project management, file operations, and simulator management. It offers integration with CocoaPods and the Swift Package Manager to enhance iOS development workflows.

Xcode MCP Server

An MCP server providing comprehensive Xcode integration for AI assistants. This server enables AI agents to interact with Xcode projects, manage iOS simulators, and perform various Xcode-related tasks.

Features

Project Management

  • Manage and create Xcode projects
  • Add files, parse workspace documents, list schemes

File Operations

  • Read/write files, handle binary files with base64
  • Search and check file existence and metadata

Build & Testing

  • Build projects, run tests, analyze code
  • Clean and archive projects

CocoaPods Integration

  • Initialize, install, update CocoaPods
  • Add/remove pod dependencies

Swift Package Manager

  • Initialize packages, manage dependencies, generate documentation
  • Run tests and build

iOS Simulator Tools

  • Manage simulators, install apps, take screenshots

Xcode Utilities

  • Execute commands, compile assets, trace performance

Installation

Prerequisites

  • macOS with Xcode 14.0+, Node.js 16+, npm or yarn

Setup

  • Automated or manual setup options detailed in the document

Usage

Starting the Server

  • Start with npm start or npm run dev

Configuration Options

  • Configure via .env file or command line

Connecting to AI Assistants

  • Compatible with MCP-supported AI assistants

How It Works

  • Uses MCP to interface AI models with Xcode

Contributing

  • Contributions welcome, guidelines provided