MCP iOS シミュレータのスクリーンショット
モデル コンテキスト プロトコル (MCP) を使用して iOS シミュレータからスクリーンショットをキャプチャするサーバー。
概要
このプロジェクトは、iOS シミュレータの現在の画面をキャプチャし、指定されたディレクトリに保存する MCP プロトコル サーバーを実装します。
設定
クラインとルーコード
Cline および Roo Code の場合、基本的な形式は次のとおりです。
リポジトリをクローンする場合は、次の構成を使用できます。
カーソル、クロードデスクトップ
Cursor および Claude Desktop の場合、 --output-dir
と出力ディレクトリを指定する必要があります。
MCPツールパラメータ
スクリーンショットを取得
iOS シミュレータからスクリーンショットをキャプチャし、指定されたディレクトリに保存します。
パラメータ | タイプ | 説明 | デフォルト値 |
---|---|---|---|
出力ファイル名 | 弦 | 出力ファイル名 | タイムスタンプ.png |
出力ディレクトリ名 | 弦 | スクリーンショットのサブディレクトリ名 | .スクリーンショット |
サイズ変更 | ブール値 | 画像をおよそVGAサイズにリサイズするかどうか | 真実 |
最大幅 | 整数 | サイズ変更の最大幅(ピクセル) | 640 |
デバイスID | 弦 | シミュレータデバイスを指定する | 起動したデバイス |
出力形式
成功した場合:
注: serverConfig.commandLineArgs.outputDir
フィールドは、サーバーの起動時に--output-dir
パラメータが指定された場合にのみ応答に含まれます。
トラブルシューティング
- スクリーンショットをキャプチャできない場合:
- iOSシミュレータが実行中かどうかを確認する
- Xcodeコマンドラインツールがインストールされているかどうかを確認する
xcrun simctl io booted screenshot
コマンドを直接実行できるかどうかを確認します
- 権限エラーが発生した場合:
- 出力ディレクトリへの書き込み権限があるかどうかを確認してください
要件
- Node.js 16.0.0以上
- macOS(iOSシミュレータが必要)
- Xcode コマンドラインツール
テクノロジースタック
- タイプスクリプト
- Node.js
- MCP SDK(@modelcontextprotocol/sdk)
ライセンス
マサチューセッツ工科大学
その他の言語
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
モデル コンテキスト プロトコル (MCP) を使用して iOS シミュレータからスクリーンショットをキャプチャし、指定されたディレクトリに保存するサーバー。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server to control iOS Simulators.Last updated -4122JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol server that provides AI vision capabilities for analyzing UI screenshots, offering tools for screen analysis, file operations, and UI/UX report generation.Last updated -261JavaScriptISC License
- AsecurityAlicenseAqualityAn official MCP server implementation that allows AI assistants to capture website screenshots through the ScreenshotOne API, enabling visual context from web pages during conversations.Last updated -16TypeScriptMIT License
- -securityFlicense-qualityA lightweight Model Context Protocol (MCP) server that enables your LLM to capture screenshots of any specified URL and return only the access URL for the captured image. This tool simplifies the process of generating and sharing webpage snapshots, making it perfect for integrating visual capture caLast updated -1Python