PX

polarvista/xcode-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

53 stars 4 forks Качество 46 Тренд 0

polarvista/xcode-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/polarvista/xcode-mcp-server.

Обзор

polarvista/xcode-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/polarvista/xcode-mcp-server.

Обзор (машинный перевод)

Сервер Model Context Protocol для создания проектов Xcode непосредственно из приложений LLM

Xcode MCP Server предоставляет интерфейс Model Context Protocol для создания и тестирования проектов Xcode. Он позволяет помощникам ИИ напрямую запускать сборки, запускать тесты, отслеживать прогресс и получать доступ к журналам через стандартизированный интерфейс.

Особенности

  • Создание проектов Xcode с пользовательскими схемами и конфигурациями Запуск единичных тестов с гранулированным управлением (запуск конкретных тестов или пропуск тестов)
  • Сгенерировать отчеты о покрытии кода Потоковая сборка и тестовые журналы в режиме реального времени Доступ к подробным отчетам о сборке и тестировании
  • Результаты, отформатированные в формате JSON
  • автоматическое сохранение лог

Требования

Node.js 16+ Инструменты командной строки Xcode

  • TypeScript MCP-совместимый клиент (например, Claude Desktop)

##Установка

Использование с Claude Desktop

1.Запустите сервер:

  1. В настройках Claude Desktop:

Доступные инструменты

###строительный проект

Создает проект Xcode с заданными параметрами.

Параметры:

  • projectPath (обязательно): Путь к .xcodeproj или .xcworkspace
  • [[Т1]] (обязательно): Наименование схемы строительства
  • configuration (необязательно): Конфигурация сборки (Debug/Release, по умолчанию Debug)

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Xcode MCP Server

A Model Context Protocol server for building Xcode projects directly from LLM applications

The Xcode MCP Server provides a Model Context Protocol interface for building and testing Xcode projects. It enables AI assistants to directly trigger builds, run tests, monitor progress, and access logs through a standardized interface.

Features

  • Build Xcode projects with custom schemes and configurations
  • Run unit tests with granular control (run specific tests or skip tests)
  • Generate code coverage reports
  • Stream build and test logs in real-time
  • Access detailed build and test reports
  • JSON-formatted output
  • Automatic log persistence

Requirements

  • Node.js 16+
  • Xcode Command Line Tools
  • TypeScript
  • MCP-compatible client (e.g., Claude Desktop)

Installation

# Clone the repository
git clone https://github.com/PolarVista/Xcode-mcp-server.git
cd xcode-mcp-server

# Install dependencies
npm install

# Build the server
npm run build

Usage with Claude Desktop

  1. Start the server:

    npm run start /path/to/build/logs/directory
    
  2. In Claude Desktop settings:

           "command": "node",
           "args": ["/path/to/the/xcode-mcp-server/build/index.js",
                    "/path/to/your/project/folder"],
           "env": {
             "PATH": "/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin"
       }
    

Available Tools

build_project

Builds an Xcode project with specified parameters.

Parameters:

  • projectPath (required): Path to the .xcodeproj or .xcworkspace
  • scheme (required): Build scheme name
  • configuration (optional): Build configuration (Debug/Release, defaults to Debug)
  • destination (optional): Build destination (defaults to “platform=iOS Simulator,name=iPhone 15 Pro”)

Example usage in Claude:

build_project({
  projectPath: "/path/to/Project.xcodeproj",
  scheme: "MyApp",
  configuration: "Debug"
})

run_tests

Runs unit tests with optional filtering.

Parameters:

  • projectPath (required): Path to the .xcodeproj or .xcworkspace
  • scheme (required): Test scheme name
  • testIdentifier (optional): Specific test to run (e.g., ‘MyTests/testExample’)
  • skipTests (optional): Array of test identifiers to skip
  • configuration (optional): Build configuration (Debug/Release, defaults to Debug)
  • destination (optional): Test destination (defaults to “platform=iOS Simulator,name=iPhone 15 Pro”)

Example usage in Claude:

run_tests({
  projectPath: "/path/to/Project.xcodeproj",
  scheme: "MyAppTests",
  testIdentifier: "LoginTests/testSuccessfulLogin",
  skipTests: ["PerformanceTests/testLargeDataLoad"],
  configuration: "Debug"
})

Logs

  • All logs are stored in the specified base directory under build-logs/
  • Build operations create:
    • Plain text log (build-[timestamp].log)
    • JSON-formatted log (build-[timestamp].log.json)
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →