Add Lakeview dashboard CRUD + Publish tools to UC server#48
Open
priyal-c wants to merge 1 commit into
Open
Conversation
Mural (customer) asked whether the managed Databricks SQL MCP server supports dashboard creation. It doesn't — only execute_sql, execute_sql_read_only, and poll_sql_result are exposed. The managed server is closed-source and not extensible. This adds 8 Lakeview tools to the open-source UC server as the community workaround: - lakeview_list_dashboards - lakeview_get_dashboard - lakeview_create_dashboard - lakeview_update_dashboard - lakeview_delete_dashboard - lakeview_publish_dashboard - lakeview_unpublish_dashboard - lakeview_get_published_dashboard Tools use WorkspaceClient().lakeview SDK methods and follow the same BaseTool/factory pattern as genie.py and vector_search.py. Enabled by default via `enable_lakeview` CLI setting (opt-out with --enable-lakeview false). Co-authored-by: Isaac
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorkspaceClient().lakeviewSDK methods, follows existingBaseTool/ factory pattern (same asgenie.py,vector_search.py)enable_lakeviewCLI setting (default:True), opt-out with--enable-lakeview falseWorkspaceClientMotivation
Customer (Mural) asked whether the managed Databricks SQL MCP server supports dashboard creation. It doesn't — only
execute_sql,execute_sql_read_only, andpoll_sql_resultare exposed, and the managed server is closed-source. This gives the community a way to manage AI/BI dashboards via MCP using the open-source UC server.Tools Added
lakeview_list_dashboardslakeview_get_dashboardlakeview_create_dashboardlakeview_update_dashboardlakeview_delete_dashboardlakeview_publish_dashboardlakeview_unpublish_dashboardlakeview_get_published_dashboardTest plan
make lintpasses (black --check + ruff check)uv run pytest tests/— 42 tests pass (18 new + 24 existing)tools/listMCP call includes lakeview tools via stdioThis pull request and its description were written by Isaac.