Skip to main content
Glama

simyard-mcp lets a crowd of coding agents share eight iOS simulators without fighting over them. An agent asks for a simulator for a set number of minutes, and either gets one straight away or is told where it is in the queue and when to check back.

The problem

Run a handful of agents on iOS work and each one wants a simulator. Give them all one and the Mac runs out of memory; on mine, five running simulators were using between 8.6 and 11.3 GB each. Give them a limit with no queue and they either crash into it or quietly boot a ninth.

What they need is a front desk: one place that knows who has which simulator, who's waiting, and when each turn ends.

Related MCP server: lazy-ios

How it works

Every agent follows the same four steps, and the server tells it each one as it goes.

  1. Ask for a time. request_simulator(agent, minutes, device) asks for an iPhone, an iPad, or an exact device type such as an iPhone Duo, for that many minutes. If one is free, the answer comes back granted, with the simulator booted and its ID ready to pass to xcodebuild, the Xcode MCP server or RocketSim.

  2. Or wait your turn. If none is free, the answer is queued, with the agent's position, an estimate of the wait, a time to check back, and the time the request expires. wait_for_simulator holds the call open for up to 45 seconds and returns the moment it's the agent's turn. An agent that stops checking in is dropped from the queue when its time runs out, so a crashed agent doesn't hold up the line.

  3. Extend, or finish on time. The turn lasts the minutes the agent asked for. extend_lease adds more. When the time is up and someone else is waiting, the turn ends: the simulator is wiped and handed on, and the agent's next call says its turn is over and who has the simulator now.

  4. Hand it back early. release_simulator uninstalls the agent's apps, resets the keychain, shuts the simulator down and gives it to the next agent. Agents are told to do this as soon as they're done for now.

Three rules hold underneath, and the database enforces them rather than trusting the agents:

  • One simulator per agent. Asking again returns the request it already has.

  • One agent per simulator. Two agents can't hold the same simulator, even with several copies of the server sharing one queue file.

  • No more than eight running, counting any simulator booted outside the pool, and none booted when less than 25% of the Mac's memory is free.

Note: when a turn runs out and nobody is waiting, the agent keeps the simulator in overtime rather than being cut off for nothing. The overtime ends the moment someone queues for that kind of device, or after 15 minutes.

Tool

What it does

request_simulator

Ask for a simulator for N minutes; granted now or queued

wait_for_simulator

Hold the call open until it's your turn, up to 45 s by default

check_request

Check in on a queued request, or claim one being held for you

cancel_request

Leave the queue

extend_lease

Add minutes to your turn

release_simulator

Hand the simulator back, wiped

lease_status

Time left, or why your turn ended

queue_status

Every simulator, every holder, the whole queue

init_pool

Make the pool of eight, once

Install

It runs with uvx, so there's nothing to install beyond uv.

claude mcp add --transport stdio simyard -- uvx --from git+https://github.com/fledgeling-co/simyard-mcp@v0.1.0 simyard-mcp
codex mcp add simyard -- uvx --from git+https://github.com/fledgeling-co/simyard-mcp@v0.1.0 simyard-mcp

Then have any agent call init_pool once. It makes six iPhones and two iPads on the newest iOS that supports each, or the mix you pass, e.g. "iphone:5,ipad:2,iPhone Duo:1".

The queue lives in ~/.config/simyard/queue.db, beside the pool file the simyard skill uses. The two share their leases, so an agent using the skill's script and an agent using this server never get the same simulator.

Does it actually work?

The queue is well tested; how agents behave with it hasn't been measured yet.

  • 14 tests of the queue's rules pass against a fake clock: immediate grants, one simulator per agent, twenty agents on six iPhones getting positions 1 to 14 with rising wait estimates, dropping a request that stops checking in, cancelling, a turn ending and passing to the next agent, overtime, extending, an unclaimed offer moving on, and the memory and running limits.

  • Twenty agents at once. Twenty threads with their own connections to one queue file took 60 turns on eight simulators. No simulator ever had two holders, and no more than eight ran.

  • The real server over MCP. A test starts the server as a real MCP process and drives all nine tools through the official client.

  • A real simulator. On my Mac, a throwaway simulator was granted and booted in 24.5 seconds; a second agent was queued and told to check back in 47 seconds; releasing took 11.6 seconds and the second agent got it straight away.

  • The rules can fail. I broke five of them in copies of the code, one at a time, and a test caught each.

