Configuration
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"gasoline": {
"command": "npx",
"args": ["gasoline-mcp", "--mcp"]
}
}
}
Or use Cursor’s UI: Settings → MCP Servers → Add Server:
{
"gasoline": {
"command": "npx",
"args": ["gasoline-mcp", "--mcp"]
}
}
Usage
After restarting Cursor, the AI can:
- See console errors and warnings
- Inspect failed network requests with response bodies
- Query the live DOM with CSS selectors
- Check WebSocket connection states
- Run accessibility audits
Ask: “What browser errors are happening?” — Cursor queries Gasoline automatically.
Troubleshooting
- Restart Cursor after adding config
- Check MCP status in settings panel
- Verify extension shows “Connected” in popup