Troubleshooting
Common issues and fixes for DBVision startup, target database connections, and MCP OAuth clients.
MCP and OAuth
| Symptom | Cause and fix |
|---|---|
401 on POST /mcp | Expected before sign-in. If sign-in never completes, ensure BETTER_AUTH_URL matches the exact origin the client uses (<BETTER_AUTH_URL>/mcp). |
405 on GET /mcp | Expected. Use Streamable HTTP (POST /mcp). |
403 with Forbidden | The request hostname or Origin header differs from BETTER_AUTH_URL. Forward the public host through your reverse proxy. |
Client cannot find /mcp or OAuth metadata | BETTER_AUTH_URL is unset. Set it and restart DBVision. |
Startup fails with BETTER_AUTH_URL must be an origin... | Remove any path, query string, fragment, or credentials from BETTER_AUTH_URL. |
Client registration fails with 429 | Dynamic client registration is limited to five requests per minute per instance. Wait for Retry-After. |
data-mode-forbids-rows | The connection is set to Schema only. Update its AI data mode if you want to share rows. |
connection-not-found | Check the connection ID with list_connections and verify the client has a grant for that connection in Settings → MCP clients. |
Target databases
- SQLite disabled or path rejected: Ensure
DBVISION_SQLITE_DIRpoints to an existing directory and the target file stays inside it without symlinks escaping the root. - SQL Server write-capable login refused: Use a dedicated read-only login instead of
saor write-capable roles. - SQL Server decimal range error in SQL editor: Cast wide decimals to
varcharin yourSELECTquery.