What hasn't been tested: agents actually following the server's instructions, and whether a client shows the progress updates during a wait. EVALS.md has the detail.

Credit

The pool, the preflight and the wipe on release come from sim-guard by An Nayal (MIT), by way of the simyard skill. The queue, the leases and the turn timing are new here.

Available Tools

9 tools
cancel_requestB

Leave the queue, or decline a simulator that is being held for you.

Inputs: request_id (required).

check_requestB

Check in on a request. With still_needed=true it confirms you are still waiting (resetting its expiry), claims a simulator that is being held for you, and returns the current status and the next check-in time. With still_needed=false it cancels the request.

Inputs: request_id (required), boot, still_needed.

extend_leaseA

Add minutes (1-240) to your turn. Call it before lease_expires_at; after that, the simulator goes to the next waiting agent.

Inputs: minutes (required), lease_id (required).

init_poolA

Create the pool if it does not exist: devices named "Simyard ", 8 at most, each on the newest installed iOS runtime that supports its type. Running it again adopts existing pool devices rather than making new ones. Example spec: "iphone:5,ipad:2,iPhone Duo:1".

Inputs: spec.

lease_statusB

How long your turn has left, or, if it is over, why and who has the simulator now.

Inputs: lease_id (required).

queue_statusA

Every pool simulator with its holder and time left, and the queue with positions, waits and expiries. Read-only.

Inputs: no named parameters.

release_simulatorA

Hand your simulator back as soon as you are done for now. Uninstalls the apps you installed, resets the keychain, shuts it down and clears its wallpaper cache, then offers it to the next agent. keep_apps=true skips the uninstall and keychain reset.

Inputs: lease_id (required), keep_apps.

request_simulatorA

Ask for one simulator for minutes minutes (1-240). Granted now (status "granted", with udid, lease_id and lease_expires_at) or queued (status "queued", with position, estimated_wait_s, check_after_s and expires_at). device is "iphone", "ipad", an exact device type such as "iPhone Duo", or a list of acceptable ones. One simulator per agent: asking again returns the request you already have. Boots the simulator on grant unless boot=false.

Inputs: agent (required), minutes (required), boot, device, +1 more.

wait_for_simulatorB

Hold the call open until it is your turn (returns status "granted" with the udid) or until max_wait_seconds pass (returns status "queued" with fresh check_after_s and expires_at; call it again). Waiting counts as checking in, so your request is not dropped while you wait. Keep max_wait_seconds under your client's tool timeout; 45 is safe for most.

Inputs: request_id (required), boot, max_wait_seconds.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools map cleanly to a distinct lifecycle step (request, wait, check, extend, release, cancel) and the two status tools separate personal lease from pool/queue overview. However, check_request with still_needed=false overlaps with cancel_request, and wait_for_simulator versus check_request both act as 'check-in' operations, so an agent could pick the wrong one in the cancel/keep-waiting case.

    Naming Consistency4/5

    Everything is snake_case with predictable verb_noun forms (init_pool, request_simulator, release_simulator, cancel_request, extend_lease). The only deviation is the two status tools using noun_status (lease_status, queue_status), which is a readable, conventional exception rather than an inconsistency.

    Tool Count5/5

    Nine tools is well matched to a simulator-leasing server, with each tool covering a necessary phase: pool setup, request/queue, waiting, lease extension, release, cancellation, and two read-only status views. Nothing feels redundant or missing from the count perspective.

    Completeness4/5

    The full lease lifecycle is covered end to end, from pool initialization through request, wait, extend, release, and cancel, with status inspection for both the lease and the queue. Minor gaps remain: there is no way to tear down or reset the pool, and no tool to inspect a specific granted simulator beyond its udid.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables iOS build, launch, and UI test automation on both simulators and physical devices through a single MCP server, with lease-based device ownership that prevents simulator and helper process leaks.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to check setup, manage iOS Simulator devices, build/install/launch iOS apps, capture screenshots, send input, and open a live browser preview. It connects local agent workflows to Apple's simulator without requiring a custom emulator or native pane.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables multiple AI agent sessions to share a single Mac's Apple Simulator pool through one shared daemon that tracks leases and auto-dispatches freed simulators to the next waiting caller. It provides simulator UI automation, app lifecycle, profiling, live streaming, crash debugging, and HTTPS interception tools, all gated to the lease holder.
      33 npm
      MIT