MCP ExplorerExplorer

Xcode Build

@ShenghaiWangon 11 days ago
64 MIT
FreeCommunity
Dev Tools
#xcode#mcpxcodebuild
🍎 Build iOS Xcode workspace/project and feed back errors to llm.

Overview

What is Xcode Build

The xcodebuild MCP Server is a Model Context Protocol server designed to facilitate the building of iOS Xcode workspaces and projects. It integrates seamlessly with Visual Studio Code, allowing developers to work efficiently on iOS projects through extensions like Cline or Roo Code.

Use cases

Developers can use the xcodebuild MCP Server to build and test iOS applications directly from Visual Studio Code. This integration helps streamline the development workflow, enabling tasks such as compiling code, running tests, and managing builds without needing to switch between different tools or environments.

How to use

To use the xcodebuild MCP Server, developers can run it using the ‘uv’ tool or by installing it via pip. Configuration for tools such as Claude.app involves specifying the command and arguments to execute the server, tailored to the method of installation chosen.

Key features

The key features include the ability to build and test iOS Xcode projects efficiently from within Visual Studio Code. It offers tools for seamless integration, enabling direct interaction with Xcode workspaces and projects through commands that specify the folder path of the project.

Where to use

The xcodebuild MCP Server is ideal for iOS developers who prefer working in Visual Studio Code instead of Xcode. It is beneficial for teams looking to enhance their development workflow by incorporating tools that allow for direct interaction with iOS project builds and tests from their code editor.

Content

xcodebuild MCP Server

A Model Context Protocol server that builds iOS workspace/project that enables seamless workflow working with iOS projects in Visual Studio Code using extensions like Cline or Roo Code.

mcpxcodebuild MCP server

Available Tools

  • build - Build iOS Xcode workspace/project
    • folder (string, required): The full path of the current folder that the iOS Xcode workspace/project sits
  • test - Run test for iOS Xcode workspace/project
    • folder (string, required): The full path of the current folder that the iOS Xcode workspace/project sits

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will
use uvx to directly run mcpxcodebuild.

Using PIP

Alternatively you can install mcpxcodebuild via pip:

pip install mcpxcodebuild

After installation, you can run it as a script using:

python -m  mcpxcodebuild

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
Using pip installation

License

xcodebuild MCP tool is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Tools

build
Build the iOS Xcode workspace/project in the folder
test
Run test for the iOS Xcode workspace/project in the folder

Comments