Skip to main content
Glama
xcode-cloud-mcp

xcode-cloud-mcp

by thatfactory

xcode-cloud-mcp

Minimaler MCP-Server zum Entdecken von Xcode-Cloud-Produkten, zum Inspizieren und Bearbeiten von Workflows, zum Überwachen von Build-Läufen und zum Abrufen von Build-Problemen, Logs, Testzusammenfassungen und UI-Test-Artefakten über die App Store Connect API.

Funktionen

Funktion

Tool(s)

Beispielverwendung

Beispielrückgabe

Produkte entdecken

list_products

„Zeig mir die Xcode-Cloud-Produkte, die in diesem Konto verfügbar sind.“

Demo App, productType: APP, createdDate: 2026-03-30T10:00:00Z

Workflows entdecken

list_workflows

„Liste die Workflows für Produkt def456 auf.“

Feature Branch, description, isEnabled: true, containerFilePath: Chauffeur.xcodeproj

Workflow-Konfiguration anzeigen

get_workflow_details

„Zeig mir die vollständigen Workflow-Details für abc123, einschließlich Umgebung und Aktionen.“

general, environment, startConditions, actions, postActions

Laufende oder aktuelle Builds überwachen

list_build_runs

„Zeig mir die laufenden Builds für Workflow abc123, damit ich sie überwachen kann.“

number: 93, executionProgress: RUNNING, completionStatus: null, startedDate: ...

Workflow aktivieren oder deaktivieren

set_workflow_enabled

„Deaktiviere Workflow abc123, während wir neue Einstellungen testen.“

operation.type: set_workflow_enabled, workflow.general.isEnabled: false

Name, Beschreibung oder Clean-Modus aktualisieren

update_workflow_general

„Benenne Workflow abc123 in Feature Branch v2 um und passe seine Beschreibung an.“

changedFields: [name, description], aktualisiertes workflow.general

Startbedingungen explizit aktualisieren

update_workflow_start_conditions

„Ändere Workflow abc123, sodass Pull-Request-Builds nicht mehr automatisch abgebrochen werden.“

aktualisiertes workflow.startConditions.pullRequest.autoCancel: false

Workflow-Aktionsliste ersetzen

update_workflow_actions

„Entferne die Archiv-Aktion aus Workflow abc123 und füge sie wieder hinzu, sobald das Experiment abgeschlossen ist.“

actionCount: 4 nach dem Entfernen, dann actionCount: 5 nach dem Wiederherstellen

Build-Status schnell einsehen

get_build_issues

„Was ist beim letzten fehlgeschlagenen Build für Workflow abc123 schiefgelaufen?“

issueCounts: { errors: 1, testFailures: 3, warnings: 2 }

Kompakte Build-Log-Zusammenfassungen lesen

get_build_logs

„Rufe Logs von Build 81 ab und fasse den Fehler zusammen.“

failedTests, highlights, excerpt, savedLogsDirectory

Logs für lokales grep materialisieren

materialize_build_logs

„Lade die Logs für Build 81 herunter, damit ich sie lokal durchsuchen kann.“

savedLogsDirectory: /var/folders/..., savedLogs: [...]

Testergebnisse zusammenfassen

get_test_results

„Fasse die Testergebnisse für den letzten fehlgeschlagenen Build zusammen.“

testFailures, issueCounts, summary

Direkt zu fehlgeschlagenen Tests springen

get_failed_tests

„Welche Tests sind in Build 81 fehlgeschlagen?“

displayExpiryDateReturnsFormattedDateWhenExpiryDateExists(), Assertion-Meldung, gespeicherte Log-Pfade

UI-Test-Artefakte abrufen

get_test_artifacts

„Zeig mir die Screenshots und Videos des letzten fehlgeschlagenen UI-Testlaufs.“

screenshots, videos, resultBundles, downloadUrl

Lokale temporäre Dateien bereinigen

cleanup_saved_logs

„Entferne gespeicherte Logs, die älter als 24 Stunden sind.“

removedDirectories: [...], retainedDirectories: [...]

Die Build-Suche ist workflowbezogen. Abruf-Tools akzeptieren eine direkte buildRunId, oder eine workflowId plus buildNumber, oder eine workflowId plus buildSelector: "latest" | "latestFailing".

list_products und list_workflows paginieren automatisch durch alle Ergebnisse.

