Skip to content

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.

Terminal window
gasoline-mcp --install opencode

Add to ~/.config/opencode/opencode.json:

{
"mcp": {
"gasoline": {
"type": "local",
"command": ["gasoline-mcp"],
"enabled": true
}
}
}

OpenCode uses the mcp key (not mcpServers) and expects command as an array.

After configuring, OpenCode can access Gasoline’s full MCP toolset.

  1. Restart OpenCode after editing config
  2. Check the config key — must be mcp, not mcpServers
  3. Verify extension popup shows “Connected”