CX

conorluddy/xc-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

102 stars 9 forks 품질 74 트렌드 14

XCode CLI MCP: Xcode CLI 도구 및 iOS 시뮬레이터용 편의 래퍼. 문맥 사용을 줄이기 위한 도구 응답의 점진적 공개. 빌드 전용 작업에는 --mini param을 사용해 작은 문맥 크기의 공간이 있습니다.

개요

XC-MCP는 지능형 컨텍스트 엔지니어링을 통해 AI 에이전트가 Xcode와 iOS 시뮬레이터 툴을 쉽게 접근할 수 있도록 합니다. — Claude의 툴 검색은 자동으로 주문형 도구를 발견하여 기본 맥락 오버헤드를 최소화하면서 29가지 툴의 완전한 기능을 유지합니다. 전통적인 Xcode CLI 래퍼는 MCP 프로토콜 제한을 초과하는 방대한 출력을 내뜯습니다: - simctl 목록: 57,000+ 토큰 (MCP 맥락에서 사용 불가) - 빌드 로그: 135,000+ 토큰 (치명적 오버플로우) - 스크린샷 우선 자동화: 화면당 170 토큰, 2000ms 지연 - 작업 간 상태 메모리 없음 - ✅ - 모든 도구를 지연; Claude는 주문형 검색 - ✅ - 일반적인 작업을 위한 고수준 추상화 - ✅ - 플랫폼이 도구 탐색을 처리함 - ✅ (스크린샷보다 3-4배 빠르고, 3-4배 저렴함) - ✅ (캐시 ID 요약→ 전체 세부 정보 → 주문 시 제공) - ✅ 포괄적인 오류 처리 기능을 제공합니다 ~/라이브러리/애플리케이션 지원/클로드/claude_desktop_config에 추가하세요.

개요(AI 번역)

AI 에이전트가 iOS 앱을 구축, 실행, 구동할 수 있게 해주는 MCP 서버입니다 — Xcode의 출력에 잠기지 않고요.

XC-MCP는 xcodebuild, simctl, idb를 77개의 도구로 포장합니다. 이 도구들을 노출하는 것만이 임무가 아닙니다 명령어를 모델의 맥락에 맞게 출력해야 합니다: 요약부터 시작하고, 전체 세부 정보를 필요에 따라 제공하고, 그리고 앱이 허용하는 곳에는 스크린샷 대신 접근성 트리를 사용했습니다.


왜 존재하는가

Xcode 툴링은 어떤 컨텍스트 윈도우도 살아남지 않는 규모의 출력을 생성합니다. 실제 앱과 비교해 측정 (그라플라, Xcode 27, 아이폰 17 프로 시뮬레이터):

연산 원시 출력 XC-MCP 응답 환원
1개의 증가 xcodebuild build 1.67 MB · ~419,000 토큰 1.1 KB · ~285 토큰 **~1,470×
xcrun simctl list --json 131 KB · ~32,800 토큰 1.5 KB · ~370 토큰 ~90×
사고 보고서 1건 (.ips) 10.7 KB 1.4 KB 요약 ~7.5×

단일 원시 빌드 로그만으로도 20만 토큰 컨텍스트를 넘길 수 있습니다. 전체 출력은 절대 버려지기: 캐시되어 MCP 리소스 링크로 반환되어, 에이전트가 다음을 뚫을 수 있습니다. 정확한 오류에 필요한 것입니다.


퀵 스타트

클로드 코드:

코덱스 CLI:

또는 '~/.codex/config’에 추가하세요.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

XC-MCP

An MCP server that lets AI agents build, run and drive iOS apps — without drowning in Xcode’s output.

XC-MCP wraps xcodebuild, simctl and idb as 81 tools. Its job is not just to expose those commands but to make their output fit in a model’s context: summaries first, full detail on demand, and the accessibility tree instead of screenshots wherever the app allows it.


Why it exists

Xcode tooling produces output at a scale no context window survives. Measured against a real app (Grapla, Xcode 27, iPhone 17 Pro simulator):

Operation Raw output XC-MCP response Reduction
One incremental xcodebuild build 1.67 MB · ~419,000 tokens 1.1 KB · ~285 tokens ~1,470×
xcrun simctl list --json 131 KB · ~32,800 tokens 1.5 KB · ~370 tokens ~90×
One crash report (.ips) 10.7 KB 1.4 KB summary ~7.5×

A single raw build log would overflow a 200k-token context on its own. The full output is never thrown away: it is cached and returned as an MCP resource link, so an agent can drill into the exact errors it needs.


Quick start

Claude Code:

claude mcp add xc-mcp -- npx -y xc-mcp

Codex CLI:

codex mcp add xc-mcp -- npx -y xc-mcp

or add it to ~/.codex/config.toml directly:

[mcp_servers.xc-mcp]
command = "npx"
args = ["-y", "xc-mcp"]

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "xc-mcp": { "command": "npx", "args": ["-y", "xc-mcp"] }
  }
}

Then ask your agent to build and run your app. rtfm({}) lists the tool categories.


Requirements

Requirement Version Needed for
macOS 13+ everything
Node.js 20+ (CI tests 22 and 24) running the server
Xcode + Command Line Tools 15+ (26+ for iOS 26/27 simulators) xcodebuild, simctl
idb CLI + companion 1.5.1+ every idb-* tool: tapping, typing, accessibility
xcode-select --install

# idb — required for all UI automation
brew tap facebook/fb
brew install facebook/fb/idb-companion facebook/fb/idb-cli

brew install idb-companion no longer works — it moved from Homebrew core to Meta’s facebook/fb tap.

Run idb-doctor whenever UI automation misbehaves. It checks the CLI, the companion version, the Xcode framework layout, stale companion registrations, CLI/companion version mismatches, and the axbridge guest needed by deep reads.

Xcode 27

GitHub에서 전체 README 보기

설치

npx -y xc-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "xc-mcp": { "command": "npx", "args": ["-y", "xc-mcp"] } } }