list_build_runs unterstützt status: "all" | "failed" | "succeeded" | "running" | "pending" und ein optionales limit, das standardmäßig 20 beträgt, sodass Agenten aktive Workflows abfragen können, ohne jeden Lauf lokal nachzubearbeiten oder die MCP-Antwortgröße aufzublähen.

Related MCP server: appstore-release-mcp

Anforderungen

  • Node.js 20+

  • App Store Connect API-Anmeldedaten mit Zugriff auf Xcode Cloud

Umgebungsvariablen

Primäre Namen:

  • APPSTORE_CONNECT_API_KEY_ID

  • APPSTORE_CONNECT_API_ISSUER_ID

  • APPSTORE_CONNECT_API_KEY_CONTENT

Kompatibilitäts-Aliase:

  • APP_STORE_KEY_ID

  • APP_STORE_ISSUER_ID

  • APP_STORE_PRIVATE_KEY

Der private Schlüssel kann als wörtlicher mehrzeiliger PEM-Inhalt oder als Zeichenfolge mit maskiertem \n übergeben werden.

Claude-Einrichtung

claude mcp add xcode-cloud \
  --env APPSTORE_CONNECT_API_KEY_ID="$APPSTORE_CONNECT_API_KEY_ID" \
  --env APPSTORE_CONNECT_API_ISSUER_ID="$APPSTORE_CONNECT_API_ISSUER_ID" \
  --env APPSTORE_CONNECT_API_KEY_CONTENT="$APPSTORE_CONNECT_API_KEY_CONTENT" \
  -- npx -y @thatfactory/xcode-cloud-mcp

Codex-Einrichtung

codex mcp add xcode-cloud \
  --env APPSTORE_CONNECT_API_KEY_ID="$APPSTORE_CONNECT_API_KEY_ID" \
  --env APPSTORE_CONNECT_API_ISSUER_ID="$APPSTORE_CONNECT_API_ISSUER_ID" \
  --env APPSTORE_CONNECT_API_KEY_CONTENT="$APPSTORE_CONNECT_API_KEY_CONTENT" \
  -- npx -y @thatfactory/xcode-cloud-mcp

Verfügbare Tools

  • list_products()

  • list_workflows(productId)

  • get_workflow_details(workflowId)

  • list_build_runs(workflowId, limit?, status?)

  • set_workflow_enabled(workflowId, enabled)

  • update_workflow_general(workflowId, name?, description?, clean?)

  • update_workflow_start_conditions(workflowId, branchStartCondition?, manualBranchStartCondition?, pullRequestStartCondition?, manualPullRequestStartCondition?, scheduledStartCondition?, tagStartCondition?, manualTagStartCondition?)

  • update_workflow_actions(workflowId, actions)

  • get_build_issues(buildRunId? workflowId? buildNumber? buildSelector?)

  • get_build_logs(buildRunId? workflowId? buildNumber? buildSelector?, maxCharacters?)

  • materialize_build_logs(buildRunId? workflowId? buildNumber? buildSelector?)

  • get_test_results(buildRunId? workflowId? buildNumber? buildSelector?)

  • get_failed_tests(buildRunId? workflowId? buildNumber? buildSelector?)

  • get_test_artifacts(buildRunId? workflowId? buildNumber? buildSelector?)

  • cleanup_saved_logs(buildRunId?, maxAgeHours?)

Verhalten beim Log-Abruf

get_build_logs hält die MCP-Antwort absichtlich kompakt:

  • Es lädt und extrahiert textähnliche Build-Log-Artefakte in ein temporäres lokales Verzeichnis.

  • Es gibt savedLogsDirectory und savedLogs zurück, damit lokale Agenten die extrahierten Dateien mit rg, grep oder cat untersuchen können.

  • Es gibt eine kompakte failedTests-Zusammenfassung, highlights und einen begrenzten excerpt zurück.

  • Selbst wenn ein Aufrufer ein sehr großes maxCharacters übergibt, wird der Inline-Auszug begrenzt, um übermäßig große MCP-Antworten zu vermeiden.

Empfohlener Agenten-Workflow:

  1. Rufe get_failed_tests oder get_build_logs auf.

  2. Lies savedLogsDirectory.

  3. Verwende rg in diesem Verzeichnis, um den genauen fehlgeschlagenen Test oder die Assertion zu untersuchen.

  4. Falls nötig, rufe cleanup_saved_logs auf, wenn die Untersuchung abgeschlossen ist.

