Skip to content

Add simulators command for listing iOS devices#107

Merged
obj-p merged 2 commits intocli-mcp-parityfrom
simulators-command
Apr 15, 2026
Merged

Add simulators command for listing iOS devices#107
obj-p merged 2 commits intocli-mcp-parityfrom
simulators-command

Conversation

@obj-p
Copy link
Copy Markdown
Owner

@obj-p obj-p commented Apr 15, 2026

Summary

  • Adds previewsmcp simulators as a daemon client for the simulator_list MCP tool.
  • Prints one line per available device to stdout: <name> — <udid> [BOOTED] (<runtime>).
  • Intended for piping into grep / fzf to pick a UDID for --device on run / snapshot.

Test plan

  • swift build
  • swift test --filter SimulatorsCommandTests (passes locally)
  • Smoke-tested against real simctl — correctly lists all booted and shutdown devices

🤖 Generated with Claude Code

obj-p and others added 2 commits April 15, 2026 15:19
Forwards to the daemon's simulator_list MCP tool. Writes one line
per available device to stdout in the form `<name> — <udid>
[BOOTED] (<runtime>)`, suitable for piping into grep or fzf to pick
a UDID for `--device` on run / snapshot.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- simulator_list always returns either device lines or a
  "No available simulator devices found." sentinel. The previous
  `if !text.isEmpty` guard was copied from elements (where empty
  JSON is plausible) and silently dropped the sentinel. Drop the
  guard so bare-runner users see the daemon's reply.
- Broaden the integration test to run on every machine and branch
  the assertion on whether a simulator happens to be available. This
  exercises daemon auto-start on bare runners where the previous
  early-return made the test a no-op.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@obj-p obj-p merged commit 67984a0 into cli-mcp-parity Apr 15, 2026
@obj-p obj-p deleted the simulators-command branch April 15, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant