Logo de XC-MCP

XC-MCP

Comunidade
conorluddy

XCode CLI & Simulator MCP. Progressive disclosure of tool responses reduces context and token waste. Lets AI agents build, run and drive iOS apps — without drowning in Xcode's output.

Publicado porconorluddy
Repositórioxc-mcp
IdiomaTypeScript
Forks
8
Estrelas
97
Ferramentas disponíveis
30
Tipo de transportestdio
Categorias
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    XC-MCP disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 30 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    97 estrelas e 8 forks no repositório vinculado.

XC-MCP

npm version npm downloads codecov License: MIT

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 77 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):

OperationRaw outputXC-MCP responseReduction
One incremental xcodebuild build1.67 MB · ~419,000 tokens1.1 KB · ~285 tokens~1,470×
xcrun simctl list --json131 KB · ~32,800 tokens1.5 KB · ~370 tokens~90×
One crash report (.ips)10.7 KB1.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:

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

Codex CLI:

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

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

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

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

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

RequirementVersionNeeded for
macOS13+everything
Node.js20+ (CI tests 22 and 24)running the server
Xcode + Command Line Tools15+ (26+ for iOS 26/27 simulators)xcodebuild, simctl
idb CLI + companion1.5.1+every idb-* tool: tapping, typing, accessibility
bash
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, and stale companion registrations.

Xcode 27

idb-companion must be 1.5.1 or newer. Xcode 27 moved SimulatorKit.framework, and older companions fail silently: the accessibility tree reads correctly and every tap reports success, while the simulator discards the events. idb-ui-tap, idb-ui-gesture and idb-ui-input detect this and refuse to run rather than pretend.

bash
brew upgrade facebook/fb/idb-companion
brew list --versions idb-companion   # expect >= 1.5.1
  • There is no Simulator.app — Xcode 27 replaced it with DeviceHub.app. simctl-boot with openGui opens whichever this Xcode ships.
  • If every idb call fails with Connection refused, a dead companion is still registered in /tmp/idb/state. Run idb disconnect <udid>; idb-doctor detects this.

How it works

Summaries first, detail on demand

Tools that produce large output return a summary plus an ID. The full output stays in a 30-minute cache and is exposed two ways: an MCP resource at xcmcp://response/{id}, and the matching *-get-details tool for clients without resource support.

typescript
xcodebuild-build({ projectPath: "./MyApp.xcodeproj", scheme: "MyApp" })
// → { buildId, success: false, errorCount: 3, warningCount: 1, durationMs: 18000 }

xcodebuild-get-details({ buildId, detailType: "errors-only" })
// → the three errors, not the 419k-token log

The accessibility tree before screenshots

For UI automation, reading the accessibility tree is cheaper and faster than sending an image, and it gives exact coordinates instead of visual estimates. Measured on the same screen:

ApproachResponseLatency
idb-ui-find-element~450 tokens of JSON~270 ms
screenshot (half size)~22.5 KB image~1,700 ms

The first idb call in a session takes several seconds while the target cache warms.

This only works when the app is accessible — which is the point. An app VoiceOver can navigate is an app an agent can navigate. accessibility-quality-check says which path to take; accessibility-audit says what to fix.

typescript
idb-ui-find-element({ query: "Sign In" })
// → { centerX: 201, centerY: 572, visible: true }

idb-ui-tap({ x: 201, y: 572 })

Coordinates are not always tappable. The tree reports frames in scrolled-content space, so an element can sit below the fold. Every match carries visible and, when off-screen, an offscreenReason naming the gesture that brings it into view.

Tools that declare their risk

Every tool carries MCP annotations — readOnlyHint, destructiveHint, idempotentHint — so a client can ask before running simctl-erase, idb-crash-delete or idb-clear-keychain, and run simctl-list freely. Build, test, audit and crash tools also declare an outputSchema and return validated structuredContent.


Tools

77 tools. TOOL_SIGNATURES.md indexes every tool with its annotations; parameters come from the server itself via rtfm({ toolName: "..." }).

AreaTools
Build & testxcodebuild-build, -test, -clean, -list, -version, -showsdks, -get-details, -inspect-scheme, -validate-capabilities
Simulatorssimctl-list, -get-details, -suggest, -health-check, -boot, -shutdown, -create, -delete, -erase, -clone, -rename
Appssimctl-install, -uninstall, -launch, -terminate, -openurl, -get-app-container, -container
UI automationidb-ui-describe, -find-element, -tap, -input, -gesture, idb-targets, idb-list-apps, idb-install, -uninstall, -launch, -terminate
Accessibilityaccessibility-quality-check, accessibility-audit
Diagnosticsidb-doctor, idb-crash-list, -show, -delete, hang-start, -stop, -get-details, -list
Test setupsimctl-privacy, -push, -pbcopy, -addmedia, -status-bar, -stream-logs, -appearance, -location, idb-simulate-memory-warning, idb-clear-keychain, idb-xctest-list
Capture & analysisscreenshot, simctl-io, visual-diff, localization-audit, xcode-model-inspect
Workflowsworkflow-build-and-run, workflow-fresh-install, workflow-tap-element, test-record-step, test-record-report
Cache & docscache-get-stats, -get-config, -set-config, -clear, persistence-enable, -disable, -status, rtfm

Configuration

FlagEffect
--mini, -mOne-line tool descriptions; rtfm supplies the detail
--build-only, -bRegisters 18 build-focused tools instead of 77

Flags combine: ["-y", "xc-mcp", "--mini", "--build-only"] — the same args array works in Claude Desktop and Codex's config.toml. Both matter mainly for clients that load every tool description upfront; see the history below.

Environment variableDefaultControls
XC_MCP_CACHE_DIR~/.xc-mcp (honours XDG_CACHE_HOME)Disk persistence for caches
XC_MCP_HANG_DIR~/.xc-mcp/hang-sessionsHangBuster capture sessions
XC_MCP_RECORDINGS_DIR~/.xc-mcp/test-recordingsTest recording reports

How context cost shaped this server

XC-MCP has been rebuilt three times, and each rebuild answered the same question — what does a tool cost in context? — differently, because the answer kept changing underneath it. The tool count went 51 → 28 → 77, and each time the right number was set by what clients and the protocol could do.

v1 · Aug 2025 — 51 tools, every description paid upfront

MCP clients of the time loaded every tool's name, description and input schema when they connected, and kept them in context for the whole session. Tool count was a tax on context, paid before the agent did any work.

v1.3.2 cut the tax per tool: descriptions shrank to a few words and the real documentation moved behind rtfm, fetched only when asked for. A separate, smaller xc-mini-mcp package was also published — and reverted shortly after.

v2 · Nov 2025 — 28 tools, consolidated into routers

If the count is the tax, cut the count. v2 folded 21 tools into six operation-enum routers — simctl-device({ operation: "boot" }) instead of simctl-boot — sharing one schema per router.

That bought a debt nobody could see yet. A router is a single tool, so it carries a single description and a single set of properties for every operation behind it. That cost nothing while tools had no per-tool properties worth losing.

v3 · Nov 2025 — betting on deferred loading

v3 set defer_loading: true on every tool, expecting tools to load on demand and baseline cost to fall toward zero. The goal was right; the mechanism could not work.

defer_loading is a field of the Messages API. It belongs on tool definitions sent to the model, alongside the tool-search server tools, and an MCP server has no way to set it. The MCP SDK also drops unrecognised keys from a tool's registration, so the flag never reached a client — a live tools/list later showed 0 of 77 tools carrying it.

Deferral did arrive, on the client side. Clients with tool search, Claude Code among them, began listing only tool names at startup and fetching a tool's schema when it is first used. No server flag was involved.

v4 · Jun 2026 — 70 tools, routers dissolved

