Ios Agent Skill

io.github.Nagarjuna2997由 GitHub 帳號 Nagarjuna2997 發布v2.6.0更新於 Oct 24, 2026

Swift reviews, local Apple references, app scaffolding and iOS simulator workflows.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,為編碼助理提供 Swift 程式碼審查、本機 Apple 參考資料、App 腳手架,以及 iOS 模擬器建置、執行與截圖工具。

可以做什麼
  • 依一句描述規劃、產生並建置 iOS App,接著在模擬器中執行並截圖
  • 產生附實作說明的 Swift 起始專案,可選擇產生 XcodeGen 設定
  • 檢索本機 Swift 原始碼與 Apple 參考資料,並審查並行、架構、SwiftUI、可用性、安全與效能問題
  • 產生設計素材與語意色盤,檢查啟動畫面與後端整合
  • 在模擬器上建置、測試、安裝、啟動並截圖,準備本機發佈草稿
  • 工具發生錯誤時準備本機問題回報
適用情境
在 Mac 上需要助理建立、審查或驗證 iOS/SwiftUI 專案時適用,也適合把一句話的 App 想法變成已建置並截圖的模擬器 App。搭配 Xcode 做定位到檔案的 Swift 審查與本機 Apple 文件查詢也很方便。
執行需求
透過 npm 套件 ios-agent-mcp 以 stdio 在本機執行,需要 Node.js 20 以上。本機 iOS 建置需要 macOS、Xcode 16 或更新版本及模擬器;XcodeGen 為選用。遠端建置通道需要目標儲存庫與 GitHub CLI 驗證。實機執行、TestFlight 與發佈需要 Apple Developer Program 會員資格。
安裝前請注意
建置代理會把 Swift 原始碼與 Xcode 專案寫入你的專案,並可執行建置與模擬器啟動。需要外部服務的功能會在清單中宣告用戶端金鑰,金鑰放在被 git 忽略的 .env 檔案並經產生的 xcconfig 傳入 App;伺服器密鑰不會放進 App。部分功能涉及付款與服務商帳號,PLAN.md 列出其成本模型。靜態審查是啟發式規則而非編譯器診斷,多個模組及一句話端到端流程尚未驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ios Agent Skill,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

iOS Agent Skill

Give your coding agent the Apple references, Swift source and local tools it needs to build and review an iOS app.

[iOS Agent Skill website preview]

Watch the website walkthrough · Explore the website

Describe an app in one sentence and the /ios-build agent plans it, writes the SwiftUI code and Xcode project, then builds and runs it in the simulator (what has been verified, example apps on the website). For an existing project, the same package gives your coding agent reviews, local Apple references and simulator tools to check its work.

[Tests] [Docs] [npm total downloads]

Explore the website · Client setup guides · npm · Release notes

Build an app from one sentence

/ios-build "<what you want>" asks Claude Code to plan an iOS app, write its SwiftUI code and Xcode project, apply capability modules (sign-in, storage, payments, maps and more), then build, run and screenshot it in the iOS Simulator, ending with a report of what needs your accounts or money. Published tools are in ios-agent-mcp 2.10.2 (npm verified October 15, 2026), including plan-driven design tokens, sample data, palette-aligned assets, light/dark/XXL screenshot evidence, deployment-target checks and App Store readiness reports. Four existing apps built and ran on Xcode 27.0; see examples/agent for refreshed evidence.

Quickstart

Install the published server and Claude Code command:

bash
claude mcp add ios-agent -- npx -y ios-agent-mcp@latestnpx -y ios-agent-mcp@latest install-command --global

Then, in any Claude Code session on a Mac with Xcode 16 or later:

text
/ios-build "A habit tracker with a list, a detail screen, and settings with dark mode toggle"

Shipping (unreleased GitHub source): ios-agent-mcp ship prepares screenshot sets and metadata, then offers separately approved signing/archive and TestFlight upload steps. Setup and limitations. Live signed distribution is not yet verified; npm is unchanged.

Windows/Linux or cloud client: the GitHub source now includes build --remote for unsigned builds and simulator screenshots on GitHub Actions. It requires a destination repository, GitHub CLI authentication and pinned toolkit/Xcode versions. See remote macOS setup and billing. npm publication is deferred.

XcodeGen is optional: without it, the agent writes a folder-synchronized Xcode project itself. The steps are described in docs/tooling/ios-build-agent.md. The four screenshot examples reused existing app folders; this exact one-sentence quickstart has not yet been run from planning through code generation in one Mac session.

Examples

Plans, generated sources, run reports and what was and was not exercised: examples/agent.

Capabilities

Every capability is a folder in capabilities/ with a manifest, recipe, Swift template, apply hook and verify hook. The catalog lists the wider landscape for planning and cost estimates. The counts below are generated from the manifests.

