Skip to content

How to Connect Gasoline to Claude Code

Want Claude Code to understand what is happening in the browser, not just in your source files?

This is the setup.

Terminal window
npx -y gasoline-mcp --help

If this command works, you are ready to connect.

Step 2: Add Gasoline in Claude Code MCP config

Section titled “Step 2: Add Gasoline in Claude Code MCP config”

Add this server entry:

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

Reload so it picks up the new MCP server configuration.

observe({what: "errors"})
observe({what: "network_waterfall", status_min: 400})
generate({what: "reproduction"})

Now Claude Code can help with bug triage using runtime evidence.

[Image Idea] Claude Code MCP config panel with the gasoline block highlighted.

[Diagram Idea] Claude Code prompt -> Gasoline observe/analyze -> fix suggestion loop.