cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Custom MCP for Genie via Apps

cybertheory
New Contributor

I wanted to create a custom MCP to help Genie generate some code - its a simple API call

I had everything set up - the app, the secrets, everything was deployed

But Genie won't connect, and when I try to add "On Behalf of User Authorization" roles it doesn't save to the App. 

I fear this is why Genie won't connect?

Please help

1 REPLY 1

Lu_Wang_ENB_DBX
Databricks Employee
Databricks Employee

Check these:

First, make sure you're adding the authorization roles through the App's settings in the workspace where Genie will actually use it, not just where you developed it. The roles need to be set in the target workspace.

Second, try refreshing the app after adding the roles. Sometimes there's a delay in the UI updating, but the roles might actually be saved even if they don't appear immediately.

If the roles still won't stick, you might need to redeploy the app entirely. I've seen cases where the authorization configuration gets locked during deployment and won't update until you do a fresh deploy.

Also double-check that your app's authentication endpoint is responding correctly to Genie's auth requests. You can test this by hitting your app's auth endpoint directly to see if it's working as expected.

The MCP connection in Genie is pretty sensitive to auth issues, so if the "On Behalf of User" roles aren't properly configured, it'll just fail silently without much helpful error messaging.