フロントエンドレビュー-MCP
UI編集リクエストのビジュアルレビューを実行するMCPサーバー。エージェントに編集前後のページのスクリーンショットを撮ってもらい、このツールを呼び出して編集内容を確認します。
使用法
カーソル
- プロジェクトにインストールするには、MCP サーバーを
.cursor/mcp.json
に追加します。
- グローバルにインストールするには、カーソル設定に次のコマンドを追加します。
ウィンドサーフィン
- MCP サーバーを
~/.codeium/windsurf/mcp_config.json
ファイルに追加します。
ツール
現在、唯一のツールはreviewEdit
です。
エージェントは次の引数を使用してこのツールを呼び出します。
beforeScreenshotPath
: 編集前のページのスクリーンショットへの絶対パス。afterScreenshotPath
: 編集後のページのスクリーンショットへの絶対パス。editRequest
: ユーザーが行った UI 編集リクエストの詳細な説明。
ツールは、編集内容が編集リクエストを視覚的に満たしているかどうかを示す「 yes
またはno
の応答を返します。「いいえ」の場合、編集内容がリクエストを満たしていない理由の詳細な説明が表示されるので、編集作業を続行できます。
レビューモデル
現在、レビュー対象モデルはHyperbolicのQwen/Qwen2-VL-72B-Instruct
です。リクエストが失敗した場合、以下のモデルで自動的にリクエストが再試行されます。
フォールバック順序:
Qwen/Qwen2-VL-72B-Instruct
Qwen/Qwen2-VL-7B-Instruct
meta-llama/Llama-3.2-90B-Vision-Instruct
mistralai/Pixtral-12B-2409
最初のモデルとして別のモデルを使用する場合は、コマンドにMODEL
引数を追加できます。
最初に指定されたモデルを試し、失敗した場合は他のモデルを試します。
スクリーンショットを撮る
スクリーンショットを撮るには、どのMCPサーバーでも使えます。私は、フロントエンド開発に役立つツールの中でも、 takeScreenshot
ツールが付属するhttps://github.com/AgentDeskAI/browser-tools-mcpを使用しています。
AI指示
AI のプロンプトに次の指示を含めると、スクリーンショットを撮って編集内容を確認することができます。
ヒント
最適なエクスペリエンスを得るには、カーソル設定で YOLO モードがオンになっており、MCP ツール保護がオフになっていることを確認してください。
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
編集前と編集後のスクリーンショットを比較して UI 編集要求を視覚的に確認し、変更がユーザーの要求を満たしていることを確認する MCP サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA MCP server that creates graphic recordings by converting websites or text input into visual summaries using different prompt styles (standard, elementary, timeline).Last updated -TypeScriptMIT License
- -securityFlicense-qualityA MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.Last updated -5TypeScript
- -securityAlicense-qualityMCP server that provides computer control capabilities including mouse movements, keyboard actions, screenshot capture with OCR, and window management through a unified API.Last updated -4PythonMIT License
- -security-license-qualityAn MCP server that provides web development tools including taking screenshots of screens, enabling AI agents to capture and analyze visual content during development.Last updated -2TypeScript