ios-simulator-mcp

v1.3.0
@mseep/ios-simulator-mcp Checked 10 hours ago Published 1 year ago

MCP server for interacting with the iOS simulator

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_booted_sim_id

Get the ID of the currently booted iOS simulator

ui_describe_all

Describes accessibility information for the entire screen in the iOS Simulator

ParameterTypeDescription
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_tap

Tap on the screen in the iOS Simulator

ParameterTypeDescription
x *numberThe x-coordinate
y *numberThe x-coordinate
durationstringPress duration
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_type

Input text into the iOS Simulator

ParameterTypeDescription
text *stringText to input
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_swipe

Swipe on the screen in the iOS Simulator

ParameterTypeDescription
x_end *numberThe ending x-coordinate
x_start *numberThe starting x-coordinate
y_end *numberThe ending y-coordinate
y_start *numberThe starting y-coordinate
deltanumberThe size of each step in the swipe (default is 1)
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_describe_point

Returns the accessibility element at given co-ordinates on the iOS Simulator's screen

ParameterTypeDescription
x *numberThe x-coordinate
y *numberThe y-coordinate
udidstringUdid of target, can also be set with the IDB_UDID env var

screenshot

Takes a screenshot of the iOS Simulator

ParameterTypeDescription
output_path *stringFile path where the screenshot will be saved (if relative, ~/Downloads will be used as base directory)
displaystringDisplay to capture (internal or external). Default depends on device type.
maskstringFor non-rectangular displays, handle the mask by policy (ignored, alpha, or black)
typestringImage format (png, tiff, bmp, gif, or jpeg). Default is png.
udidstringUdid of target, can also be set with the IDB_UDID env var

record_video

Records a video of the iOS Simulator using simctl directly

ParameterTypeDescription
codecstringSpecifies the codec type: "h264" or "hevc". Default is "hevc".
displaystringDisplay to capture: "internal" or "external". Default depends on device type.
forcebooleanForce the output file to be written to, even if the file already exists.
maskstringFor non-rectangular displays, handle the mask by policy: "ignored", "alpha", or "black".
output_pathstringOptional output path (defaults to ~/Downloads/simulator_recording_$DATE.mp4)

stop_recording

Stops the simulator video recording using killall