EB

esnark/blowback

Browser automation

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 6 forks 品質 63 トレンド 0

フロントエンドのdev環境のためのMCPサーバー(以前はvite-mcp-serverとして知られている)

概要

ビット MCP Server は、Vite だけでなく、さまざまな FE 開発サーバーをサポートするブローバック を目指しました。 Claude Desktop や Cursor などの AI ツールと FE 開発サーバーを統合するモデルコンテキストプロトコル (MCP) サーバー。 または json の設定: - Claude コード: {PROJECT ROOT}/.mcp.json - Cursor: {PROJECT ROOT}/.cursor/mcp.json - PROJECT ROOT: プロジェクトルートパス(オプション、現在の作業ディレクトリへのデフォルト) - ENABLE BASE64: ツール応答に base64 のエンコードされた画像を含める (デフォルト: false / は、トークンの使用状況とコンテキストウィンドウが有効になっているときに影響します) - MCP サーバーとローカル開発サーバーの統合 - MCP によるブラウザー コンソール ログ キャプチャと伝送 - チェックポイント ベースのログ管理 - スクリーンショット キャプチャと SQLite データベース管理 - HMR (ホット モジュールの置換) イベント監視 - ブラウザー オートメーションと要素の検査 init プロンプトは、AI アシスタントに以下の機能を効果的に使用する方法に関するガイダンスを提供します。 MCP プロンプト機能をサポートしていません.

概要(AI 翻訳)

ワイドMCP サーバがブローバック ツイート ブローバックは、Viteだけでなく、さまざまなFE開発サーバーをサポートすることを目指しています

Claude Desktop や Cursor などの AI ツールと FE 開発サーバーを統合するモデルコンテキストプロトコル (MCP) サーバー。

使用方法

コマンド(クロードコード):

または json の設定を使用します。

  • ロードコード: [{PROJECT_ROOT}/.mcp.json
  • カーソル: {PROJECT_ROOT}/.cursor/mcp.json

環境変数

  • [PROJECT_ROOT: プロジェクトルートパス(オプション、現在の作業ディレクトリへのデフォルト)
  • [ENABLE_BASE64]: ツールの応答に base64 のエンコードされた画像を含める (デフォルト: false / は、トークンの使用状況とコンテキストウィンドウが有効になっているときに影響します)

主な特長

  • MCP サーバーによるローカル開発サーバーの統合
  • MCPによるブラウザコンソールログキャプチャと送信
  • チェックポイントベースのログ管理
  • スクリーンショットキャプチャとSQLiteデータベース管理
  • HMR(ホットモジュール交換)イベントモニタリング
  • ブラウザの自動化と要素の検査

init プロンプト

[init] プロンプトは、AI アシスタントに以下の機能を使用する方法についてのガイダンスを提供します。

Cursor ChatはMCPのプロンプト機能をサポートしていないため、この機能は利用できません。 (クロードコード推奨)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Blowback

Vite MCP Server is now Blowback

Blowback aims to support various FE development servers, not only Vite

A Model Context Protocol (MCP) server that integrates FE development servers with AI tools like Claude Desktop and Cursor.

How to Use

Command (Claude Code):

claude mcp add blowback -s project -e PROJECT_ROOT=/path/to/your/project -- npx -y blowback-context

Or use json configuration:

  • Claude Code: {PROJECT_ROOT}/.mcp.json
  • Cursor: {PROJECT_ROOT}/.cursor/mcp.json
{
  "mcpServers": {
    "blowback": {
      "command": "npx",
      "args": ["-y", "blowback-context"],
      "env": {
        "PROJECT_ROOT": "/path/to/your/project"
      }
    }
  }
}

Environment Variables

  • PROJECT_ROOT: Project root path (optional, defaults to current working directory)
  • ENABLE_BASE64: Include base64 encoded images in tool responses (default: false / affects token usage and context window when enabled)

Key Features

  • Integration of local development server with MCP server
  • Browser console log capture and transmission via MCP
  • Checkpoint-based log management
  • Screenshot capture and SQLite database management
  • HMR (Hot Module Replacement) event monitoring
  • Browser automation and element inspection

init Prompt

The init prompt provides guidance to AI assistants on how to effectively use the following features:

Cursor Chat does not support MCP prompt functionality, so this feature is not available. (Claude Code recommended) If needed, manually input the following prompt:

You can use checkpoint features by inserting `` into the head to create a named snapshot of the current state. The data-id attribute is a unique identifier for the checkpoint.

Console logs generated in the browser while a checkpoint is active are tagged with the checkpoint ID and can be queried individually.

Note: In some development environments, hot reload is triggered when files are saved, so carefully consider the sequence between meta tag changes and the changes you want to observe. Make sure to set the checkpoint meta tag before making the changes you want to track.

You can use the capture-screenshot tool to take screenshots. The captured screenshots are stored in the @.mcp_screenshot/ directory.

Tools

HMR Tools

Tool Name Description
get-hmr-events Retrieves recent HMR events
check-hmr-status Checks the HMR status

Note: HMR connection is optional, not required. HMR event monitoring starts automatically when the browser is launched.

Browser Tools

Tool Name Description
start-browser Starts a browser instance and navigates to the development server. HMR monitoring starts automatically
capture-screenshot Captures a screenshot of the current page or a specific element. Returns screenshot ID and resource URI
GitHub で README 全文を見る

インストール

npx -y blowback-context
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "blowback": { "command": "npx", "args": ["-y", "blowback-context"], "env": { "PROJECT_ROOT": "/path/to/your/project" } } } }