Logo di Blowback (Frontend Development)

Blowback (Frontend Development)

Community
ESnark

MCP Server for Frontend dev environment (formerly known as vite-mcp-server)

AutoreESnark
Repositoryblowback
LinguaTypeScript
Fork
6
Stelle
23
Strumenti disponibili
16
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Blowback (Frontend Development) mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 16 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    23 stelle e 6 fork nel repository collegato.

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):

bash
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
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 <meta name="__mcp_checkpoint" data-id=""> 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 NameDescription
get-hmr-eventsRetrieves recent HMR events
check-hmr-statusChecks the HMR status

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

Browser Tools

Tool NameDescription
start-browserStarts a browser instance and navigates to the development server. HMR monitoring starts automatically
capture-screenshotCaptures a screenshot of the current page or a specific element. Returns screenshot ID and resource URI
get-element-propertiesRetrieves properties and state information of a specific element
get-element-stylesRetrieves style information of a specific element
get-element-dimensionsRetrieves dimension and position information of a specific element
monitor-networkMonitors network requests in the browser for a specified duration
get-element-htmlRetrieves the HTML content of a specific element and its children
get-console-logsRetrieves console logs from the browser session with optional filtering
execute-browser-commandsSafely executes predefined browser commands

Help Tools

Tool NameDescription
how-to-useProvides instructions on how to use specific features of the server

Resources

screenshots

A resource for querying all captured screenshots. You can query screenshot reference IDs captured by the capture-screenshot tool using various criteria.

Images corresponding to reference IDs are managed in the {PROJECT_ROOT}/.mcp_screenshot/ directory.

  • URI: screenshot://
  • Returns a list of all screenshots

screenshot-by-url

A resource for querying specific screenshots based on URL path.

Note: Starting from version 1.0, Blob responses through resources are disabled by default, and file reference information is returned instead

  • URI template: screenshot://{+path}
  • Example: screenshot://localhost:5173/about
  • Use URL paths without protocol (http://, https://)

Data Storage Structure

Screenshot Storage

  • Screenshot images: Stored in {PROJECT_ROOT}/.mcp_screenshot/ directory
  • Metadata: Managed in SQLite database in temporary directory
  • It's recommended to add .mcp_screenshot/ directory to .gitignore

Log Management System

  • Captures browser console logs and saves them to files for querying
  • Checkpoint logs are only saved when checkpoints are active

Checkpoint System

How Checkpoints Work

  • Checkpoints are used to manage snapshots, logs, screenshots, etc. of specific versions
  • When <meta name="__mcp_checkpoint" data-id=""> is inserted into the head, data is recorded separately using the data-id attribute as an identifier

Architecture and Data Flow

Core Components

  1. MCP Server: Central module that exposes tools and resources to AI tools using the Model Context Protocol SDK.

  2. Browser Automation: Uses Playwright to control Chrome for visual inspection, screenshot capture, and DOM manipulation.

  3. Checkpoint System: Maintains snapshots of browser states for comparison and testing.

  4. SQLite Database: Efficiently manages screenshot metadata and enables quick URL-based queries.

Data Sources and State Management

The server maintains several important data stores:

  • HMR Event Records: Tracks recent HMR events (updates, errors) from development server.
  • Console Message Logs: Captures browser console output for debugging.
  • Checkpoint Storage: Stores named snapshots of browser states including DOM snapshots.
  • Screenshot Storage: Saves images in project directory and manages metadata with SQLite.

Communication Flow

  1. MCP Client → Development Server:

    • MCP Client changes the source code and development server detects the change
    • Development server automatically updates the browser or emits HMR events
  2. Web Browser → MCP Server:

    • HMR events and console logs are captured through Playwright
    • MCP Server queries the current state of the browser or captures screenshots
  3. MCP Server → MCP Client:

    • The server converts HMR events into structured responses
    • Provides tools for MCP Client to query HMR status, capture screenshots, and more

State Maintenance

The server maintains reference objects for:

  • Current browser and page instances
  • Recent HMR events

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "blowback": {
      "command": "npx",
      "args": [
        "-y",
        "blowback-context"
      ]
    }
  }
}

Strumenti disponibili

  • how-to-use

    Description of how to use the server

  • start-browser

    Creates a new browser context with an auto-generated unique ID

  • list-browsers

    Lists all active browser instances

  • close-browser

    Closes a specific browser instance

  • get-context-info

    Gets detailed information about a specific browser instance

  • get-context-stats

    Gets usage statistics for browsers

  • get-hmr-events

    Retrieves recent HMR events

  • capture-screenshot

    Captures a screenshot of the current page or a specific element. Stores the screenshot in the MCP resource system and returns a resource URI. If ENABLE_BASE64 environment variable is set to 'true', also includes base64 encoded image in the response.

  • get-element-properties

    Retrieves properties and state information of a specific element

  • get-element-styles

    Retrieves style information of a specific element

  • get-element-dimensions

    Retrieves dimension and position information of a specific element

  • monitor-network

    Monitors network requests in the browser for a specified duration

  • get-element-html

    Retrieves the HTML content of a specific element and its children with optional depth control

  • get-console-logs

    Retrieves console logs from the development server

  • execute-browser-commands

    $2d

  • browser-evaluate

    Evaluates JavaScript code directly in the browser context and returns the result. Supports expressions, function strings, and complex code with automatic execution handling. Can target the entire page or work with element handles for precise DOM manipulation.

    Examples:

    • Simple expression: "document.title"
    • Arrow function: "() => document.querySelectorAll('a').length"
    • Regular function: "function() { return document.body.children.length; }"
    • Function with arguments: "(tag) => document.getElementsByTagName(tag).length"
    • Complex code: "() => { const divs = document.querySelectorAll('div'); return { count: divs.length, hasClass: divs[0]?.className }; }"
    • Async function: "async () => { const res = await fetch('/api'); return res.json(); }"

Usa MCP Blowback (Frontend Development) con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Blowback (Frontend Development), puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Blowback (Frontend Development) come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Blowback (Frontend Development).
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "blowback-frontend-development": {
      "command": "npx",
      "args": [
        "-y",
        "blowback-context"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Blowback (Frontend Development), poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Blowback (Frontend Development).
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Blowback (Frontend Development) per aiutarmi con questa attività?
Blowback (Frontend Development)
Certo. Ho letto.
Ecco cosa ho trovato con Blowback (Frontend Development).

Domande frequenti

A cosa serve il server MCP Blowback (Frontend Development)?

Blowback (Frontend Development) è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Blowback (Frontend Development) MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Blowback (Frontend Development) con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Blowback (Frontend Development) con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Blowback (Frontend Development), puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Blowback (Frontend Development) MCP a TypingMind?

Blowback (Frontend Development) funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Blowback (Frontend Development) MCP in TypingMind?

Blowback (Frontend Development) mette a disposizione 16 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Blowback (Frontend Development) MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Blowback (Frontend Development) richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