How to Connect Gasoline to Cursor
Cursor is excellent for writing code. Gasoline makes Cursor workflows browser-aware.
Here is the fastest setup path.
Quick Terms
Section titled “Quick Terms”- MCP (Model Context Protocol): Connects Cursor to external tools. https://modelcontextprotocol.io/specification/
- Regression: A bug that returns after being fixed.
Step 1: Confirm Gasoline command is available
Section titled “Step 1: Confirm Gasoline command is available”npx -y gasoline-mcp --helpStep 2: Add Gasoline as an MCP server in Cursor
Section titled “Step 2: Add Gasoline as an MCP server in Cursor”Use this config block:
{ "mcpServers": { "gasoline": { "command": "npx", "args": ["-y", "gasoline-mcp"] } }}Step 3: Restart Cursor
Section titled “Step 3: Restart Cursor”Restart so Cursor reloads MCP servers.
Step 4: Run your first runtime checks
Section titled “Step 4: Run your first runtime checks”observe({what: "errors"})observe({what: "network_bodies", status_min: 400})Step 5: Save the workflow for next time
Section titled “Step 5: Save the workflow for next time”generate({what: "test", test_name: "first-cursor-gasoline-check"})Now you have a repeatable baseline, not a one-off debugging session.
Image and Diagram Callouts
Section titled “Image and Diagram Callouts”[Image Idea] Cursor MCP settings showing a connected
gasolineserver.
[Diagram Idea] Cursor edit loop with runtime checks between each change.