Commit 8ad5a33
authored
feat: MCP server — drop-in Genie MCP replacement (#11)
* feat: MCP server — drop-in replacement for Databricks managed Genie MCP
Adds a Streamable HTTP MCP endpoint at /api/2.0/mcp/genie/{gateway_id}
that mirrors the official Databricks managed MCP. Clients swap the host
and space_id for a gateway_id — same protocol, same tools, same agent
code. Semantic cache and rate-limit queue work transparently underneath.
- backend: mcp_routes.py with JSON-RPC handler (initialize, tools/list, tools/call)
- frontend: MCP reference page with connect info, tools, and code example
- test notebook: OpenAI Agents SDK agent comparing managed vs clone MCP
Closes #5
Co-authored-by: Isaac
* fix: review fixes — race condition lock, parameterize notebook
- Add asyncio.Lock per message_id to prevent concurrent polls from
double-executing SQL against the warehouse
- Replace hardcoded IDs/URLs in test notebook with dbutils.widgets
- Rename secret key from "pat" to "oauth_token" for clarity
Co-authored-by: Isaac
---------
Co-authored-by: lucas-rampimdesouza <lucas.rampim@outlook.com>1 parent 86f4da7 commit 8ad5a33
File tree
7 files changed
+1158
-3
lines changed- backend/app
- api
- frontend/src
- components
- layout
- mcp
7 files changed
+1158
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
216 | 250 | | |
217 | 251 | | |
218 | 252 | | |
| |||
0 commit comments