JI

joshuayoes/ios-simulator-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2204 stars 98 forks 质量 87 趋势 47MIT

用于与iOS模拟器的交互MCP服务器

概览

一个用于与iOS模拟器交互的模型上下文协议(MCP)服务器。该服务器允许您通过获取相关信息、控制UI交互以及检查UI元素来与iOS模拟器交互。 : 1.3.3版本<存在的命令注入漏洞已被修复。请更新至v1.3.3或更高版本。详情请参见 SECURITY.md。 https://github.com/user-attachments/assets/453ebe7b-cc93-4ac2-b08d-0f8ac8339ad3 该项目曾在多家出版物和资源中被介绍和提及: - Claude Code 最佳实践文章 - Anthropic 的工程博客,展示最佳实践 - React Native 通讯第 187 期 - 登上最受欢迎的 React Native 社区通讯 - 移动自动化通讯 - #56 - 被推荐为一期关于移动测试和自动化资源的长期通讯 - punkeye/awesome-mcp-server 列表 - 被列入最受欢迎的策划 Awesome MCP 服务器合集之一 查到目前被踢出的......

概述(AI 翻译)

一个用于与iOS模拟器交互的模型上下文协议(MCP)服务器。该服务器允许您通过获取相关信息、控制UI交互以及检查UI元素来与iOS模拟器交互。

安全声明:版本中存在的命令注入漏洞

许可证

麻省理工学院

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

iOS Simulator MCP Server

A Model Context Protocol (MCP) server for interacting with iOS simulators. This server allows you to interact with iOS simulators by getting information about them, controlling UI interactions, and inspecting UI elements.

Security Notice: Command injection vulnerabilities present in versions < 1.3.3 have been fixed. Please update to v1.3.3 or later. See SECURITY.md for details.

https://github.com/user-attachments/assets/a88e449c-8f1d-46a5-9816-0f97e071c460

This project has been featured and mentioned in various publications and resources:

Tools

get_booted_sim_id

Description: Get the ID of the currently booted iOS simulator

Parameters: No Parameters

open_simulator

Description: Opens the iOS Simulator application

Parameters: No Parameters

ui_describe_all

Description: Describes accessibility information for the entire screen in the iOS Simulator

Parameters:

{
  /**
   * Udid of target, can also be set with the IDB_UDID env var
   * Format: UUID (8-4-4-4-12 hexadecimal characters)
   */
  udid?: string;
}

ui_tap

Description: Tap on the screen in the iOS Simulator

Parameters:

{
  /**
   * Press duration in seconds (decimal numbers allowed)
   */
  duration?: string;
  /**
   * Udid of target, can also be set with the IDB_UDID env var
   * Format: UUID (8-4-4-4-12 hexadecimal characters)
   */
  udid?: string;
  /** The x-coordinate */
  x: number;
  /** The y-coordinate */
  y: number;
}

ui_type

Description: Input text into the iOS Simulator

Parameters:

{
  /**
   * Udid of target, can also be set with the IDB_UDID env var
   * Format: UUID (8-4-4-4-12 hexadecimal characters)
   */
  udid?: string;
  /**
在 GitHub 查看完整 README

安装

npx -y ios-simulator-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { // ... other servers might be listed here ... "ios-simulator": { "command": "npx", "args": ["-y", "ios-simulator-mcp"] } } }