Gasoline + Windsurf
Gasoline is an open-source MCP server that gives Windsurf’s AI access to browser console logs, network errors, exceptions, WebSocket events, and live DOM state. Zero dependencies.
Configuration
Section titled “Configuration”Add to ~/.codeium/windsurf/mcp_config.json:
{ "mcpServers": { "gasoline": { "command": "npx", "args": ["gasoline-mcp"] } }}After restarting Windsurf, the AI can access all browser state:
- Console errors and warnings
- Failed network requests with response bodies
- WebSocket events and connection states
- Live DOM queries
- Accessibility audit results
Troubleshooting
Section titled “Troubleshooting”- Restart Windsurf after adding config
- Check extension popup — should show “Connected”
- Verify config path — must be
~/.codeium/windsurf/mcp_config.json