StatusCapabilities
Verified on a Mac7
Module exists, not yet verified on a Mac41
...of which the Swift compiled on a Mac (combined compile check)41
Blocked0
Listed for planning only114

162 catalog entries in 31 categories; generated from capabilities/CATALOG.md.

Needs your accounts

The agent builds and runs everything in the simulator without accounts. Capabilities that need a service declare the keys in their manifest. Client keys, such as a publishable key, go in the project's gitignored .env file and reach the app through a generated xcconfig. Until they are set, the keys are REPLACE_ME placeholders, so the app still builds and shows a configuration message. Server secrets are never put in the app. PLAN.md lists what each run needs and the cost model of each service. Running on a device, using TestFlight or publishing needs your Apple Developer Program membership.

Not yet

  • The design-system, firebase-auth, firebase-firestore, google-sign-in, stripe-payments, rive-animation and webview-animation capabilities have passed isolated Mac compile verification. Provider accounts and runtime transactions remain unverified; a combined compile check is not a substitute for each module's verify run (see the compile check).
  • The agent's build, simulator launch and per-screen capture stages ran on Mac for these four existing examples. The original planning and code-generation sessions were separate, and a fresh one-sentence generation has not yet been run end to end on Mac.
  • Taps and scrolling during the agent's own screenshots, and device builds, are not done. In the food-delivery example the StoreKit purchase and the Live Activity were not exercised.

Which workflow to use

You want toUseNotes
Build a new app from a description/ios-build "<description>" in Claude Code, or ios-agent-mcp buildPlans, writes, builds, runs and screenshots; see above. Available in npm 2.10.2 and GitHub main.
Make an existing project pass your own acceptance testsios-agent-mcp loopRuns the checks you write and asks Claude to repair failures; see the app-building loop and the Reading List demo.
Get an editable starter onlyios-agent-mcp new MyAppA starting point with a brief, not a finished app.
Review or extend code you already haveThe MCP tools belowFile-located reviews, local references, assets and simulator checks.

Start with one connection

For Claude Code:

sh
claude mcp add ios-agent -- npx -y ios-agent-mcp@latest

Set up ChatGPT/Codex, Gemini CLI or Muse. One npm package includes reviews, local references, app scaffolding and simulator tools. Node.js 20+ is required; local iOS builds need macOS and Xcode; the GitHub-source remote lane runs those steps on Actions.

Then ask:

Build a SwiftUI reading list with local persistence, search and accessible empty/error states. Reuse the local source library. Build it, run the tests and capture simulator evidence. Explain any checks that fail.

For an existing app, provide its absolute project path and ask for a focused review before making changes.

What it helps you do

FeatureWhat you get
Build an app from a sentenceThe ios-build agent plans screens, data and capabilities, writes SwiftUI and the Xcode project, then builds, runs and screenshots the app in the simulator. Available in ios-agent-mcp 2.10.0.
Start an appAn editable Swift starter, implementation brief and optional XcodeGen specification.
Reuse Apple knowledgeSearch local Swift source and guides in bounded sections, plus a dated directory of Apple technologies and release notes.
Review Swift codeFile-located findings for concurrency, architecture, SwiftUI, availability, security, performance and App Intents.
Generate design assetsNamed light/dark/high-contrast colors and an opaque 1024px app icon rendered locally from editable SVG layers.
Review app color systemsGenerate semantic palettes and inspect light, dark and high-contrast color evidence.
Review backend integrationIdentify supported services and review credential, auth, policy and networking evidence locally.
Verify on a simulatorBuild, test, install, launch and capture screenshots through Xcode.
Review launch screensConservative target-aware checks for launch configuration, storyboards and asset references.
Prepare a local release draftInspect selected-target facts, unresolved questions and hashed, resumable local packages without connecting to Apple.
App Store Screenshot Studio (GitHub source)Turn captures into localized screenshot sets with reusable layouts, neutral frames, a preview gallery and validated PNG exports.
Apple system integrations (GitHub source)Preview and review Calendar, Reminders, Contacts, Photos, Camera, Maps, Files, Sharing, Shortcuts and Notifications with permission and capability evidence.

Asset generation · Review tools · Simulator setup · Apple release status

Create a starter directly:

sh
npx -y ios-agent-mcp@latest new MyApp --brief "A reading list with local storage" --xcodegen

The starter is not a finished app: --xcodegen writes a project.yml that XcodeGen turns into a project. For a complete app from a description, use /ios-build. Generated app ownership and branding belong to the user.

See the evidence

The Reading List demo has persistence, search, simulator acceptance tests and captured screens. The four apps the /ios-build agent planned and wrote, with their plans, run reports and simulator screenshots, are in examples/agent.

[Reading List running in the simulator]

