Skip to Content
DBVision

Troubleshooting

Common issues and fixes for DBVision startup, target database connections, and MCP OAuth clients.

MCP and OAuth

SymptomCause and fix
401 on POST /mcpExpected 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 /mcpExpected. Use Streamable HTTP (POST /mcp).
403 with ForbiddenThe request hostname or Origin header differs from BETTER_AUTH_URL. Forward the public host through your reverse proxy.
Client cannot find /mcp or OAuth metadataBETTER_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 429Dynamic client registration is limited to five requests per minute per instance. Wait for Retry-After.
data-mode-forbids-rowsThe connection is set to Schema only. Update its AI data mode if you want to share rows.
connection-not-foundCheck 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_DIR points 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 sa or write-capable roles.
  • SQL Server decimal range error in SQL editor: Cast wide decimals to varchar in your SELECT query.

On this page