Skip to content

Fire It Up

Gasoline is an open-source browser extension + MCP server that streams real-time browser telemetry (console logs, network errors, exceptions, WebSocket events) to AI coding assistants like Claude Code, Cursor, Windsurf, and Zed. One command to install. Zero dependencies.

The extension captures logs from your browser and sends them to the local Gasoline server.

Terminal window
# 1. Clone the repo for the extension
git clone https://github.com/brennhill/gasoline-mcp-ai-devtools.git
cd gasoline
# 2. Load the extension:
  1. Open chrome://extensions
  2. Enable Developer mode (top right toggle)
  3. Click Load unpacked
  4. Select the extension/ folder from the cloned repository

You’ll see the Gasoline icon in your toolbar. It will show “Not Connected” until you complete step 2.

Add this config to your AI tool and it will start Gasoline automatically:

Claude Code.mcp.json in your project root:

{
"mcpServers": {
"gasoline": {
"command": "npx",
"args": ["-y", "gasoline-mcp"]
}
}
}

Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
"mcpServers": {
"gasoline": {
"command": "npx",
"args": ["-y", "gasoline-mcp"]
}
}
}

Or auto-install to any supported tool:

Terminal window
gasoline-mcp --install # all detected clients
gasoline-mcp --install gemini # just Gemini CLI
gasoline-mcp --install cursor # just Cursor

See MCP Integration for Cursor, Windsurf, Zed, Gemini CLI, OpenCode, Antigravity, and more.

Restart your AI tool. The server will start automatically when your AI connects.

Open your web app in Chrome. Trigger a test error:

console.error("Gasoline test — is the fire lit?")

Ask your AI: “What browser errors do you see?”

The extension icon should now show Connected (green indicator).

Your AI now has 5 tools covering the full debugging lifecycle:

ToolWhat it does
observeBrowser state — errors, logs, network, WebSocket, actions, Web Vitals, page info, recordings
analyzeActive analysis — DOM queries, accessibility audits, security audits, performance, link health, visual annotations
generateArtifacts — Playwright tests, reproduction scripts, PR summaries, SARIF, HAR, CSP, SRI, test healing
configureSession — noise filtering, persistent storage, recording, streaming, health
interactBrowser control — navigate, click, type, execute JS, upload, draw mode, state management

Each tool has sub-modes. For example, observe with what: "errors" returns console errors, while what: "websocket_status" returns active WebSocket connections.

See MCP Integration for full tool documentation.

For development or if you prefer building from source:

Terminal window
# Clone and run
git clone https://github.com/brennhill/gasoline-mcp-ai-devtools.git
cd gasoline
go run ./cmd/dev-console
# MCP config for source install
{
"mcpServers": {
"gasoline": {
"command": "go",
"args": ["run", "./cmd/dev-console"]
}
}
}

Requires Go 1.21+.