一款用于与iOS模拟器交互的Model Context Protocol (MCP)服务器。该服务器支持通过获取模拟器信息、控制UI交互和检查UI元素来实现与iOS模拟器的交互。
获取模拟器状态
UI交互控制
x
, y
)工具过滤
IOS_SIMULATOR_MCP_FILTERED_TOOLS
bash
# 禁用截图和视频录制工具
IOS_SIMULATOR_MCP_FILTERED_TOOLS="screenshot,record_video,stop_recording"
该MCP服务器可与MCP客户端(如Cursor)集成,通过AI助手执行质量保证(QA)任务,验证UI一致性和功能正确性。
验证UI元素
Verify all accessibility elements on the current screen
确认文本输入
Enter "QA Test" into the text input field and confirm the input is correct
检查点击响应
Tap on coordinates x=250, y=400 and verify the expected element is triggered
验证滑动操作
Swipe from x=150, y=600 to x=150, y=100 and confirm correct behavior
详细元素检查
Describe the UI element at position x=300, y=350 to ensure proper labeling and functionality
截图与录制
Take a screenshot of the current simulator screen and save it to my_screenshot.png
Start recording a video of the simulator screen
Stop the current simulator screen recording
x=0
, y=0
)。~/Downloads/simulator_recording_$DATE.mp4
,可通过配置修改存储位置。通过集成该服务器,开发者和QA团队可借助AI自动化验证iOS应用的UI交互逻辑,提升测试效率和准确性。