Troubleshooting
Connection Issues
Section titled “Connection Issues””Chrome Extension is not connected”
Section titled “”Chrome Extension is not connected””Symptom: Running tools from Claude returns “Extension not connected” error
Solutions:
-
Verify MCP server is running
Terminal window cd /Users/indo/code/project/phantom-agent/mcp-servernpm start -
Check extension installation
- Go to
chrome://extensions/and verify BrowseHand is enabled
- Go to
-
Check browser console
- Open any page, press F12 → Console tab
- Look for
[BrowseHand] ✅ Connected to MCP servermessage
-
Reload extension
- Go to
chrome://extensions/and click BrowseHand’s refresh button
- Go to
”Receiving end does not exist” error
Section titled “”Receiving end does not exist” error”Symptom: Console shows “Could not establish connection. Receiving end does not exist”
Cause: Tab was refreshed or extension restarted, breaking the connection
Solution:
- Refresh the current tab (F5 or Cmd+R)
- Click the extension icon for guidance message
Server Issues
Section titled “Server Issues”Port 8765 already in use
Section titled “Port 8765 already in use”Symptom: “EADDRINUSE” error when starting server
Solution:
# Kill existing processlsof -ti:8765 | xargs kill -9
# Restartcd /Users/indo/code/project/phantom-agent/mcp-servernpm startMCP server not recognized by Claude Desktop
Section titled “MCP server not recognized by Claude Desktop”Symptom: BrowseHand tools not visible in Claude Desktop
Solutions:
-
Check config file
Terminal window cat ~/Library/Application\ Support/Claude/claude_desktop_config.json -
Verify JSON syntax — Check for proper commas, quotes, etc.
-
Verify path — Ensure
/Users/indo/code/project/phantom-agent/mcp-server/index.jsexists -
Fully restart Claude Desktop
- Menu bar → Claude → Quit Claude
- Relaunch
Tool Execution Issues
Section titled “Tool Execution Issues””Element not found”
Section titled “”Element not found””Symptom: click_element, wait_for_element, etc. cannot find the element
Solutions:
-
Wait for page load
First use wait_for_element to wait for the element to appear -
Verify selector
- Open Developer Tools (F12) and verify the selector
- Test in Console:
document.querySelector("your_selector")
-
Watch for dynamic class names
- Some sites (Google Maps, etc.) change class names per build
- Use
execute_scriptto analyze page structure first
CSV file not created
Section titled “CSV file not created”Symptom: save_to_csv runs but no file appears
Solutions:
-
Check MCP server logs — Look for error messages in terminal
-
Verify save path
- Default location:
/Users/indo/code/project/phantom-agent/ - You can specify absolute path for filename
- Default location:
-
Check data
- Empty array won’t create a file
- Verify
extract_structured_dataresults first
Scrolling Issues
Section titled “Scrolling Issues”Only the entire page scrolls on Google Maps
Section titled “Only the entire page scrolls on Google Maps”Symptom: The map scrolls instead of the sidebar list
Solution:
Use the selector option in scroll_page:
Use scroll_page to scroll only the div[role="feed"] area downwardInfinite scroll not working
Section titled “Infinite scroll not working”Symptom: Scrolling doesn’t load new data
Solutions:
-
Wait after scrolling
After scroll_page, use wait_for_element to wait about 2 seconds for new items -
Verify scroll target
- Ensure you’re targeting the correct scrollable container
- Look for elements with
overflow: autooroverflow: scrollstyle
Icon Warnings
Section titled “Icon Warnings”Symptom: Extension shows icon-related warnings
Note: Missing icons don’t affect functionality — everything works normally.
To remove warnings, copy any PNG images to the chrome-extension/ folder:
cd /Users/indo/code/project/phantom-agent/chrome-extension# Need 16x16, 48x48, 128x128 PNG filesGetting Help
Section titled “Getting Help”If the above solutions don’t resolve your issue:
- Copy MCP server logs from terminal
- Copy browser console logs (F12 → Console)
- Document reproduction steps
Submit with this information to GitHub Issues.