|
|
1 月之前 | |
|---|---|---|
| .. | ||
| .zcode-plugin | 1 月之前 | |
| commands | 1 月之前 | |
| hooks | 1 月之前 | |
| output-styles | 1 月之前 | |
| scripts | 1 月之前 | |
| skills | 1 月之前 | |
| src | 1 月之前 | |
| templates | 1 月之前 | |
| test | 1 月之前 | |
| .mcp.json | 1 月之前 | |
| README.md | 1 月之前 | |
| package.json | 1 月之前 | |
| tsconfig.json | 1 月之前 | |
ZCode plugin for model-driven iOS app development on macOS.
The package root is the plugin root:
zcode --plugin-dir /absolute/path/to/ios-simulator-plugin
When enabled, ZCode loads:
.zcode-plugin/plugin.json for plugin metadata and skill/command paths..mcp.json for the stdio MCP server.skills/ios-dev/SKILL.md for the model workflow.commands/ios-dev.md as a convenience slash command.ZCode bundles this package as the official ios-simulator@zcode-plugins-official
plugin. Enable the plugin to project its skill, slash command, and MCP server
into the session.
At startup ZCode copies the packaged plugin files into
~/.zcode/cli/plugins/cache/zcode-plugins-official/ios-simulator/0.1.0/ and
runs the MCP server from that cache directory. SEA builds rewrite the official
plugin's ZCode manifest to launch the cached MCP server through ZCode's internal
plugin host, so the server uses the embedded Node.js runtime. Third-party
plugins are not rewritten automatically and keep their own declared command.
Example ~/.zcode/cli/config.json entry:
{
"plugins": {
"enabledPlugins": {
"ios-simulator@zcode-plugins-official": true
},
"options": {
"ios-simulator@zcode-plugins-official": {
"default_device": "iPhone 16",
"ui_backend": "auto"
}
}
}
}
The plugin MCP server name is ios-simulator. ZCode normalizes that name for model-visible MCP tools, so the model sees mcp__ios_simulator__<tool>, for example mcp__ios_simulator__ios_preflight. The MCP server still implements the raw MCP tool names such as ios_preflight; ZCode maps between the model-visible name and the server tool name.
Use stdio for the normal local workflow. HTTP is only useful if you later wrap this package as a long-running daemon shared by multiple clients.
xcodebuild for iOS Simulator.simctl.idb backend.ios_preflightios_list_simulatorsios_boot_simulatorios_show_simulatorios_discover_projectios_create_appios_build_appios_build_and_runios_install_appios_launch_appios_terminate_appios_open_urlios_screenshotios_logsios_ui_statusios_ui_tapios_ui_swipeios_ui_type_textios_ui_buttonios_ui_describexcode-select.idb and idb-companion for tap/swipe/type/accessibility UI automation.Run ios_preflight inside a model session to get precise missing setup checks.
pnpm install
pnpm --filter @zcode/ios-simulator-plugin typecheck
pnpm --filter @zcode/ios-simulator-plugin build
The Claude-compatible .mcp.json and the ZCode manifest both execute
dist/mcp/server.js with Node.js. Run the package build after changing
TypeScript sources.
src/providers/ui.ts owns UI automation backend selection. P0 uses idb; future implementations can add XcodeBuildMCP or native Accessibility without changing tool names.src/providers/project.ts owns project discovery and creation.src/providers/build.ts owns Xcode build/install/launch orchestration.src/providers/sim.ts owns simctl device operations.