
giginet/xcodeproj-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
giginet/xcodeproj-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/giginet/xcodeproj-mcp-server.
Обзор
giginet/xcodeproj-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/giginet/xcodeproj-mcp-server.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP) для обработки проектных файлов Xcode (.xcodeproj) с помощью Swift.
Обзор
xcodeproj-mcp-server — это MCP-сервер, предоставляющий инструменты для программной обработки проектных файлов Xcode. Он использует библиотеку tuist/xcodeproj для надёжной работы с файлами проекта и реализует протокол Model Context Protocol с помощью swift-sdk.
Этот сервер позволяет ассистентам ИИ и другим MCP-клиентам:
- Создавать новые проекты Xcode
- Управление целями, файлами и конфигурациями сборки
- Проверять структуру проекта, включая группы и иерархии
- Изменить настройки сборки
- Добавить зависимости и фреймворки
- Автоматизация типичных задач проекта Xcode
Сценарии использования
Создание и подготовка проекта
- Создавать проекты с нуля: генерировать новые проекты Xcode с пользовательскими конфигурациями, идентификаторами пакетов и настройками организации без открытия Xcode
- Многоцелевая проектная структура: Настройка сложных проектов с множеством приложений, фреймворков, тестов и расширений в едином автоматизированном рабочем процессе
Автоматизация рабочих процессов разработки
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
xcodeproj-mcp-server
A Model Context Protocol (MCP) server for manipulating Xcode project files (.xcodeproj) using Swift.
Overview
xcodeproj-mcp-server is an MCP server that provides tools for programmatically manipulating Xcode project files. It leverages the tuist/xcodeproj library for reliable project file manipulation and implements the Model Context Protocol using the swift-sdk.
This server enables AI assistants and other MCP clients to:
- Create new Xcode projects
- Manage targets, files, and build configurations
- Inspect project structure including groups and hierarchies
- Modify build settings
- Add dependencies and frameworks
- Automate common Xcode project tasks
Use Cases
Project Creation and Setup
- Create projects from scratch: Generate new Xcode projects with custom configurations, bundle identifiers, and organization settings without opening Xcode
- Multi-target project scaffolding: Set up complex projects with multiple apps, frameworks, tests, and extensions in a single automated workflow
Development Workflow Automation
- Add new files to targets: After creating a new Swift file, automatically add it to the appropriate target’s source files for compilation
- Add folder references: Include external resource folders or asset directories as synchronized folder references in your project, automatically reflecting any file system changes
- Add build phases: Integrate code formatters, linters, or custom build scripts into your targets (e.g., SwiftLint, SwiftFormat execution phases)
- Create frameworks and app extensions: Quickly scaffold new framework targets or app extensions for modularizing your codebase
- Add Widget Extensions: Automatically create and embed Widget Extension targets with proper configuration for iOS home screen widgets
Project Configuration Management
- Automate Info.plist setup: Programmatically configure Info.plist settings, entitlements, and provisioning profiles for different targets
Установка
docker run --rm -i -v ${workspaceFolder}:/workspace ghcr.io/giginet/xcodeproj-mcp-server /workspaceКонфигурация
{
"mcpServers": {
"xcodeproj": {
"command": "/usr/local/bin/container",
"args": [
"run",
"--rm",
"-i",
"-v",
"${workspaceFolder}:/workspace",
"ghcr.io/giginet/xcodeproj-mcp-server",
"/workspace"
]
}
}
}