Skip to main content
Glama

Xcode MCP Server

by PolarVista

Xcode MCP サーバー

Xcode MCPサーバーは、Xcodeプロジェクトのビルドとテストのためのモデルコンテキストプロトコルインターフェースを提供します。これにより、AIアシスタントは標準化されたインターフェースを介してビルドを直接トリガーし、テストを実行し、進捗状況を監視したり、ログにアクセスしたりできるようになります。

特徴

  • カスタムスキームと構成でXcodeプロジェクトをビルドする
  • きめ細かな制御でユニットテストを実行する(特定のテストを実行するか、テストをスキップする)
  • コードカバレッジレポートを生成する
  • ビルドとテストのログをリアルタイムでストリーミング
  • 詳細なビルドおよびテストレポートにアクセスする
  • JSON形式の出力
  • 自動ログ永続化

要件

  • Node.js 16以上
  • Xcode コマンドラインツール
  • タイプスクリプト
  • MCP 互換クライアント (例: Claude Desktop)

インストール

# 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

Claude Desktopでの使用

  1. サーバーを起動します。
    npm run start /path/to/build/logs/directory
  2. Claude Desktop の設定:
    "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" }

利用可能なツール

ビルドプロジェクト

指定されたパラメータを使用して Xcode プロジェクトをビルドします。

パラメータ:

  • projectPath (必須): .xcodeproj または .xcworkspace へのパス
  • scheme (必須): ビルドスキーム名
  • configuration (オプション):ビルド構成(デバッグ/リリース、デフォルトはデバッグ)
  • destination (オプション): ビルド先 (デフォルトは "platform=iOS Simulator,name=iPhone 15 Pro")

Claude での使用例:

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

実行テスト

オプションのフィルタリングを使用して単体テストを実行します。

パラメータ:

  • projectPath (必須): .xcodeproj または .xcworkspace へのパス
  • scheme (必須): テストスキーム名
  • testIdentifier (オプション): 実行する特定のテスト (例: 'MyTests/testExample')
  • skipTests (オプション): スキップするテスト識別子の配列
  • configuration (オプション):ビルド構成(デバッグ/リリース、デフォルトはデバッグ)
  • destination (オプション): テストの宛先 (デフォルトは "platform=iOS Simulator,name=iPhone 15 Pro")

Claude での使用例:

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

ログ

  • すべてのログはbuild-logs/以下の指定されたベースディレクトリに保存されます。
  • ビルド操作により以下が作成されます:
    • プレーンテキストログ ( build-[timestamp].log )
    • JSON形式のログ ( build-[timestamp].log.json )
    • Xcodeレポート( report-[timestamp].txt
  • テスト操作により以下が作成されます。
    • テストログ ( test-[timestamp].log )
    • JSON形式のログ ( test-[timestamp].log.json )
    • テストレポート ( test-report-[timestamp].txt )
    • コードカバレッジレポート ( coverage-[timestamp].txt )
  • 最新のログ(ビルドまたはテスト)はxcode-build://latest-logリソースからアクセスできます。
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

AI アシスタントが標準化されたインターフェースを介して Xcode プロジェクトを直接構築およびテストできるようにするモデル コンテキスト プロトコル サーバー。テストの実行、進行状況の監視、ログへのリアルタイム アクセスなどの機能を備えています。

  1. 特徴
    1. 要件
      1. インストール
        1. Claude Desktopでの使用
          1. 利用可能なツール
            1. ビルドプロジェクト
            2. 実行テスト
          2. ログ

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that integrates with Linear, enabling AI assistants to create, update, search, and comment on issues for project management and issue tracking.
              Last updated -
              5
              6
              Python
              Apache 2.0
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.
              Last updated -
              84
              40
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              -
              license
              -
              quality
              A Model Context Protocol server implementation that enables AI assistants to interact with Linear project management systems, allowing them to create, retrieve, and modify data related to issues, projects, teams, and users.
              Last updated -
              20
              2
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.
              Last updated -
              1
              TypeScript

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/PolarVista/Xcode-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server