Back to Home
ericvoltolin icon

xc-mcp

Verified Safe

by ericvoltolin

Overview

LLM-optimized wrapper for Xcode CLI tools, summarizing verbose outputs to reduce token usage in AI-assisted development workflows.

Installation

Run Command
npm start

Environment Variables

  • XC_MCP_CACHE_DIR

Security Notes

The server executes external `xcodebuild` and `simctl` commands via `child_process.exec`. While arguments like `projectPath`, `scheme`, and `destination` are enclosed in double quotes during command construction, `child_process.exec` does not automatically sanitize all shell metacharacters (e.g., command substitution like `$(command)`). The internal `escapeShellArg` utility is defined but not used by `buildXcodebuildCommand` and `buildSimctlCommand`. This leaves a potential command injection vulnerability if user-provided input for parameters (e.g., `destination`, `deviceId`, `scheme`) is not robustly sanitized by the calling client or if malicious strings bypass existing validation checks. Communication via `StdioServerTransport` reduces network exposure but does not eliminate input-based injection risks. No obvious hardcoded secrets or obfuscation found.

Similar Servers

Stats

Interest Score34
Security Score6
Cost ClassLow
Avg Tokens200
Stars4
Forks0
Last Update2026-01-19

Tags

XcodeCLI WrapperLLM OptimizationDeveloper ToolsCachingmacOSModel Context Protocol