Repository navigation
[databricks-genie-one] Add Databricks Genie One plugin #754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+182
−0
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
60 changes: 60 additions & 0 deletions
60
third_party/databricks-genie-one/.cursor-plugin/plugin.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| { | ||
| "name": "databricks-genie-one", | ||
| "displayName": "Databricks Genie One", | ||
| "version": "1.0.0", | ||
| "minClientVersions": { | ||
| "cursor": "3.19.0" | ||
| }, | ||
| "description": "Ask Databricks Genie questions about your workspace's data in plain language.", | ||
| "author": { | ||
| "name": "Cursor", | ||
| "email": "plugins@cursor.com" | ||
| }, | ||
| "homepage": "https://github.com/cursor/plugins/tree/main/third_party/databricks-genie-one", | ||
| "repository": "https://github.com/cursor/plugins", | ||
| "license": "MIT", | ||
| "logo": "assets/logo.png", | ||
| "keywords": [ | ||
| "databricks", | ||
| "genie", | ||
| "genie one", | ||
| "data", | ||
| "analytics", | ||
| "sql", | ||
| "lakehouse", | ||
| "mcp" | ||
| ], | ||
| "category": "integrations", | ||
| "tags": [ | ||
| "databricks", | ||
| "data", | ||
| "analytics", | ||
| "mcp" | ||
| ], | ||
| "variables": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "DATABRICKS_HOST", | ||
| "CLIENT_ID" | ||
| ], | ||
| "properties": { | ||
| "DATABRICKS_HOST": { | ||
| "type": "string", | ||
| "title": "Workspace hostname", | ||
| "description": "For example, dbc-a1b2c3d4-e5f6.cloud.databricks.com" | ||
| }, | ||
| "CLIENT_ID": { | ||
| "type": "string", | ||
| "title": "Client ID" | ||
| }, | ||
| "CLIENT_SECRET": { | ||
| "type": "string", | ||
| "title": "Client secret", | ||
| "writeOnly": true, | ||
| "format": "password" | ||
| } | ||
| } | ||
| }, | ||
| "mcpServers": "./mcp.json" | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this plugin will be documented here. | ||
|
|
||
| ## 1.0.0 — initial release | ||
|
|
||
| - Added the `databricks-genie-one` MCP server pointing at `https://${DATABRICKS_HOST}/ai-gateway/mcp-services/system.ai.genie_one_mcp`. | ||
| - Declared `DATABRICKS_HOST`, `CLIENT_ID`, and optional `CLIENT_SECRET` plugin variables for the team's Databricks OAuth app connection, since Databricks has no dynamic client registration. | ||
| - Requests the `ai-gateway` and `offline_access` scopes. | ||
| - Logo: Databricks' official mark, from the `databricks` GitHub organization. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Cursor | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Databricks Genie One | ||
|
|
||
| Cursor plugin that connects agents to [Databricks Genie](https://www.databricks.com/product/business-intelligence/genie) through the Genie One [Model Context Protocol](https://modelcontextprotocol.io/) server on your Databricks workspace. | ||
|
|
||
| Agents ask Genie questions about your workspace's data in plain language, and Genie answers from the data the signed-in user can read. | ||
|
|
||
| ## Install | ||
|
|
||
| 1. A Databricks account admin creates an OAuth app connection (see [Team setup](#team-setup)). | ||
| 2. A Cursor team admin opens **Cursor Settings → Plugins**, searches for **Databricks Genie One**, installs it for the team, and enters the workspace hostname and client. | ||
| 3. Each member signs in to Databricks when Cursor prompts them. | ||
|
|
||
| Or run `/add-plugin databricks-genie-one` in chat. | ||
|
|
||
| ## MCP | ||
|
|
||
| The plugin points at your workspace's Genie One endpoint: | ||
|
|
||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "databricks-genie-one": { | ||
| "type": "http", | ||
| "url": "https://${DATABRICKS_HOST}/ai-gateway/mcp-services/system.ai.genie_one_mcp", | ||
| "auth": { | ||
| "CLIENT_ID": "${CLIENT_ID}", | ||
| "CLIENT_SECRET": "${CLIENT_SECRET:-}", | ||
| "scopes": ["ai-gateway", "offline_access"] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Team setup | ||
|
|
||
| Databricks does not support dynamic client registration, so each team brings its own OAuth app connection. | ||
|
|
||
| ### 1. Create an OAuth app connection in Databricks | ||
|
|
||
| A Databricks account admin opens the account console, goes to **Settings → App connections**, and adds a connection with these redirect URIs: | ||
|
|
||
| - `https://www.cursor.com/agents/mcp/oauth/callback` | ||
| - `http://127.0.0.1:8787/callback` | ||
|
|
||
| Generating a client secret is optional. Without one, the connection is a public client. | ||
|
|
||
| ### 2. Enter the connection in Cursor | ||
|
|
||
| A Cursor team admin fills in: | ||
|
|
||
| | Field | Value | | ||
| | --- | --- | | ||
| | `DATABRICKS_HOST` | Bare workspace hostname, for example `dbc-a1b2c3d4-e5f6.cloud.databricks.com`. Leave out `https://`, any path, and any port. | | ||
| | `CLIENT_ID` | Client ID of the app connection. | | ||
| | `CLIENT_SECRET` | Optional. Client secret of the app connection, if it has one. Stored encrypted and never shown back. | | ||
|
|
||
| ### 3. Members sign in | ||
|
|
||
| Each member signs in to Databricks with their own account. Genie answers only from data that account can read. | ||
|
|
||
| ## Docs | ||
|
|
||
| - Databricks Genie: https://docs.databricks.com/aws/en/genie/ | ||
| - Databricks OAuth app connections: https://docs.databricks.com/aws/en/integrations/enable-disable-oauth | ||
| - Model Context Protocol: https://modelcontextprotocol.io | ||
|
|
||
| Logo is Databricks' official mark, from the `databricks` GitHub organization. | ||
|
|
||
| ## License | ||
|
|
||
| MIT |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "mcpServers": { | ||
| "databricks-genie-one": { | ||
| "type": "http", | ||
| "url": "https://${DATABRICKS_HOST}/ai-gateway/mcp-services/system.ai.genie_one_mcp", | ||
| "auth": { | ||
| "CLIENT_ID": "${CLIENT_ID}", | ||
| "CLIENT_SECRET": "${CLIENT_SECRET:-}", | ||
| "scopes": ["ai-gateway", "offline_access"] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Client version floor is too low
High Severity · Logic Bug
minClientVersions.cursoris3.19.0, copied from Workday, but Workday ships nomcp.json. This plugin publishes a workspace MCP URL, so older desktops run Databricks sign-in locally instead of through Cursor's servers and the connection fails.Reviewed by Cursor Bugbot for commit 74f840e. Configure here.