How databricks-solutions/ai-dev-kit works
1. What this repo is
- databricks-ai-dev-kit is a multi-package toolkit for building Databricks-focused AI assistance.
- It is organized around four user-facing surfaces: a reusable Python library, an MCP tool server, a curated skill/content library, and a full-stack builder app.
2. Core abstraction layer: databricks-tools-core/
- This is the main Python SDK-style layer and the lowest common dependency for the rest of the repo.
- It groups Databricks capabilities into domains such as SQL, Jobs, Unity Catalog, Compute, Serving, Vector Search, Lakebase, Apps, and Agent Bricks.
- The library encapsulates authentication, client setup, and higher-level operations so higher layers do not talk to raw Databricks APIs directly.
3. Execution boundary: databricks-mcp-server/
- This package exposes Databricks operations as MCP tools for AI assistants.
- Tool modules mirror Databricks domains: compute, jobs, SQL, Unity Catalog, serving, vector search, workspace/file operations, PDFs, pipelines, Genie, apps, and dashboards.
- The server is the action layer: assistants call these tools, which in turn delegate to the core library and Databricks services.
4. Knowledge layer: databricks-skills/ and .claude/skills/
- This is the content layer, not code execution.
- Each skill is a markdown-based guidance package covering a Databricks topic or workflow, such as Spark Declarative Pipelines, model serving, Unity Catalog, SQL, jobs, and vector search.
- Installation scripts copy these skills into assistant-specific directories so the model has durable project context and best practices.
5. Visual builder product: databricks-builder-app/
- This is a separate full-stack application for interacting with Databricks development workflows through a chat/UI experience.
- Backend: FastAPI app with routers for projects, skills, conversations, clusters, warehouses, config, and agent orchestration.
- Frontend: React + Vite + TypeScript UI with layout, context, and page components.
- Persistence: SQLAlchemy/Alembic-managed database schema, with migrations for projects, backups, cluster IDs, warehouse/workspace metadata, and executions.
6. Builder app data flow
- UI actions call the FastAPI backend.
- The backend orchestrates Databricks-facing services such as agent execution, cluster/warehouse management, skill management, backups, and prompt generation.
- The app stores project and conversation state in its database and uses Databricks resources as external execution targets.
7. Test and evaluation platform: .test/
- This is a substantial harness for validating skills, tool selection, traces, and generated answers.
- It contains baseline scenarios, manifests, expected responses, evaluation criteria, scorers, optimization pipelines, and integration tests.
- The test package is effectively a meta-system for measuring assistant quality against Databricks-specific tasks.
8. Evaluation architecture inside .test/src/skill_test/
- The package is split into subsystems for runners, optimization, scorers, trace processing, agent execution, and CLI commands.
- It supports routing evaluation, trace evaluation, regression checks, and prompt/skill optimization workflows.
- Inputs are skill manifests, traces, and candidate responses; outputs are scores, diagnostics, and generated artifacts.
9. Installation and packaging surfaces
- install.sh and install.ps1 are the primary repo-level entry points for installing the kit into an assistant environment.
- .claude-plugin/ and hooks/ contain integration metadata for packaging the repo as an assistant plugin or hookable workflow.
- The repo is designed to be consumable in multiple modes: skills-only, MCP-only, core library only, or full builder app.
10. CI and validation
- GitHub Actions and validation scripts enforce consistency of skills, manifests, tests, and packaging.
- The CI surface is focused on keeping the skill content, evaluation baselines, and tool definitions aligned as the repo evolves.
- This matters architecturally because the repo is not just code; it is a distributed product composed of runtime services, assistant guidance, and evaluation assets.
Main entry points: databricks-tools-core Tools core · server Backend API · skill_test Eval engine · .test Test harness
Components 22
User surfaces
Primary entry points and consumable surfaces for the kit.
- MCP server · Assistant-facing execution boundary exposing Databricks actions as MCP tools.
databricks-mcp-server - Tool modules · Domain-aligned tool implementations for compute, jobs, SQL, UC, serving, search, files, PDFs, pipelines, Genie, apps, and dashboards.
databricks-mcp-server/databricks_mcp_server/tools
Core runtime
Shared SDK layer and its execution-facing packages.
- Tools core · Shared Databricks client and domain abstractions used by higher layers.
databricks-tools-core - Auth & client · Authentication, identity, and client setup for Databricks access.
databricks-tools-core/databricks_tools_core/auth.py - SQL domain · SQL execution, warehouses, and related helpers.
databricks-tools-core/databricks_tools_core/sql/sql.py - Catalog domain · Unity Catalog operations for tables, grants, volumes, storage, and governance.
databricks-tools-core/databricks_tools_core/unity_catalog - Compute domain · Cluster and serverless compute management and execution utilities.
databricks-tools-core/databricks_tools_core/compute - Serving & search · Model serving endpoints and vector search operations.
databricks-tools-core/databricks_tools_core/serving - Jobs & Lakebase · Jobs/runs plus Lakebase catalogs, instances, autoscale, and synced tables.
databricks-tools-core/databricks_tools_core/jobs
Builder app
Full-stack chat/UI application and its backend/data layer.
- Builder app · FastAPI plus React application for Databricks workflow interaction.
databricks-builder-app - Backend API · Routers and orchestration services for projects, skills, conversations, clusters, warehouses, and agents.
databricks-builder-app/server - DB layer · SQLAlchemy models and Alembic schema history for persisted app state.
databricks-builder-app/server/db - Frontend UI · Vite/TypeScript interface with layout, contexts, pages, and API client.
databricks-builder-app/client/src
Skill content
Markdown skill packs and installation targets.
- Skills library · Curated Databricks skill packs used as durable assistant context.
databricks-skills - Claude skills · Installed skill copies for Claude-specific assistant contexts.
.claude/skills
Evaluation
Test harness, baselines, and scoring/optimization workflows.
- Test harness · Meta-system for validating skills, tool selection, traces, and generated answers.
.test - Eval engine · Runners, scorers, trace processing, optimization, and CLI workflows.
.test/src/skill_test - Baselines & manifests · Skill manifests, ground truth, baselines, and expected responses used by the harness.
.test/skills
Packaging & CI
Repository-level installation, plugin, hook, and validation surfaces.
- Install scripts · Repo-level installer entry points for assistant environments.
install.sh - Plugin & hooks · Assistant plugin configuration and hook integration metadata.
.claude-plugin - CI checks · Automation that validates skill content, manifests, and repo consistency.
.github/workflows/ci.yml
Other components
- Repo · Databricks AI dev kit organized into runtime, content, app, and evaluation surfaces.
Connections 31
- Repo → Tools core: includes · Root repo contains the shared SDK layer.
- Repo → MCP server: includes · Root repo contains the MCP action surface.
- Repo → Builder app: includes · Root repo contains the full-stack builder app.
- Repo → Skills library: includes · Root repo contains curated skill content.
- Repo → Test harness: includes · Root repo contains the evaluation platform.
- Repo → Install scripts: ships · Root repo provides installer entry points.
- Repo → Plugin & hooks: packages · Root repo includes plugin and hook metadata.
- Tools core → Auth & client: bootstraps · Client and auth setup underpin all domains.
- Tools core → SQL domain: provides · Shared SQL domain operations.
- Tools core → Catalog domain: provides · Shared Unity Catalog operations.
- Tools core → Compute domain: provides · Shared compute execution and management.
- Tools core → Serving & search: provides · Shared serving and vector search operations.
- Tools core → Jobs & Lakebase: provides · Shared jobs and Lakebase operations.
- MCP server → Tool modules: exposes · Server surfaces domain tools for assistants.
- Tool modules → Tools core: delegates · Tool handlers call into the shared Databricks core.
- Builder app → Backend API: contains · App includes the backend API.
- Builder app → Frontend UI: contains · App includes the browser UI.
- Backend API → DB layer: persists to · Backend stores state through ORM and migrations.
- Backend API → Tools core: uses · Backend reuses shared Databricks operations.
- Backend API → MCP server: orchestrates · Backend can coordinate assistant/tool execution patterns.
- Frontend UI → Backend API: calls · UI actions flow through the API.
- Skills library → Claude skills: installs into · Skill packs are copied into assistant skill directories.
- Test harness → Eval engine: implements · Harness code lives in the skill_test package.
- Test harness → Baselines & manifests: drives · Harness consumes manifests and ground truth artifacts.
- Eval engine → Tools core: evaluates · Evaluation workflows can exercise shared Databricks operations.
- Eval engine → MCP server: evaluates · Tool selection and trace tests target the MCP layer.
- Eval engine → Skills library: uses · Optimization and scoring workflows use skill content.
- Install scripts → Plugin & hooks: supports · Install scripts prepare assistant packaging surfaces.
- CI checks → Skills library: checks · CI validates skill content and manifests.
- CI checks → Test harness: checks · CI keeps evaluation assets and workflows consistent.
- CI checks → Plugin & hooks: checks · CI validates packaging metadata.