Skip to content

Troubleshooting

  1. Check server is running: Look for [gasoline] vX.Y.Z — HTTP on port 7890 on stderr
  2. Check extension badge: Red ! means disconnected, green means connected
  3. Check port conflict: Another process may be using port 7890. Try --port 7891
  4. Update extension URL: If using a different port, go to Options and change the Server URL
  5. Check browser console: Right-click extension icon → Inspect → Console tab
  1. Check capture level: Popup may be set to “Errors Only” — try “All Logs”
  2. Check domain filter: Options page may have filters excluding your domain
  3. Reload the page: Extension injects on page load — navigate or refresh
  1. Check config path: Must be in your AI tool’s config directory
  2. Restart your AI tool: MCP servers are loaded on startup
  3. Check for JSON errors: Invalid JSON in config will silently fail
  4. Verify with AI: Ask “What MCP tools do you have?” — Gasoline tools should appear

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.json in project root (applies to that project)

User-level config takes precedence. If both define "gasoline", the user-level wins silently.

To diagnose:

Terminal window
# Check if gasoline is installed at user level
claude mcp list

To fix:

  1. Remove user-level gasoline: claude mcp remove --scope user gasoline
  2. Or update the user-level config to match your desired settings
  3. 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.

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:

Terminal window
# Check if something is using the port
lsof -i :7890

To fix:

Terminal window
# Kill the stale process
lsof -ti :7890 | xargs kill

Then retry /mcp — your AI tool will spawn a fresh instance.

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 complete

Want to keep the server running? Use --persist:

Terminal window
gasoline-agentic-browser --persist

This 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:

Terminal window
lsof -ti :7890 | xargs kill

If port 7890 is in use:

Terminal window
gasoline-agentic-browser --port 7891

Then update the extension:

  1. Click the Gasoline extension icon
  2. Click “Options”
  3. Change Server URL to http://localhost:7891
  4. Click “Save Options”

Run the built-in setup check:

Terminal window
gasoline-agentic-browser --doctor

This 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.

Symptom: Extension popup shows a yellow “Version mismatch” banner.

Cause: The extension and server have different major versions.

To fix:

  1. 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
  2. Reload the extension: go to chrome://extensions, remove the old version, click Load unpacked, select ~/GasolineAgenticDevtoolExtension
  3. Both should show the same major version

Minor/patch version differences are fine and won’t trigger the warning.

The extension has built-in debug logging for troubleshooting:

  1. Enable: Open popup → scroll to “Debugging” → toggle “Debug Mode” on
  2. View logs: With debug mode on, activity appears in the browser console
  3. Export: Click “Export Debug Log” to download a JSON file
CategoryWhat it captures
connectionServer connection/disconnection events
captureLog capture, filtering, processing
errorExtension internal errors
lifecycleExtension startup/shutdown
settingsConfiguration 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.

Open an issue with:

  1. Environment: OS, Chrome version, Gasoline version
  2. Steps to reproduce
  3. Expected vs actual behavior
  4. Extension popup screenshot
  5. Debug log export (JSON file from popup)
  6. Browser console errors (right-click extension → Inspect → Console)
  7. Server output (any errors from stderr)