configure mcp surface vector search and UC functions#163
Open
asujithan wants to merge 1 commit into
Open
Conversation
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.
Fixes issue #152
The
ucode configure mcppicker only surfaced Databricks SQL, external HTTP connections, Genie spaces,system.ai.*UC MCP services, and Databricks Apps. The other two managed MCP servers documented at https://docs.databricks.com/aws/en/generative-ai/mcp/managed-mcp were not discoverable, so users couldn't add them without hand-editing config:/api/2.0/mcp/vector-search/{catalog}/{schema}/api/2.0/mcp/functions/{catalog}/{schema}Changes
databricks.py: addlist_vector_search_catalog_schemas(walks Vector Search endpoints → indexes) andlist_uc_functions_catalog_schemas(walk UC catalogs → schemas → probes each for ≥1 user function).mcp.py: addVECTOR_SEARCH_SELECTION_PREFIX/UC_FUNCTIONS_SELECTION_PREFIX,vector_search_mcp_servers/uc_functions_mcp_serverstransforms,discover_vector_search_mcp_servers/discover_uc_functions_mcp_serverswrappers, plus new branches inbuild_mcp_picker_choicesand_resolve_mcp_selection. New per-(catalog, schema) server names:databricks-vector-search-{catalog}-{schema}anddatabricks-functions-{catalog}-{schema}, slug-normalized with collision suffixes._discover_mcp_sourcenow wraps each call in aspinner(...)so discovery is no longer a silent wait.tests/test_mcp.py: 5 new focused tests covering the transform helpers, picker rendering, and end-to-end registration throughconfigure_mcp_commandfor both new sources.Test Plan
uv run ruff check .clean.uv run pytesteng-ml-inference.staging.cloud.databricks.comand one2-dogfood