Token导航 LogoToken导航TokenDH.com
Ios Simulator MCP Server logo
开发工具stdio官方级别未说明来源级核验

Ios Simulator MCP Server

MCP Server

一个MCP(模型上下文协议)服务器,为Claude Code提供对iOS模拟器的代理控制,用于UI/UX调试和开发。

工具数

37

提示词数

0

GitHub Stars

0

资源数

0
开发工具TypeScriptClaude自动化测试Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

AKAICH00

提供方

AKAICH00

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install fb-idb

详细介绍

iOS模拟器MCP服务器

MCP(模型上下文协议)服务器,为Claude Code提供对iOS模拟器的代理控制,用于UI/UX调试和开发。

特性

模拟器控制

  • 列出、启动和关闭模拟器
  • 截图
  • 设置位置,状态栏覆盖
  • 提醒推送
  • 管理应用程序权限

应用管理

  • 安装、启动和终止应用程序
  • 列出已安装的应用程序
  • 打开网址
  • 访问应用程序容器

UI交互(需要IDB)

  • 点击坐标
  • 滑动手势
  • 文本输入
  • 硬件按钮按下

深度UI调试(需要ClaudeDebugKit)

  • 完成视图层次结构检查
  • 自动布局约束分析
  • 触摸目标尺寸审核(最小44pt)
  • 颜色对比度审计(WCAG AA/AAA)
  • 可访问性审计
  • 字体和颜色检查
  • 视图突出显示
  • 特性收集覆盖(暗模式、动态类型)
  • 内存统计数据和性能指标

安装

先决条件

  1. Xcode iOS模拟器
  2. Node.js 18+
  3. 国际开发银行 (可选,用于UI交互):
   brew install idb-companion
   pip install fb-idb

安装MCP服务器

cd ios-simulator-mcp-server
npm install
npm run build

配置Claude代码

添加到您的Claude Code MCP配置中(~/.config/claude-code/mcp.json):

{
  "mcpServers": {
    "ios-simulator": {
      "command": "node",
      "args": ["/path/to/ios-simulator-mcp-server/dist/index.js"]
    }
  }
}

将ClaudeDebugKit添加到您的iOS应用程序

对于深度UI检查功能,请将Swift包添加到您的iOS项目中:

  1. 在Xcode中:文件→ 添加包依赖关系
  2. 输入: file:///path/to/ClaudeDebugKit
  3. 添加到您的应用程序(仅限调试版本):
#if DEBUG
import ClaudeDebugKit

// In AppDelegate or SceneDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions...) {
    ClaudeDebugServer.shared.start()
    return true
}
#endif

使用示例

基本模拟器控制

"List all available iOS simulators"
"Boot iPhone 15 Pro"
"Take a screenshot of the simulator"
"Set the location to San Francisco (37.7749, -122.4194)"

应用程序开发工作流

"Install my app from ~/Build/MyApp.app and launch it"
"Get the view hierarchy of the current screen"
"Find all interactive elements"
"Audit touch targets for HIG compliance"

UI/UX调试

"Check color contrast for WCAG AA compliance"
"Show me the constraints on the login button"
"Highlight the view with accessibility label 'Submit'"
"Run a full UI/UX audit"

测试不同的配置

"Switch to dark mode"
"Override Dynamic Type to extra large"
"Simulate a memory warning"
"Get memory stats for the app"

可用工具

模拟器管理

工具说明
ios_list_devices列出所有模拟器
ios_boot_device启动模拟器
ios_shutdown_device关闭模拟器
ios_screenshot截图
ios_set_location设置GPS位置
ios_set_status_bar覆盖状态栏
ios_push_notification发送推送通知
ios_set_permission授予/撤销权限
ios_get_logs获取应用程序日志

应用管理

工具说明
ios_install_app安装.app捆绑包
ios_launch_app启动应用程序
ios_terminate_app终止应用程序
ios_list_apps列出已安装的应用程序
ios_open_url打开URL
ios_get_app_container获取容器路径

UI交互(需要IDB)

工具说明
ios_tap点击坐标或标签
ios_swipe滑动手势
ios_input_text键入文本
ios_press_button硬件按钮
ios_long_press长按

查看调试(需要ClaudeDebugKit)

工具说明
ios_get_view_hierarchy全景树
ios_get_constraints自动布局约束
ios_find_element按标签/标识符查找
ios_get_view_colors颜色信息
ios_get_font_info字体详细信息
ios_highlight_view视觉突出显示
ios_get_interactive_elements所有可敲击元件
ios_get_responder_chain应答器链
ios_get_traits特征收集
ios_override_traits覆盖外观
ios_get_memory_stats内存使用情况
ios_export_view_image将视图导出为PNG

审计(需要ClaudeDebugKit)

工具说明
ios_audit_touch_targets检查最小44pt
ios_audit_contrastWCAG对比度检查
ios_audit_layout自动布局问题
ios_audit_accessibility无障碍问题
ios_audit_all完整的UI/UX审核

建筑

┌─────────────────────────────────────────────────────────┐
│                     Claude Code                          │
└─────────────────────┬───────────────────────────────────┘
                      │ MCP Protocol (stdio)
                      ▼
┌─────────────────────────────────────────────────────────┐
│              ios-simulator-mcp-server                    │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────┐ │
│  │   simctl    │  │     IDB     │  │  Debug Client   │ │
│  │  (built-in) │  │ (optional)  │  │   (HTTP)        │ │
│  └──────┬──────┘  └──────┬──────┘  └────────┬────────┘ │
└─────────┼────────────────┼──────────────────┼──────────┘
          │                │                  │
          ▼                ▼                  ▼
┌─────────────────────────────────────────────────────────┐
│                    iOS Simulator                         │
│  ┌───────────────────────────────────────────────────┐ │
│  │                   Your iOS App                     │ │
│  │  ┌─────────────────────────────────────────────┐  │ │
│  │  │            ClaudeDebugKit                    │  │ │
│  │  │         (HTTP Server on :8765)               │  │ │
│  │  └─────────────────────────────────────────────┘  │ │
│  └───────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘

需求

  • macOS与Xcode 15+
  • Node.js 18+
  • ClaudeDebugKit的iOS 14+目标

许可证

麻省理工学院

目录标签

目录标签

开发工具TypeScriptClaude自动化测试iOS模拟器本地部署UI调试UX调试

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

37

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP