Security settings and approvals
SQLEye has three security settings for agents, under Settings → MCP → Security: ask before deleting an instance, ask before downloading an engine, and read-only mode. The first two are on by default and read-only mode is off.
What are the defaults?
Section titled “What are the defaults?”| Setting | Default | Effect |
|---|---|---|
| Ask before deleting an instance | on | delete_instance waits for your approval. “Data goes to the Trash.” |
| Ask before downloading an engine | on | install_engine_version waits for your approval when the version is not yet installed. “Downloads are hundreds of MB.” |
| Read-only mode | off | “Agents can look but not change anything.” |
Settings are saved in mcp.json and apply to the next call.
How does the approval prompt work?
Section titled “How does the approval prompt work?”When an agent calls a tool that needs approval, SQLEye brings its window forward and shows a dialog: “Delete database instance?” or “Download database engine?”, who asked (“Requested by agent over MCP”) and what for. Choose Delete or Download to allow it, or Don’t allow. Closing the dialog counts as not allowing.
If you do not answer within 120 seconds the request is refused. A refused request returns a message to the agent that you declined, nothing is deleted or downloaded, and the activity list marks it as refused. Switching MCP off discards waiting approvals.
An engine that is already installed needs no approval, and neither does any other tool.
What does deleting do?
Section titled “What does deleting do?”delete_instance removes the instance and moves its data directory to the system Trash. On macOS and Linux the data can be recovered from the Trash. On Windows it is moved to the Recycle Bin; this Windows path is implemented but has not yet been tested. SQLEye’s own Delete dialog behaves differently, because it offers to erase the data.
What does read-only mode do?
Section titled “What does read-only mode do?”In read-only mode SQLEye lists only the eight tools that change nothing: list_engine_versions, list_instances, get_connection_string, get_queries, get_query_shapes, get_nplusone_groups, get_connections and explain_query. If an agent calls any other tool anyway it gets an error saying read-only mode is on, and the call is logged as refused.
Note that set_capture is not read-only. With read-only mode on, an agent can read only what capture has already collected. Turn capture on yourself.
What can an agent not do?
Section titled “What can an agent not do?”- Run arbitrary SQL. There is no such tool.
- Reach your databases over the network. Instances listen on
127.0.0.1only, and the MCP endpoint is a local socket or pipe. - Connect as another user. The socket is owner-only and the connecting process must belong to the same user.
- Read your files, settings or other apps.
How is captured SQL treated?
Section titled “How is captured SQL treated?”SQL, shapes and error text in results come from your own application. Tool descriptions state that this text is data, not instructions, and a client should treat it that way. Even so, an agent that reads query text could be influenced by what is in your data, so review what it proposes.
SQL in results is cut at 2 KB and error text at 512 bytes. See the tool reference.
Is anything sent over the internet?
Section titled “Is anything sent over the internet?”SQLEye sends nothing. Your agent may send what it reads to its own provider, according to that agent’s own terms, so check them before letting it read queries from a database that holds real data. See also privacy and data.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.