DS

databricks-solutions/databricks-exec-code-mcp

Data science & ML

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

14 stars 7 forks 품질 59 트렌드 9NOASSERTION

이 템플릿은 MCP 서버를 통해 Databricks Command Execution API를 활용함으로써 Databricks의 AI 보조 개발이 가능합니다.

개요

이 템플릿은 MCP 서버를 통해 Databricks Command Execution API를 활용함으로써 Databricks의 AI 보조 개발이 가능합니다. 클러스터에서 직접 테스트 코드, 다음 Databricks Asset Bundles (DABs)로 배포합니다. - ✅ Databricks 클러스터에 직접 실행 및 테스트 코드 - ✅ 자동 선택 클러스터 - 클러스터 ID를 지정할 필요가 없습니다 - ✅ Create and deploy Databricks Asset Bundles (DABs) - ✅ Natural language prompts의 모든! 기계에 MCP 서버를 어딘가로 설정: Databricks workspace → Profile → Settings → Developer → Access Token → 새로운 토큰 생성 프로젝트 디렉토리를 만들고 Databricks 기술을 설치하십시오. 이 생성: - : Databricks 규칙을 가진 .cursor/rules/ -: Databricks 기술을 가진 .claude/skills/ 단계 1에서 설정한 MCP 서버에 AI 클라이언트를 포인트하십시오. — 프로젝트에서 .cursor/mcp.json을 만듭니다:

개요(AI 번역)

Databricks MCP 코드 실행 템플릿

이 템플릿은 MCP 서버를 통해 Databricks Command Execution API를 활용함으로써 Databricks의 AI 보조 개발이 가능합니다. 클러스터에서 직접 테스트 코드, 다음 Databricks Asset Bundles (DABs)로 배포합니다.

This 이 것

  • ✅ Databricks 클러스터에 직접 실행 및 테스트 코드
  • ✅ 자동 선택 클러스터 - 클러스터 ID를 지정할 필요가 없습니다.
  • ✅ Databricks Asset 번들 생성 및 배포 (DAB)
  • ✅ 모든 자연 언어 프롬프트에서!

**Just가 원하는 것을 설명합니다. → AI 빌드, Databricks의 코드를 테스트하고 완전한 파이프라인을 배포합니다. **


##♨ 퀵 스타트 (추천 워크 플로우)

단계 1: MCP 서버를 설치하십시오 (1 시간)

기계에 MCP 서버를 어딘가로 설정:

단계 2: Databricks Credentials 구성

~/.zshrc 또는 ~/.bashrc에 추가:

변수가 로드된 것을 확인합니다:

₢ 킹

개인 액세스 토큰(PAT): Databricks workspace → Profile → Settings → Developer → Access Token → 새로운 토큰 생성

단계 3: 새로운 프로젝트 시작

프로젝트 디렉토리를 만들고 Databricks 기술을 설치하십시오.

이 생성:

  • Cursor: .cursor/rules/ Databricks 규칙

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Databricks MCP Code Execution Template

This template enables AI-assisted development in Databricks by leveraging the Databricks Command Execution API through an MCP server. Test code directly on clusters, then deploy with Databricks Asset Bundles (DABs).

🎯 What This Does

  • ✅ Run and test code directly on Databricks clusters
  • ✅ Auto-select clusters - no need to specify a cluster ID
  • ✅ Create and deploy Databricks Asset Bundles (DABs)
  • ✅ All from natural language prompts!

Just describe what you want → AI builds, tests the code on Databricks, and deploys the complete pipeline.


Step 1: Set Up the MCP Server (One Time)

Clone and set up the MCP server somewhere on your machine:

git clone https://github.com/databricks-solutions/databricks-exec-code-mcp.git
cd databricks-exec-code-mcp
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Step 2: Configure Databricks Credentials

Add to your ~/.zshrc or ~/.bashrc:

export DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
export DATABRICKS_TOKEN=dapi_your_token_here

Make sure the variables are loaded:

source ~/.zshrc

To get your Personal Access Token (PAT): Databricks workspace → Profile → Settings → Developer → Access Tokens → Generate new token

Step 3: Start a New Project

Create your project directory and install the Databricks skills:

# Create and enter your project
mkdir my-databricks-project && cd my-databricks-project

# Initialize git in your my-databricks-project project
git init .

# Install skills for your AI client (downloads from remote)
curl -sSL https://raw.githubusercontent.com/databricks-solutions/databricks-exec-code-mcp/main/install_skills.sh | bash -s -- --cursor
# Or for Claude Code:
curl -sSL https://raw.githubusercontent.com/databricks-solutions/databricks-exec-code-mcp/main/install_skills.sh | bash -s -- --claude
# Or for both:
curl -sSL https://raw.githubusercontent.com/databricks-solutions/databricks-exec-code-mcp/main/install_skills.sh | bash -s -- --all

This creates:

  • Cursor: .cursor/rules/ with Databricks rules
  • Claude Code: .claude/skills/ with Databricks skills

Step 4: Configure Your AI Client

Point your AI client to the MCP server you set up in Step 1.

For Cursor — create .cursor/mcp.json in your project:

{
  "mcpServers": {
    "databricks": {
      "command": "/path/to/databricks-exec-code-mcp/.venv/bin/python",
      "args": ["/path/to/databricks-exec-code-mcp/mcp_tools/tools.py"]
    }
  }
}

For Claude Code — run in your project:

claude mcp add-json databricks '{"command":"/path/to/databricks-exec-code-mcp/.venv/bin/python","args":["/path/to/databricks-exec-code-mcp/mcp_tools/tools.py"]}'

Replace /path/to/databricks-exec-code-mcp with the actual path from Step 1.

Step 5: Start Prompting!

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "databricks": { "command": "/path/to/databricks-exec-code-mcp/.venv/bin/python", "args": ["/path/to/databricks-exec-code-mcp/mcp_tools/tools.py"] } } }