Skip to content

Conversation

@nisha2003
Copy link
Contributor

@nisha2003 nisha2003 commented Dec 8, 2025

Introduces two new class methods that make it easier to create MCP server connections for Unity Catalog functions and vector search indexes without manually constructing URLs.

Tested manually via Databricks notebooks:
for langchain
for openai
for agents sdk

@nisha2003 nisha2003 changed the title Add from_uc_path classmethod for Unity Catalog path support Add UC function + VS index constructors for MCP adapters Dec 8, 2025
@nisha2003 nisha2003 requested a review from bbqiu December 10, 2025 00:24
Copy link
Contributor

@aravind-segu aravind-segu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@bbqiu bbqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great! happy to approve after we add an agents example as well

)

@classmethod
def from_uc_function(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some docstrings to these functions?

including some sample usage with and without the multiserver mcp client would be helpful!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added w/ + w/o multiserver for the six constructors added!

result = await Runner.run(agent, user_messages)
return result
Using with DatabricksMultiServerMCPClient to manage multiple servers:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we have a multi mcp client for the openai agents sdk, only langchain sorry

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm ok. I saw some multi mcp client usage here: notebook by aravind. Is this deprecated/am I missing smth?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think it made it to master unless i'm missing something: https://github.com/search?q=repo:databricks/databricks-ai-bridge%20DatabricksMultiServerMCPClient&type=code

@aravind-segu i believe we ended up not shipping this for openai agents right? but it is something that we should do in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah gotcha ok -- I can remove that example

@nisha2003 nisha2003 requested a review from bbqiu December 15, 2025 19:54
Copy link
Collaborator

@bbqiu bbqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! feel free to merge after adding type hints

index_name: str = None,
workspace_client: WorkspaceClient = None,
**kwargs,
):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we add type hints

@nisha2003
Copy link
Contributor Author

jenkins merge

@nisha2003 nisha2003 merged commit 9bf0eb7 into main Dec 16, 2025
17 checks passed
@nisha2003 nisha2003 deleted the add-uc-path-constructors branch December 16, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants