MCP.so
登录

Xcode MCP Server

@r-huijts

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

r-huijts

关于 Xcode MCP Server

MCP Server implementation for Xcode integration

Xcode MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Xcode MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Xcode MCP Server?

The Xcode MCP Server is an MCP (Model Context Protocol) server that provides comprehensive Xcode integration for AI assistants. It enables AI agents to interact with Xcode projects, manage iOS simulators, and perform various Xcode-related tasks with enhanced error handling and support for multiple project types (standard projects, workspaces, and Swift packages).

How to use Xcode MCP Server?

Install via the automated setup script (./setup.sh) or manually: clone the repo, run npm install and npm run build, then create a .env file with your projects base directory. Start the server with npm start. Connect your AI assistant to the server URL (default http://localhost:3000). Configuration can also be done via command-line arguments (e.g., --projects-dir, --port, --debug).

Key features of Xcode MCP Server

  • Set active projects, create new projects from templates, add files
  • Read/write files, search content with patterns and regex
  • Build projects, run tests, analyze code, archive for distribution
  • CocoaPods integration: install, update, add/remove pods
  • Swift Package Manager: init, add/remove dependencies, generate DocC
  • iOS simulator tools: list, boot, install apps, screenshots, recordings
  • Xcode utilities: compile asset catalogs, generate app icons, switch Xcode versions

Use cases of Xcode MCP Server

  • AI-assisted project creation and file management for iOS/macOS apps
  • Automated build, test, and analyze workflows in CI or development
  • Managing CocoaPods dependencies through natural language commands
  • Controlling iOS simulators (boot, install, record) via AI agents
  • Preparing and validating archives for App Store submission

常见问题

1

What are the prerequisites?

macOS with Xcode 14.0 or higher, Node.js 16+, npm or yarn, Swift 5.5+ for Swift Package Manager features. CocoaPods is optional and requires Ruby.

2

How do I configure the server?

You can configure via environment variables in a `.env` file (e.g., `PROJECTS_BASE_DIR`, `DEBUG`, `PORT`) or via command-line arguments (e.g., `--projects-dir`, `--port`, `--debug`). The `PROJECTS_BASE_DIR` is required.

3

Where does the server run and how do AI assistants connect?

The server runs locally on the configured port (default 3000). AI assistants that support the Model Context Protocol connect to the server URL (typically `http://localhost:3000`).

4

Is there automated setup available?

Yes, the included `setup.sh` script verifies prerequisites, installs dependencies, prompts for configuration, and optionally integrates with Claude Desktop.

5

What about security and path restrictions?

The server uses a path management component that validates all file access against allowed directories. The `ALLOWED_PATHS` configuration parameter lets you specify additional directories that the server is permitted to access.

评论

其他 分类下的更多 MCP 服务器