Temporäre Logs werden unter dem System-Temp-Verzeichnis in einem Pfad wie folgt geschrieben:

/tmp/xcode-cloud-mcp/build-logs/<buildRunId>

Auf macOS wird dies normalerweise zu einem Pfad unter /var/folders/.../T/ aufgelöst.

Bereinigungsrichtlinie:

  • Jeder neue Aufruf für dieselbe buildRunId löscht und erstellt zuerst das build-spezifische temporäre Verzeichnis neu.

  • Ältere Build-Verzeichnisse werden automatisch entfernt, wenn sie älter als 24 Stunden sind.

  • Sie können cleanup_saved_logs auch direkt für eine buildRunId oder für alle Verzeichnisse aufrufen, die älter als ein gewähltes Aufbewahrungsfenster sind.

Beispiel-Prompts

Retrieve logs of the latest failing build for workflow abc123.
Retrieve logs of build 81, then inspect the returned savedLogsDirectory and grep for Expectation failed.
Get the failed tests for build 81, then open the saved logs directory and inspect the failing test in context.
Retrieve logs of build number 42 for workflow abc123.
Show me the latest failing UI test artifacts for workflow abc123.
List the workflows for product def456 and then summarize the latest build.
Show me the full workflow details for workflow abc123, including environment, start conditions, actions, and whether it is enabled.
Disable workflow abc123, remove the archive action, then restore the original action list after the experiment.

Verhalten der Workflow-Details

get_workflow_details gibt die Live-Workflow-Konfiguration zurück, die von App Store Connect bereitgestellt wird, gruppiert in:

  • general

  • environment

  • startConditions

  • actions

  • postActions

Hinweise:

  • environment enthält Repository, xcodeVersion und macOsVersion, wenn App Store Connect sie zurückgibt.

  • actions enthält Aktionstyp, Schema, Plattform, Ziel, erforderlichen Bestehensstatus und Testplan-Details, falls vorhanden.

  • postActions wird derzeit als leeres Array mit einem Hinweis zurückgegeben, da die App Store Connect-Workflow-Payload in der beobachteten API-Antwort keine separaten Post-Aktionen enthält.

Verhalten bei Workflow-Aktualisierungen

Die Workflow-Aktualisierungstools sind bewusst explizit:

  • set_workflow_enabled schaltet nur isEnabled um.

  • update_workflow_general ändert nur name, description und clean.

  • update_workflow_start_conditions ändert nur die von dir übergebenen Startbedingungsobjekte.

  • update_workflow_actions ersetzt das gesamte actions-Array, daher sollten Aufrufer zuerst den aktuellen Workflow abrufen und dann die endgültige gewünschte Aktionsliste senden.

Wichtige Einschränkung:

  • Wenn der Workflow in Xcode Cloud Restrict Editing aktiviert hat, können Änderungen fehlschlagen, selbst wenn der App Store Connect-API-Schlüssel über App Manager-Zugriff verfügt.

  • Damit MCP-Änderungen zuverlässig funktionieren, deaktiviere das Kontrollkästchen Restrict Editing für diesen Workflow, bevor du die Schreibwerkzeuge verwendest.

  • Wenn Apple die Anfrage danach weiterhin ablehnt, verwende eine stärkere API-Schlüsselrolle wie Admin.

Lokale Entwicklung

Abhängigkeiten installieren:

npm install

Tests ausführen:

npm test

Paket erstellen:

npm run build

Available Tools

18 tools
cleanup_saved_logsA

Remove saved local log directories either for one build run or for all directories older than a retention window.

Inputs: buildRunId, maxAgeHours.

configure_manual_release_candidateA

Replace all actions with one macOS archive and all start conditions with manual builds from one exact branch. Requires TestFlight Deployment Preparation. Preserves enabled state. Does not configure tester-group post-actions; use Xcode or App Store Connect for those.

Inputs: branch (required), scheme (required), workflowId (required), buildDistributionAudience (required).

get_build_issuesC

Resolve a build and return build identity plus issue counts from Xcode Cloud.

Inputs: buildRunId, workflowId, buildNumber, buildSelector.

get_build_logsC

Resolve a build, download text-like log artifacts, save them under a temporary local directory, and return a compact summary with failed tests, highlights, and saved log paths that local agents can inspect with grep or cat.

Inputs: buildRunId, workflowId, buildNumber, buildSelector, +1 more.

