Skip to main content
Glama

Vite MCP Server

by ESnark

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
screenshots

Tools

Functions exposed to the LLM to take actions

NameDescription
how-to-use

Description of how to use the server

get-hmr-events

Retrieves recent HMR events

start-browser

Launches a browser instance and navigates to the dev server

capture-screenshot

Captures a screenshot of the current page or a specific element. This feature is for MCP Clients that do not support MCP Resource and image content type. If the image is successfully saved, you should request the user to provide the image.

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

get-console-logs

Retrieves console logs from the development server

execute-browser-commands

Executes a sequence of predefined browser commands safely. Available commands:

  • click: Clicks on an element matching the selector or at specified coordinates
  • type: Types text into an input element
  • wait: Waits for an element, a specified time period, or a condition
  • navigate: Navigates to a specified URL
  • select: Selects an option in a dropdown
  • check: Checks or unchecks a checkbox
  • hover: Hovers over an element
  • focus: Focuses an element
  • blur: Removes focus from an element
  • keypress: Simulates pressing a keyboard key
  • scroll: Scrolls the page or an element
  • getAttribute: Gets an attribute value from an element
  • getProperty: Gets a property value from an element
  • drag: Performs a drag operation from one position to another
  • refresh: Refreshes the current page

Note on coordinates: For all mouse-related commands (click, drag, etc.), coordinates are relative to the browser viewport where (0,0) is the top-left corner. X increases to the right, Y increases downward.

Examples are available in the schema definition.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ESnark/blowback'

If you have feedback or need assistance with the MCP directory API, please join our Discord server