Two developments reversed the v2 trade-off.

  • Client-side tool search made tool count cheap. With schemas deferred, 77 tools cost roughly what their names cost — about 1,240 tokens at startup, server instructions included.
  • The protocol gained per-tool metadata. Revision 2025-03-26 added tool annotations (#185). Revision 2025-06-18 added structured tool output (#371), resource links in tool results (#603), and a human-readable title (#663).

Annotations are precisely what a router cannot express. simctl-device hid both boot, which is harmless, and erase, which destroys a simulator, behind one tool — so no client could tell them apart. The routers were dissolved into discrete tools that each declare their own risk and output shape, and resource links replaced ad-hoc cache IDs as the way to return large output. The server negotiates protocol 2025-06-18.

v4.1 · Sep 2026 — 71 tools, Xcode 27 readiness

Xcode 27 broke idb in a way that failed silently: older companions read the accessibility tree correctly but dropped every tap while reporting success. v4.1 added idb-doctor, a 1.5.1 companion floor, and a preflight that makes HID-writing tools refuse to run rather than pretend.

v4.2 · Sep 2026 — 77 tools, tested against a real app

Driving a real app end-to-end found four bugs that had passed 1,456 tests, all in parsing idb's output. The tests mocked a format idb never emits — newline-delimited objects with label fields — where idb really returns one JSON array using AXLabel. So accessibility-quality-check rated every screen unusable and idb-ui-find-element never matched anything, each while returning well-formed, plausible JSON. Fixtures now use captured idb output, and reintroducing one of those bugs fails ten tests.

The same pass added crash reporting, element visibility and test-isolation tools, and removed the inert defer_loading flag.

The trade-off, version by version

VersionToolsWhat set the context cost
v1.051Every description loaded at connect
v1.3.251Descriptions trimmed; documentation moved behind rtfm
v2.028Tool count cut by consolidating into routers
v3.030A server-side deferral flag that never took effect
v4.070Client-side deferral; routers dissolved for per-tool annotations
v4.171Unchanged model; Xcode 27 support
v4.277Unchanged model, verified against real idb output

Two lessons carried forward. Context cost is the client's call — a server should describe its tools honestly and let the client decide how to spend context on them. And a structured response can hide a broken tool — test against the real command, not a mock of it.

Release detail is in CHANGELOG.md.

Migrating from v2/v3 routers

Drop the operation field and call the matching tool. Operation-specific parameters are unchanged.

Removed routerReplacement tools
simctl-devicesimctl-boot, -shutdown, -create, -delete, -erase, -clone, -rename
simctl-appsimctl-install, -uninstall, -launch, -terminate
idb-appidb-install, -uninstall, -launch, -terminate
cachecache-get-stats, -get-config, -set-config, -clear
persistencepersistence-enable, -disable, -status

idb-targets keeps its operation enum. rtfm({ toolName: "simctl-device" }) still suggests the replacements.


Development

bash
git clone https://github.com/conorluddy/xc-mcp.git
cd xc-mcp && npm install
npm run build     # compile to dist/
npm test          # jest
npm run lint      # eslint

Point any MCP client at a local build with node /path/to/xc-mcp/dist/index.js. A running server holds dist/ in memory, so restart the client session after rebuilding.

CLAUDE.md covers the architecture, how to add a tool, and the rules learned the hard way.

Contributing

[!WARNING] Contributions are welcome but reviewed slowly — this repo sits well down my priority list. Forking and adapting it is usually the faster route.

Pull requests need a passing build, tests and lint.

License

MIT, as declared in package.json.

Instalação

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

Ferramentas disponíveis

  • xcodebuild-version

    xcodebuild-version

    ⚡ Get Xcode and SDK version information with structured output

    What it does

    Retrieves comprehensive version information about your Xcode installation and available SDKs. Returns structured JSON data that's easy to parse and validate, eliminating the need to parse raw command-line output. Validates Xcode installation before execution to provide clear error messages if Xcode is not properly configured.

    Why you'd use it

    • Validate environment before running builds or tests (CI/CD validation)
    • Check SDK availability for specific platform versions
    • Ensure consistent Xcode versions across team or build environments
    • Get structured version data for automated tooling and scripts

    Parameters

    Optional

    • sdk (string): Query specific SDK version (e.g., "iphoneos", "iphonesimulator")
    • outputFormat (string, default: 'json'): "json" or "text" output format

    Returns

    Structured JSON response containing Xcode version, build number, and SDK info

  • xcodebuild-list

    xcodebuild-list

    ⚡ List project targets, schemes, and configurations with intelligent caching

    What it does

    Discovers and returns all available build targets, schemes, and configurations for an Xcode project or workspace. Uses 1-hour intelligent caching to remember results and avoid expensive re-runs of project discovery. Validates both Xcode installation and project path before execution to provide clear error messages if something is misconfigured.

    Why you'd use it

    • Discover available schemes before building or testing (essential for automation)
    • Validate project structure and configuration
    • Get structured project metadata for CI/CD pipelines
    • Avoid expensive repeated queries with 1-hour caching

    Parameters

    Required

    • projectPath (string): Path to .xcodeproj or .xcworkspace file

    Optional

    • outputFormat (string, default: 'json'): "json" or "text" output format

    Returns

    Structured JSON containing all targets, schemes, configurations, and proj

  • xcodebuild-build

    xcodebuild-build

    ⚡ Build Xcode projects with intelligent defaults and performance tracking

    What it does

    Builds Xcode projects and workspaces with advanced learning capabilities that remember successful configurations and suggest optimal simulators per project. Uses progressive disclosure to provide concise summaries by default, with full build logs available on demand. Tracks build performance metrics (duration, errors, warnings) and learns from successful builds to improve future build suggestions.

    Why you'd use it

    • Automatic smart defaults: remembers which simulator and config worked last time
    • Progressive disclosure: concise summaries prevent token overflow, full logs on demand
    • Performance tracking: measures build times and provides optimization insights
    • Structured errors: clear error messages instead of raw CLI stderr

    Parameters

    Required

    • projectPath (string): Path to .xcodeproj or .xcworkspace file
    • scheme (string): Build scheme name (use
  • xcodebuild-clean

    xcodebuild-clean

    ⚡ Clean build artifacts with validation and structured output

    What it does

    Removes build artifacts and intermediate files for an Xcode project or workspace. Pre-validates that the project exists and Xcode is properly installed before executing, providing clear error messages if something is misconfigured. Returns structured JSON responses with execution status, duration, and any errors encountered during the clean operation.

    Why you'd use it

    • Resolve build issues by removing stale or corrupted build artifacts
    • Free up disk space occupied by intermediate build files
    • Ensure clean builds from scratch without cached compilation results
    • Get structured feedback with execution time and success status

    Parameters

    Required

    • projectPath (string): Path to .xcodeproj or .xcworkspace file
    • scheme (string): Build scheme name to clean

    Optional

    • configuration (string): Build configuration to clean (e.g., "Debug", "Release")

    Return

  • xcodebuild-test

    xcodebuild-test

    ⚡ Run Xcode tests with intelligent defaults and progressive disclosure

    What it does

    Executes unit and UI tests for Xcode projects with advanced learning that remembers successful test configurations and suggests optimal simulators per project. Provides detailed test metrics (passed/failed/skipped) with progressive disclosure to prevent token overflow. Supports test filtering (-only-testing, -skip-testing), test plans, and test-without-building mode for faster iteration. Learns from successful test runs to improve future suggestions.

    Why you'd use it

    • Automatic smart defaults: remembers which simulator and config worked for tests
    • Detailed test metrics: structured pass/fail/skip counts instead of raw output
    • Progressive disclosure: concise summaries with full logs available via testId
    • Test filtering: run specific tests or skip problematic ones with -only-testing/-skip-testing

    Parameters

    Required

    • projectPath (string): Path to .xcodepro
  • xcodebuild-get-details

    xcodebuild-get-details

    🔍 Retrieve detailed build or test output from cached results - Progressive disclosure for logs.

    Provides on-demand access to full build and test logs that were cached during xcodebuild-build or xcodebuild-test execution. Implements progressive disclosure pattern: initial build/test responses return concise summaries to prevent token overflow, while this tool allows drilling down into full logs, filtered errors, warnings, or metadata when needed for debugging.

    Advantages

    • Access full build logs without cluttering initial responses • Filter to just errors or warnings for faster debugging • Retrieve exact command executed and exit code • Inspect build metadata and cache information

    Parameters

    Required

    • buildId (string): Cache ID from xcodebuild-build or xcodebuild-test response
    • detailType (string): Type of details to retrieve
      • "full-log": Complete stdout and stderr output
      • "errors-only": Lines containing errors or build failures
  • simctl-list

    simctl-list

    List iOS simulators with intelligent progressive disclosure and caching.

    Overview

    Retrieves comprehensive simulator information including devices, runtimes, and device types. Returns concise summaries by default with cache IDs for progressive access to full details, preventing token overflow while maintaining complete functionality. Shows booted devices and recently used simulators first for faster workflows. Full output mode limits results to the most recently used devices for efficient browsing.

    Parameters

    Required

    None - all parameters are optional

    Optional

    • deviceType (string): Filter by device type (e.g., "iPhone", "iPad")
    • runtime (string): Filter by iOS runtime version (e.g., "17", "iOS 17.0")
    • availability (string, default: "available"): Filter by availability ("available", "unavailable", "all")
    • outputFormat (string, default: "json"): Output format ("json" or "text")
    • concise (boolean, default: true): Return concise su
  • cache

    cache

    Unified cache management - get statistics, get configuration, set configuration, clear cache.

    Overview

    Single tool for cache management. Routes to specialized handlers while maintaining clean operation semantics.

    Operations

    get-stats

    Get cache statistics and metrics.

    Example:

    await cacheTool({ operation: 'get-stats' })
    

    Returns: Cache statistics including size, hit rates, and usage metrics.


    get-config

    Get cache configuration for specific cache type.

    Parameters:

    • cacheType (string, optional): Cache type - 'simulator', 'project', 'response', or 'all'

    Example:

    await cacheTool({
      operation: 'get-config',
      cacheType: 'simulator'
    })
    

    Returns: Current configuration including max age settings.


    set-config

    Set cache configuration.

    Parameters:

    • cacheType (string): Cache type - 'simulator', 'project', 'response', or 'all'
    • maxAgeMs (number, optional): Maximum age in milliseconds
  • persistence

    persistence

    Unified cache persistence management - enable, disable, check status.

    Overview

    Single tool for persistence configuration. Routes to specialized handlers while maintaining clean operation semantics.

    Operations

    enable

    Enable cache persistence to disk.

    Parameters:

    • cacheDir (string, optional): Custom cache directory path

    Example:

    await persistenceTool({
      operation: 'enable',
      cacheDir: '/path/to/cache'
    })
    

    Notes: Persists cache data across sessions. Useful for long-running projects or CI environments.


    disable

    Disable cache persistence.

    Parameters:

    • clearData (boolean, optional): Clear existing persistent data on disable

    Example:

    await persistenceTool({
      operation: 'disable',
      clearData: true
    })
    

    status

    Check persistence status.

    Parameters:

    • includeStorageInfo (boolean, optional): Include storage usage details

    Example:

    await persistenceTool({
     
    
  • rtfm

    rtfm

    📖 Read The Manual - Progressive disclosure documentation system for all XC-MCP tools.

    Overview

    The rtfm tool provides access to comprehensive documentation for any of the 28 consolidated tools in this MCP server (v2.0+). This implements progressive disclosure: tool descriptions in the main list include full documentation (~18.7k tokens total for optimal agent understanding), while rtfm provides additional context and examples on demand.

    Version History:

    • v1.x: 51 individual tools (~3,000-7,850 tokens depending on approach)
    • v2.0+: 28 consolidated tools (~18.7k tokens) - Comprehensive docs for optimal reasoning

    Why rtfm?

    Problem Solved: Tool documentation was originally stored in .md files within the src/ directory, which wouldn't be available in the published npm package (only dist/ is included in package.json "files" field).

    Solution: Documentation is now embedded as TypeScript constants in each tool file, bundled into the compiled JavaScript, an

  • simctl-get-details

    simctl-get-details

    🔍 Get detailed simulator information from cached list results - Progressive disclosure for devices.

    Retrieves on-demand access to full simulator and runtime lists that were cached during simctl-list execution. Implements progressive disclosure pattern: initial simctl-list responses return concise summaries to prevent token overflow, while this tool allows drilling down into full device lists, filtered by device type or runtime when needed.

    Advantages

    • Access full device lists without cluttering initial responses • Filter to specific device types (iPhone, iPad, etc.) • Filter to specific runtime versions • Get only available (booted) devices or all devices • Paginate results to manage token consumption

    Parameters

    Required

    • cacheId (string): Cache ID from simctl-list response

    Optional

    • detailType (string): Type of details to retrieve
      • "full-list": Complete device and runtime information
      • "devices-only": Just device information
      • "
  • simctl-device

    simctl-device

    Unified iOS simulator device management - boot, shutdown, create, delete, erase, clone, rename.

    Overview

    Single tool for all simulator device lifecycle operations. Routes to specialized handlers while maintaining clean operation semantics.

    Complete JSON Examples

    Boot a Simulator

    {"operation": "boot", "deviceId": "ABCD1234-5678-90EF-GHIJ-KLMNOPQRSTUV", "waitForBoot": true, "openGui": true}
    

    Shutdown Running Simulator

    {"operation": "shutdown", "deviceId": "booted"}
    

    Create New Simulator

    {"operation": "create", "name": "Test iPhone 16", "deviceType": "iPhone 16 Pro", "runtime": "iOS-18-0"}
    

    Delete Simulator

    {"operation": "delete", "deviceId": "ABCD1234-5678-90EF-GHIJ-KLMNOPQRSTUV"}
    

    Factory Reset (Erase)

    {"operation": "erase", "deviceId": "simulator-udid", "force": true}
    

    Clone Simulator

    {"operation": "clone", "deviceId": "source-udid", "newName": "Snapshot Before Tests"}
    
  • simctl-health-check

    simctl-health-check

    Comprehensive iOS simulator environment health check.

    Overview

    Performs a complete diagnostic check of your iOS development environment, validating Xcode tools, simulators, runtimes, and disk space. Returns actionable recommendations for any issues found. Checks 6 critical areas in seconds: Xcode Command Line Tools, simctl availability, available simulators, booted simulators, available runtimes, and disk space.

    Parameters

    None - performs complete environment check automatically.

    Returns

    Health report with pass/fail status for each check, specific guidance for failures, summary of passed/failed checks, and overall healthy status indicator.

    Examples

    Run complete health check

    await simctlHealthCheckTool();
    

    Check before CI/CD pipeline

    // Validate environment before running test suite
    const health = await simctlHealthCheckTool();
    if (!health.healthy) {
      console.error('Environment issues detected');
    }
    
  • simctl-app

    simctl-app

    Unified iOS app lifecycle management - install, uninstall, launch, terminate.

    Overview

    Single tool for app management on simulators. Routes to specialized handlers while maintaining clean operation semantics.

    Operations

    install

    Install iOS app to simulator.

    Parameters:

    • udid (string): Simulator UDID (from simctl-list)
    • appPath (string): Path to .app bundle

    Example:

    await simctlAppTool({
      operation: 'install',
      udid: 'ABC-123-DEF',
      appPath: '/path/to/MyApp.app'
    })
    

    uninstall

    Uninstall iOS app from simulator.

    Parameters:

    • udid (string): Simulator UDID
    • bundleId (string): App bundle ID (e.g., com.example.MyApp)

    Example:

    await simctlAppTool({
      operation: 'uninstall',
      udid: 'ABC-123-DEF',
      bundleId: 'com.example.MyApp'
    })
    

    launch

    Launch iOS app on simulator.

    Parameters:

    • udid (string): Simulator UDID
    • bundleId (string): App bundle ID
    • arguments (string[]
  • simctl-get-app-container

    simctl-get-app-container

    Access iOS app file system containers for inspection and debugging.

    What it does

    Retrieves the file system path to an app's container directories on a simulator, enabling direct access to app bundle, data directories, and shared group containers for debugging and testing.

    Why you'd use it

    • Debug data access: Inspect app Documents and Library folders
    • File inspection: View database files, preferences, and cached data
    • Testing validation: Confirm app writes data to correct locations
    • Container types: Access bundle (app binary), data (Documents/Library), and group (shared) containers

    Parameters

    • udid (string, required): Simulator UDID (from simctl-list)
    • bundleId (string, required): App bundle ID (e.g., com.example.MyApp)
    • containerType (string, optional): Container type - bundle, data, or group (default: data)

    Container Types

    • bundle: App binary and resources (read-only)
    • data: App's Documents an
  • simctl-openurl

    simctl-openurl

    Open URLs in a simulator, including web URLs, deep links, and special URL schemes.

    What it does

    Opens a URL in the simulator, which can be a web URL (http/https), custom app deep link (myapp://), or special URL scheme (mailto:, tel:, sms:). The system will route the URL to the appropriate app handler.

    Parameters

    • udid (string, required): Simulator UDID (from simctl-list)
    • url (string, required): URL to open (e.g., https://example.com or myapp://deeplink?id=123)

    Supported URL Schemes

    • HTTP/HTTPS: Web URLs (opens in Safari)
    • Custom schemes: Deep links to your app (myapp://, yourapp://)
    • mailto: Email composition (opens Mail app)
    • tel: Phone dialer (opens Phone app on iPhone)
    • sms: SMS composition (opens Messages app)
    • facetime: FaceTime calls
    • maps: Apple Maps URLs

    Returns

    JSON response with:

    • URL open status
    • Detected URL scheme
    • Guidance for testing URL handling and deep links

    Examples

    Open w

  • simctl-io

    simctl-io

    Capture screenshots or record videos from iOS simulators with automatic optimization.

    What it does

    Captures simulator screen as optimized PNG images or records video with configurable codecs. Screenshots are automatically resized to tile-aligned dimensions for token efficiency and support semantic naming for AI agent reasoning.

    Parameters

    • udid (string, optional): Simulator UDID (auto-detects booted device if omitted)
    • operation (string, required): "screenshot" or "video"
    • outputPath (string, optional): Custom file path (auto-generated if omitted)
    • codec (string, optional): Video codec - h264, hevc, or prores (default: h264)
    • size (string, optional): Screenshot size - half, full, quarter, thumb (default: half)
    • appName (string, optional): App name for semantic naming
    • screenName (string, optional): Screen/view name for semantic naming
    • state (string, optional): UI state for semantic naming

    Screenshot Size Optimization

  • simctl-push

    simctl-push

    Send simulated push notifications to apps on simulators with test context tracking.

    What it does

    Sends push notifications with custom JSON payloads to apps, simulating remote notifications from APNS. Supports test tracking to verify push delivery and validate app behavior.

    Parameters

    • udid (string, required): Simulator UDID (from simctl-list)
    • bundleId (string, required): App bundle ID (e.g., com.example.MyApp)
    • payload (string, required): JSON payload with APS dictionary
    • testName (string, optional): Test name for tracking
    • expectedBehavior (string, optional): Expected app behavior description

    Payload Format

    Must be valid JSON with an "aps" dictionary:

    {
      "aps": {
        "alert": "Notification text",
        "badge": 1,
        "sound": "default"
      },
      "custom": "Additional data"
    }
    

    LLM Optimization

    The testName and expectedBehavior parameters enable structured test tracking. This allows AI agents to verify push not

  • screenshot

    simctl-screenshot-inline

    Capture optimized screenshots with inline base64 encoding for direct MCP response transmission.

    What it does

    Captures simulator screenshots and returns them as base64-encoded images directly in the MCP response. Automatically optimizes images for token efficiency with tile-aligned resizing and WebP/JPEG compression. Includes interactive element detection and coordinate transforms.

    Parameters

    • udid (string, optional): Simulator UDID (auto-detects booted device if omitted)
    • size (string, optional): Screenshot size - half, full, quarter, thumb (default: half)
    • appName (string, optional): App name for semantic context
    • screenName (string, optional): Screen/view name for semantic context
    • state (string, optional): UI state for semantic context
    • enableCoordinateCaching (boolean, optional): Enable view fingerprinting for coordinate caching

    Screenshot Size Optimization

    Automatically optimizes screenshots for token efficie

  • idb-targets

    idb-targets

    Unified IDB target management - discover, inspect, focus, and manage connections.

    Overview

    Single tool for IDB target discovery and connection management. Routes to specialized handlers while maintaining clean operation semantics.

    Operations

    list

    List all available IDB targets.

    Parameters:

    • state (string, optional): Filter by state - 'Booted' or 'Shutdown'
    • type (string, optional): Filter by type - 'device' or 'simulator'

    Example:

    await idbTargetsToolUnified({
      operation: 'list',
      state: 'Booted'
    })
    

    Returns: List of targets with metadata, state, and type information.


    describe

    Get detailed information about a specific target.

    Parameters:

    • udid (string): Target UDID

    Example:

    await idbTargetsToolUnified({
      operation: 'describe',
      udid: 'ABC-123-DEF'
    })
    

    Returns: Detailed target information including screen dimensions, device model, iOS version.


    focus

    Focus simu

  • idb-ui-tap

    idb-ui-tap

    🎯 Tap at coordinates on iOS screen - core UI automation primitive with screenshot coordinate transformation

    What it does

    Sends precise tap events to iOS targets at specified screen coordinates with automatic coordinate transformation from screenshot space to device space. Supports single tap, double tap, and long press gestures. Validates coordinates against device screen bounds and provides semantic action tracking for test documentation. Works on both simulators and physical devices over USB/WiFi.

    Why you'd use it

    • Automate UI interactions from screenshot analysis - tap elements identified visually
    • Transform screenshot coordinates automatically when screenshots are resized for token efficiency
    • Validate tap coordinates against device bounds before execution to prevent out-of-range errors
    • Track test scenarios with semantic metadata (actionName, expectedOutcome, testScenario, step)

    Parameters

    Required

    • x (number): X coordinate (device co
  • idb-ui-input

    idb-ui-input

    ⌨️ Input text and keyboard commands - automated text entry and special key presses for form automation

    What it does

    Sends text input and keyboard commands to focused elements on iOS targets. Types text strings into active text fields, presses special keys (home, return, delete, arrows), and executes key sequences for complex input workflows. Automatically redacts sensitive data (passwords) in responses and provides semantic field context tracking for test documentation.

    Why you'd use it

    • Automate form filling without manual keyboard interaction - login flows, search, data entry
    • Execute keyboard shortcuts and navigation (tab, return, arrows) for multi-field workflows
    • Safely handle sensitive data with automatic redaction in tool responses and logs
    • Track input operations with semantic metadata (actionName, fieldContext, expectedOutcome)

    Parameters

    Required

    • operation (string): "text" | "key" | "key-sequence"

    Operation-specific parame

  • idb-ui-gesture

    idb-ui-gesture

    👆 Perform gestures and hardware button presses - swipes, scrolls, and device controls for navigation

    What it does

    Executes swipe gestures (directional or custom paths) and hardware button presses on iOS targets. Supports standard swipe directions (up, down, left, right) with automatic screen-relative path calculation using configurable profiles (flick, swipe, drag), custom swipe paths with precise start/end coordinates, and hardware button simulation (HOME, LOCK, SIRI, SCREENSHOT, APP_SWITCH). Automatically validates velocity to ensure iOS recognizes gestures as swipes (>6000 px/sec). Validates coordinates against device bounds and provides semantic action tracking.

    Why you'd use it

    • Automate scroll and navigation gestures - swipe to reveal content, dismiss modals, page through carousels
    • Use optimized swipe profiles for different UIs - flick for fast page changes, swipe for standard scrolling, drag for slow interactions
    • Test hardware button interac
  • idb-ui-describe

    idb-ui-describe

    🔍 Query UI accessibility tree - discover tappable elements and text fields for precise automation

    What it does

    Queries iOS accessibility tree to discover UI elements, their properties (type, label, enabled state), coordinates (frame, centerX, centerY), and accessibility identifiers. Returns full tree with progressive disclosure (summary + cache ID for full data), element-at-point queries for tap validation, and data quality assessment (rich/moderate/minimal) to guide automation strategy. Automatically parses NDJSON output to extract all elements (not just first), includes AXFrame coordinate parsing for precise tapping, and caches large outputs to prevent token overflow.

    Progressive Filtering: Supports 4 filter levels for element discovery - start conservative with moderate filtering (default), escalate to permissive/none if minimal data found.

    iOS Compatibility: Recognizes iOS-specific accessibility fields (role, role_description, AXLabel, AXFrame

  • idb-ui-find-element

    idb-ui-find-element

    Find UI elements by semantic search in accessibility tree - no screenshots needed.

    Overview

    Queries the accessibility tree and searches for elements matching a label or identifier. Returns matching elements with tap-ready coordinates (centerX, centerY), enabling agents to find specific UI controls without visual analysis. Fast semantic search replaces screenshot-based visual scanning for complex UIs.

    Parameters

    Required

    • query (string): Search term to match against element labels or identifiers

    Optional

    • udid (string): Target identifier - auto-detects if omitted

    Returns

    Array of matching elements with:

    • Type, label, identifier
    • Tap-ready coordinates (centerX, centerY)
    • Full frame boundaries (x, y, width, height)

    Returns empty array if no matches found.

    Examples

    Find login button

    const result = await idbUiFindElementTool({
      query: 'login'
    });
    

    Find email field on specific device

    co
    
  • accessibility-quality-check

    accessibility-quality-check

    Quick assessment of accessibility tree richness - decide whether to use accessibility or screenshots.

    Overview

    Rapidly queries the accessibility tree and assesses data richness without returning full element details. Returns a quality score and recommendation (accessibility-ready or screenshot-fallback) in ~80ms with minimal token cost. Prevents agents from wasting tokens on expensive screenshots when accessibility data is sufficient.

    Parameters

    Optional

    • udid (string): Target identifier - auto-detects if omitted
    • screenContext (string): Screen name for semantic tracking (e.g., "LoginScreen")

    Returns

    • quality: "rich" | "moderate" | "minimal"
    • recommendation: "accessibility-ready" | "consider-screenshot"
    • elementCounts: Total elements, tappable elements, text fields, element types
    • queryTime: Query execution time in milliseconds
    • queryGuidance: Next steps based on quality assessment

    Examples

    Qu

  • idb-list-apps

    idb-list-apps

    List installed applications - discover apps available for testing with bundle IDs and running status.

    Overview

    Enumerates all installed applications on iOS targets with structured metadata including bundle ID, app name, install type (system/user/internal), running status, debuggability, and architecture. Filters apps by install type or running status to focus on user apps or active processes. Parses IDB's pipe-separated output into structured JSON for easy programmatic access.

    Parameters

    Required

    None - all parameters are optional

    Optional

    • udid (string): Target identifier - auto-detects if omitted
    • filterType (string): Filter by install type ("system", "user", or "internal")
    • runningOnly (boolean): Show only currently running apps

    Returns

    Structured app list with summary counts (total, running, debuggable, by install type), separate arrays for running vs. installed apps, applied filter details, and actionable guidance for launchi

  • idb-app

    idb-app

    Unified IDB app lifecycle management - install, uninstall, launch, terminate.

    Overview

    Single tool for IDB-based app management. Routes to specialized handlers while maintaining clean operation semantics.

    Operations

    install

    Install iOS app via IDB.

    Parameters:

    • appPath (string): Path to .app bundle
    • udid (string, optional): Target device UDID

    Example:

    await idbAppTool({
      operation: 'install',
      appPath: '/path/to/MyApp.app'
    })
    

    uninstall

    Uninstall iOS app via IDB.

    Parameters:

    • bundleId (string): App bundle ID
    • udid (string, optional): Target device UDID

    Example:

    await idbAppTool({
      operation: 'uninstall',
      bundleId: 'com.example.MyApp'
    })
    

    launch

    Launch iOS app via IDB.

    Parameters:

    • bundleId (string): App bundle ID
    • udid (string, optional): Target device UDID
    • arguments (string[], optional): Command-line arguments
    • environment (object, optional): Environ
  • workflow-tap-element

    workflow-tap-element

    High-level semantic UI interaction - find and tap elements by name without coordinate hunting.

    Overview

    Orchestrates accessibility-first UI automation in a single call:

    1. Check Accessibility - Assess UI richness for automation approach
    2. Find Element - Semantic search by label/identifier
    3. Tap Element - Execute tap at discovered coordinates
    4. Input Text (optional) - Type into tapped field
    5. Verify Result (optional) - Screenshot for confirmation

    This workflow keeps intermediate results internal, reducing agent context usage by ~80% compared to calling each tool manually.

    Parameters

    Required

    • elementQuery (string): Search term for element (e.g., "Login", "Submit", "Email")
      • Case-insensitive partial matching ("log" matches "Login")

    Optional

    • inputText (string): Text to type after tapping (for text fields)
    • verifyResult (boolean): Take screenshot after action (default: false)
    • udid (string): Target
  • workflow-fresh-install

    workflow-fresh-install

    Clean slate app installation - build, install, and launch with fresh simulator state.

    Overview

    Orchestrates a complete clean installation cycle in a single call:

    1. Select Simulator - Auto-detect or use specified device
    2. Shutdown - Ensure simulator is stopped
    3. Erase (optional) - Wipe all simulator data
    4. Boot - Start fresh simulator
    5. Build - Compile the Xcode project
    6. Install - Install the built app
    7. Launch - Start the app

    This workflow keeps intermediate results internal, reducing agent context usage by ~70% compared to calling each tool manually.

    Parameters

    Required

    • projectPath (string): Path to .xcodeproj or .xcworkspace
    • scheme (string): Build scheme name

    Optional

    • simulatorUdid (string): Target simulator - auto-detected if omitted
    • eraseSimulator (boolean): Wipe simulator data before install (default: false)
    • configuration ("Debug" | "Release"): Build configuration (defau

Use o MCP de XC-MCP com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar XC-MCP, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione XC-MCP como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de XC-MCP.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "xc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xc-mcp"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de XC-MCP, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de XC-MCP.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar XC-MCP para me ajudar nesta tarefa?
XC-MCP
Claro. Já li.
Veja o que encontrei usando XC-MCP.

Perguntas frequentes

Para que serve o servidor MCP XC-MCP?

XC-MCP é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP XC-MCP com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar XC-MCP com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP XC-MCP com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com XC-MCP conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP XC-MCP ao TypingMind?

XC-MCP funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP XC-MCP oferece no TypingMind?

XC-MCP disponibiliza 30 ferramentas MCP que podem ser ativadas na página Plugins do TypingMind e usadas no chat ou atribuídas a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP XC-MCP?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se XC-MCP exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

debug-workflow

Complete iOS debug workflow: build → install → test cycle with validation to prevent testing stale app versions

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