Gasoline + OpenCode
Gasoline is an open-source MCP server that gives OpenCode access to browser console logs, network errors, exceptions, WebSocket events, and live DOM state. Zero dependencies.
Auto-Install
Section titled “Auto-Install”gasoline-mcp --install opencodeManual Configuration
Section titled “Manual Configuration”Add to ~/.config/opencode/opencode.json:
{ "mcp": { "gasoline": { "type": "local", "command": ["gasoline-mcp"], "enabled": true } }}OpenCode uses the
mcpkey (notmcpServers) and expectscommandas an array.
After configuring, OpenCode can access Gasoline’s full MCP toolset.
Troubleshooting
Section titled “Troubleshooting”- Restart OpenCode after editing config
- Check the config key — must be
mcp, notmcpServers - Verify extension popup shows “Connected”