Troubleshooting
Extension Not Connecting to Server
Section titled “Extension Not Connecting to Server”- Check server is running: Look for
[gasoline] vX.Y.Z — HTTP on port 7890on stderr - Check extension badge: Red
!means disconnected, green means connected - Check port conflict: Another process may be using port 7890. Try
--port 7891 - Update extension URL: If using a different port, go to Options and change the Server URL
- Check browser console: Right-click extension icon → Inspect → Console tab
Logs Not Appearing
Section titled “Logs Not Appearing”- Check capture level: Popup may be set to “Errors Only” — try “All Logs”
- Check domain filter: Options page may have filters excluding your domain
- Reload the page: Extension injects on page load — navigate or refresh
MCP Mode Not Working
Section titled “MCP Mode Not Working”- Check config path: Must be in your AI tool’s config directory
- Restart your AI tool: MCP servers are loaded on startup
- Check for JSON errors: Invalid JSON in config will silently fail
- Verify with AI: Ask “What MCP tools do you have?” — Gasoline tools should appear
MCP Config Conflicts (User vs Project)
Section titled “MCP Config Conflicts (User vs Project)”Symptom: You added .mcp.json to your project but Gasoline uses wrong settings (different port, old path, etc.)
Cause: Claude Code has multiple config levels with a precedence order:
- User-level: Managed via
claude mcp add --scope user(applies globally) - Project-level:
.mcp.jsonin project root (applies to that project)
User-level config takes precedence. If both define "gasoline", the user-level wins silently.
To diagnose:
# Check if gasoline is installed at user levelclaude mcp listTo fix:
- Remove user-level gasoline:
claude mcp remove --scope user gasoline - Or update the user-level config to match your desired settings
- Restart Claude Code to pick up changes
Best practice: Use project-level .mcp.json for Gasoline. This keeps the config with the project and avoids conflicts when working on multiple projects.
MCP Server Shows “Failed”
Section titled “MCP Server Shows “Failed””Symptom: /mcp shows gasoline as “failed” even though the config looks correct.
Common cause: A stale gasoline process is holding the port from a previous session.
To diagnose:
# Check if something is using the portlsof -i :7890To fix:
# Kill the stale processlsof -ti :7890 | xargs killThen retry /mcp — your AI tool will spawn a fresh instance.
MCP Disconnected — Recovery
Section titled “MCP Disconnected — Recovery”When the AI client disconnects (closes its session), Gasoline logs the disconnect and exits after a brief grace period. This is by design — it frees the port so the next AI session can spawn a fresh process.
What you’ll see on stderr:
[gasoline] MCP disconnected, shutting down in 100ms (port 7890 will be freed)[gasoline] Shutdown completeWant to keep the server running? Use --persist:
gasoline-agentic-browser --persistThis keeps the HTTP server running after MCP disconnect so the extension stays connected between AI sessions. Press Ctrl+C to stop.
To recover: Simply start a new AI session. Your AI tool will spawn a fresh Gasoline process automatically. The extension reconnects to the new instance on its next poll.
If port is still in use: A previous Gasoline process may not have exited cleanly. Kill it:
lsof -ti :7890 | xargs killChanging the Server Port
Section titled “Changing the Server Port”If port 7890 is in use:
gasoline-agentic-browser --port 7891Then update the extension:
- Click the Gasoline extension icon
- Click “Options”
- Change Server URL to
http://localhost:7891 - Click “Save Options”
Verifying Your Setup
Section titled “Verifying Your Setup”Run the built-in setup check:
gasoline-agentic-browser --doctorThis verifies port availability, binary version, client configuration, and prints next steps. You can also test from the extension: go to Options and click the Test button next to the Server URL.
Version Mismatch Warning
Section titled “Version Mismatch Warning”Symptom: Extension popup shows a yellow “Version mismatch” banner.
Cause: The extension and server have different major versions.
To fix:
- Update: re-run the installer to get the latest version of both:
Terminal window curl -sSL https://raw.githubusercontent.com/brennhill/gasoline-agentic-browser-devtools-mcp/STABLE/scripts/install.sh | bash - Reload the extension: go to
chrome://extensions, remove the old version, click Load unpacked, select~/GasolineAgenticDevtoolExtension - Both should show the same major version
Minor/patch version differences are fine and won’t trigger the warning.
Using Debug Mode
Section titled “Using Debug Mode”The extension has built-in debug logging for troubleshooting:
- Enable: Open popup → scroll to “Debugging” → toggle “Debug Mode” on
- View logs: With debug mode on, activity appears in the browser console
- Export: Click “Export Debug Log” to download a JSON file
Debug Log Categories
Section titled “Debug Log Categories”| Category | What it captures |
|---|---|
connection | Server connection/disconnection events |
capture | Log capture, filtering, processing |
error | Extension internal errors |
lifecycle | Extension startup/shutdown |
settings | Configuration changes |
The debug buffer holds 200 entries (circular — oldest are dropped). Logs are stored even when debug mode is off, so you can export after an issue occurs.
Reporting Issues
Section titled “Reporting Issues”Open an issue with:
- Environment: OS, Chrome version, Gasoline version
- Steps to reproduce
- Expected vs actual behavior
- Extension popup screenshot
- Debug log export (JSON file from popup)
- Browser console errors (right-click extension → Inspect → Console)
- Server output (any errors from stderr)