The published npm 2.10.2 package includes the build-agent tools, deployment-target checks and App Store readiness reports. They include seven Apple system integration tools and nine Screenshot Studio tools. Static reviews are heuristics, not compiler diagnostics. The Apple directory is a reference map, not Apple's proprietary framework source or proof of 405 working integrations. Token savings have not been benchmarked. Build-loop verification limits.

Why use this alongside Xcode?

Xcode already ships agent expertise and build/test tools. Use those when they meet your needs. This repository adds shared guidance across these four client families, inspectable review rules, local source retrieval and repeatable asset workflows. It has not been established that it makes an AI outperform Xcode's skills or use fewer tokens.

Where the guidance comes from, evidence and unfinished work. The paired benchmark harness contains 20 Swift microtasks; results are not published, and it does not yet measure complete app builds.

Help improve the tools

Failure feedback belongs in your coding session: the observed error, the proposed fix and actual verification results. The source server adds troubleshooting guidance to returned tool errors; agent instructions also cover compiler/test failures. These messages do not appear in the app you are building.

prepare_issue_report lets your AI prepare a local report when an iOS Agent tool fails. It accepts fixed categories only, shows a preview and a duplicate-search link, and leaves public submission to you. No app source or logs are collected. Reporting workflow.

Included as an experimental tool in 2.7.1: optional private_feedback keeps approval in the AI chat and sends fixed categories to a private inbox through a configured HTTPS receiver. Hosting is not configured, so private submission is not live. It never silently submits or falls back to public issues.

Four client families, one project

ClientSetup and evidence
ClaudeLocal MCP and source skill; your Claude client supplies the coding agent.
ChatGPT / CodexCodex local MCP; ChatGPT skills package or a separately configured HTTPS/private-tunnel MCP connection. Availability depends on account/workspace policy.
Gemini CLIExtension configuration and local MCP connection verified.
Grok BuildLocal MCP setup using the existing server. Grok web/API connections are separate.
Muse CodeSkill discovery, MCP discovery (the 36-tool 2.7.0 server) and a Stop hook verified; model sessions and observer behavior remain unverified.

Optional companion: an AI/ML API connector can run beside the local server for icon and asset concepts on the user's own account. It is not bundled, called or verified by this project.

The project focuses on these five families. For another client, open a client-support request or add a 👍 to an existing request. Votes inform priorities alongside feasibility and testing; they do not guarantee delivery. Existing experimental adapters are not actively maintained.

install.sh is optional: it installs source guidance for a chosen local client, not the MCP server or a browser plugin. Run bash install.sh --help after cloning. Most users should use the client setup guide above.

Reference coverage

Apple catalog tracked: 99 technologies. Covered: 99. Planned: 0. Skipped: 0. Deprecated: 0. Coverage: 100.0%.

Source of truth: frameworks.json. Human index: docs/apple-framework-index.md.

Coverage counts describe documentation, not compiled integrations. Download counts refresh daily and are not unique users.

Contributing · Development · Security · Roadmap · MIT license

Backend integration guidance: choose a service and review auth, data and security boundaries.

Optional provider commands

Use ios-agent-mcp environment to inspect the actual Xcode/SDK/simulator inventory. ios-agent-mcp ai models and ai doctor inspect the dated catalog and account/local availability. Text generation defaults to on-device Apple models; cloud providers and fallback require explicit configuration. Provider setup, handoff, simulator CLI and limits. These commands do not replace the coding client or claim autonomous app completion.

Local Apple documentation

Install the archive in Xcode → Settings → Components → Developer Documentation. Read it through Window → Developer Documentation (Shift–Command–0 with standard key bindings). This integration uses xcrun mcpbridge; the archive stays managed by Xcode.

Use xcode-mcp tools for discovered Xcode schemas and doctor xcode for setup diagnostics.

Use ios-agent-mcp docs status and ios-agent-mcp docs symbol SwiftUI.NavigationStack for version-aware documentation grounding. The adapter prefers Xcode MCP DocumentationSearch, then bounded SDK evidence. Apple’s archive is never bundled. Bridge authorization is required; retrieval is not automatic code validation. Setup, tools and limitations.

Experimental native source import

The feature-branch App IR prototype imports a bounded local HTML screen into a validated, source-mapped representation and generates native SwiftUI. It reuses the existing Xcode and simulator tooling. Unsupported markup is reported and blocks generation. This is not universal framework conversion and is not included in npm 2.10.2. See the architecture and roadmap and real native prototype evidence.

Experimental native conversion work, including the static React subset and saved-evidence review, is documented in the Universal App Engine architecture. These prototypes do not establish general React/Next.js compatibility or accepted visual fidelity.

來源:README.md,提交 ccd4be8

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.6.0最新Sep 17, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分