How to Connect Gasoline to Windsurf
If you use Windsurf and want real browser evidence during development, this guide is for you.
Quick Terms
Section titled “Quick Terms”- MCP (Model Context Protocol): A tool integration standard for AI assistants. https://modelcontextprotocol.io/specification/
- Runtime evidence: What actually happened in the browser (errors, requests, page state).
Step 1: Check Gasoline availability
Section titled “Step 1: Check Gasoline availability”npx -y gasoline-mcp --helpStep 2: Add Gasoline to your Windsurf MCP servers
Section titled “Step 2: Add Gasoline to your Windsurf MCP servers”{ "mcpServers": { "gasoline": { "command": "npx", "args": ["-y", "gasoline-mcp"] } }}Step 3: Restart Windsurf
Section titled “Step 3: Restart Windsurf”Windsurf needs a restart to load new MCP entries.
Step 4: Run your first checks
Section titled “Step 4: Run your first checks”observe({what: "errors"})observe({what: "logs", min_level: "error"})Step 5: Create a concrete artifact
Section titled “Step 5: Create a concrete artifact”generate({what: "reproduction"})This gives your team a reproducible script instead of vague notes.
Image and Diagram Callouts
Section titled “Image and Diagram Callouts”[Image Idea] Windsurf MCP config with Gasoline server entry.
[Diagram Idea] Windsurf request -> Gasoline tools -> bug artifact output.