# Troubleshoot MCP and agent setup

> Fix "SQLEye is not reachable", a row that says Not installed, tools missing in read-only mode, refused approvals and server errors in SQLEye's MCP setup.

Source: https://sqleye.com/docs/ai-agents/troubleshooting/ · Last updated: 2026-11-29 · Publisher: CodeROG (https://coderog.com)

Most problems come down to the MCP server being off, SQLEye not running or the agent not having been restarted. Work through the questions below.

## What does "SQLEye is not reachable" mean?

It means the `sqleye-mcp` helper could not connect to the SQLEye app, so every request from the agent is answered with an error. The full message is "SQLEye is not reachable (reason). Open SQLEye and turn on Settings → MCP → Enable MCP server."

Check these in order:

1. **Is the MCP server on?** Open **Settings → MCP** and switch on **Enable MCP server**. While it is off there is no socket to connect to.
2. **Is SQLEye running?** The helper tries to open SQLEye itself and waits up to 8 seconds. If SQLEye is slow to start, restart the agent once SQLEye is open.
3. **Does the status say Running?** If it says Error, see the question about server errors below.
4. **Was the helper started with a custom endpoint?** If the environment variable `SQLEYE_MCP_ENDPOINT` is set, the helper uses that endpoint and never launches SQLEye.
5. **Is the socket yours?** The helper refuses a socket that belongs to another user.

The reason in brackets is the system's error text, for example about a missing file, or "no app data directory".

## Why does a row say "Not installed"?

SQLEye did not find the agent: its command is not on the PATH SQLEye searches, its config folder does not exist and, on macOS, its app is not in `/Applications` or `~/Applications`. SQLEye never creates configuration for an agent it cannot find. Start the agent once so it creates its config folder, or use [Manual Setup](/docs/ai-agents/manual-setup/). The list of checks is on the [setup](/docs/ai-agents/setup/#what-does-each-row-show) page.

## Why does adding fail with "The sqleye-mcp helper was not found next to the app"?

SQLEye looks for the `sqleye-mcp` helper in the same folder as its own executable and could not find it, so the app is incomplete. Reinstall SQLEye. Manual Setup shows the same problem as "The sqleye-mcp helper was not found next to the app."

## Why does Claude Code say the command was not found?

The Claude Code setup runs the `claude` command, and SQLEye could not find it. The message is "The `claude` command was not found; use Manual Setup." Run the `claude mcp add-json` command from the [Claude Code page](/docs/ai-agents/agents/claude-code/) in a terminal instead.

## Why does the agent not show any SQLEye tools?

Most agents read their MCP config only at start, so restart the agent after adding SQLEye. If the tools are still missing, check that **Read-only mode** is off (it hides every tool that changes anything, leaving 8 of 16), that the server is Running and that the agent's own MCP list shows `sqleye`.

## Why was my call refused?

Three things refuse a call: read-only mode (the agent is told it is on), a declined approval, and an approval that timed out after 120 seconds. In each case nothing is changed and the call appears in **Recent activity** as refused. Ask the agent to try again and answer the dialog in SQLEye. See [security and approvals](/docs/ai-agents/security/).

## Why do query tools return nothing?

Capture is off or no query has run since it was turned on. `get_queries` then returns a note saying so. Call `set_capture` with `enabled: true` (not available in read-only mode), run your app and read again. See [capture](/docs/live-eye/capture/) and [an empty Live Eye stream](/docs/troubleshooting/no-queries-showing/).

## What do server errors in Settings mean?

The status line shows the reason the MCP server could not start. Two have their own messages: the socket path is too long (Unix socket paths are limited to about 100 bytes, so a long app data path can fail) and "another SQLEye instance is already serving MCP" (close the other SQLEye). Switch the server off and on again after fixing the cause.

## What if the agent's config file could not be edited?

SQLEye stops and shows an error that names the file, usually because a JSON file is not valid, and writes nothing. Fix or move the file and try again, or edit it yourself with the [manual config](/docs/ai-agents/manual-setup/). Before any change SQLEye keeps a copy named `<file>.sqleye-backup` next to the file, so you can restore the previous version.

## How do I remove SQLEye from an agent?

Press **Remove** in **Client Setup**. It deletes only the `sqleye` entry. To undo it by hand, delete that entry from the agent's config file, or for Claude Code run `claude mcp remove sqleye --scope user`.