get_build_run_testflight_buildsResolve TestFlight Builds from an Xcode Cloud RunA
Read-onlyIdempotent

Verify an exact run, workflow and App Store Connect app, then look up the externally eligible builds linked to the run. For automatic handoff, supply both the expected canonical branch ref and full source commit SHA. Use build IDs only when the overall status is ready.

Inputs: appId (required), platforms (required), buildRunId (required), workflowId (required), +2 more. Returns: appId, status, buildRun, platforms

get_failed_testsC

Resolve a build, ensure logs are materialized locally, and return only the detected failed tests with their assertion messages when available.

Inputs: buildRunId, workflowId, buildNumber, buildSelector.

get_test_artifactsC

Resolve a build and return metadata plus download URLs for UI test artifacts and result bundles.

Inputs: buildRunId, workflowId, buildNumber, buildSelector.

get_test_resultsC

Resolve a build and return build-level test summary information, saved local log paths, detected failed tests, and result bundle metadata.

Inputs: buildRunId, workflowId, buildNumber, buildSelector.

get_workflow_detailsA

Retrieve detailed Xcode Cloud workflow configuration, including environment, start conditions, actions, and enabled state.

Inputs: workflowId (required).

list_build_runsA
Read-onlyIdempotent

Scan recent build runs for a workflow with source provenance. Optionally filter by outcome and full source commit SHA. The scan reports whether additional runs remain beyond the limit.

Inputs: workflowId (required), limit, status, sourceCommitSha.

list_productsA

List Xcode Cloud products available to the configured App Store Connect account. Automatically paginates through all results.

Inputs: no named parameters.

list_workflowsA

List workflows for a given Xcode Cloud product. Automatically paginates through all results.

Inputs: productId (required).

materialize_build_logsB

Resolve a build, download and extract text-like log artifacts into a local temporary directory, and return saved file paths for grep or cat based investigation.

Inputs: buildRunId, workflowId, buildNumber, buildSelector.

set_workflow_enabledB

Explicitly enable or disable one Xcode Cloud workflow.

Inputs: enabled (required), workflowId (required).

start_buildStart Xcode Cloud BuildA

Start exactly one new Xcode Cloud build through Apple's public App Store Connect API. Each successful invocation creates a new build run, and repeating the same call can create another build. Individual build-run cancellation is not supported by Apple's public API.

Inputs: workflowId (required), clean, buildRunId, pullRequestId, +1 more.

update_workflow_actionsB

Explicitly replace the full workflow actions array. This should be used only when the caller intends to send the final desired action list.

Inputs: actions (required), workflowId (required).

update_workflow_generalC

Explicitly update general workflow fields such as name, description, and clean build behavior.

Inputs: workflowId (required), name, clean, description.

update_workflow_start_conditionsC

Explicitly update workflow start conditions. Pass null to remove a condition.

Inputs: workflowId (required), tagStartCondition, branchStartCondition, manualTagStartCondition, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 18 tools

    Disambiguation3/5

    Several clusters overlap: get_build_logs and materialize_build_logs both download/extract log artifacts, get_test_results and get_failed_tests both return failed-test info (the latter is a subset of the former), and get_test_artifacts covers similar ground. update_workflow_actions vs configure_manual_release_candidate also risk misselection since both rewrite the actions array, though descriptions do add disambiguating detail.

    Naming Consistency4/5

    Names follow a consistent snake_case verb_noun convention (list_products, get_workflow_details, update_workflow_general, set_workflow_enabled, start_build, cleanup_saved_logs). Minor deviations: 'materialize_build_logs' uses an unusual verb and 'get_build_run_testflight_builds' is an awkward multi-noun compound, but the pattern remains readable and predictable.

    Tool Count3/5

    18 tools is on the heavy side for a single-integration CI/CD server, and the granularity is uneven — log retrieval is split across three tools and test inspection across three more. The count is defensible given the breadth of Xcode Cloud resources, but a few tools could be consolidated.

    Completeness3/5

    Read/build/manage coverage is solid (products, workflows, build runs, logs, tests, TestFlight handoff), but lifecycle gaps exist: no create_workflow or delete_workflow, no way to fetch a single build run's full detail generically, and no independent TestFlight version/build listing. Some dead ends are acknowledged (build cancellation unsupported by Apple's API), which mitigates but does not eliminate the gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers