Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Databricks AI Dev Kit - Unified Installer (Windows)
#
# Installs skills, MCP server, and configuration for Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Gemini CLI, Antigravity, and Windsurf.
# Installs skills, MCP server, and configuration for Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Gemini CLI, Antigravity, Windsurf, OpenCode, and Kiro.
#
# Usage: irm https://raw.githubusercontent.com/databricks-solutions/ai-dev-kit/main/install.ps1 -OutFile install.ps1
# .\install.ps1 [OPTIONS]
Expand Down Expand Up @@ -235,7 +235,7 @@ while ($i -lt $args.Count) {
Write-Host " --mcp-only Skip skills installation"
Write-Host " --mcp-path PATH Path to MCP server installation"
Write-Host " --silent Silent mode (no output except errors)"
Write-Host " --tools LIST Comma-separated: claude,cursor,copilot,codex,gemini,antigravity,windsurf,opencode"
Write-Host " --tools LIST Comma-separated: claude,cursor,copilot,codex,gemini,antigravity,windsurf,opencode,kiro"
Write-Host " --skills-profile LIST Comma-separated profiles: all,data-engineer,analyst,ai-ml-engineer,app-developer"
Write-Host " --skills LIST Comma-separated skill names to install (overrides profile)"
Write-Host " --list-skills List available skills and profiles, then exit"
Expand Down Expand Up @@ -576,6 +576,8 @@ function Invoke-DetectTools {
$hasWindsurf = ($null -ne (Get-Command windsurf -ErrorAction SilentlyContinue)) -or
(Test-Path "$env:LOCALAPPDATA\Programs\Windsurf\Windsurf.exe")
$hasOpencode = $null -ne (Get-Command opencode -ErrorAction SilentlyContinue)
$hasKiro = ($null -ne (Get-Command kiro -ErrorAction SilentlyContinue)) -or
(Test-Path "$env:LOCALAPPDATA\Programs\Kiro\Kiro.exe")

$claudeState = $hasClaude; $claudeHint = if ($hasClaude) { "detected" } else { "not found" }
$cursorState = $hasCursor; $cursorHint = if ($hasCursor) { "detected" } else { "not found" }
Expand All @@ -585,9 +587,10 @@ function Invoke-DetectTools {
$antigravityState = $hasAntigravity; $antigravityHint = if ($hasAntigravity) { "detected" } else { "not found" }
$windsurfState = $hasWindsurf; $windsurfHint = if ($hasWindsurf) { "detected" } else { "not found" }
$opencodeState = $hasOpencode; $opencodeHint = if ($hasOpencode) { "detected" } else { "not found" }
$kiroState = $hasKiro; $kiroHint = if ($hasKiro) { "detected" } else { "not found" }

# If nothing detected, default to claude
if (-not $hasClaude -and -not $hasCursor -and -not $hasCodex -and -not $hasCopilot -and -not $hasGemini -and -not $hasAntigravity -and -not $hasWindsurf -and -not $hasOpencode) {
if (-not $hasClaude -and -not $hasCursor -and -not $hasCodex -and -not $hasCopilot -and -not $hasGemini -and -not $hasAntigravity -and -not $hasWindsurf -and -not $hasOpencode -and -not $hasKiro) {
$claudeState = $true
$claudeHint = "default"
}
Expand All @@ -606,6 +609,7 @@ function Invoke-DetectTools {
@{ Label = "Antigravity"; Value = "antigravity"; State = $antigravityState; Hint = $antigravityHint }
@{ Label = "Windsurf"; Value = "windsurf"; State = $windsurfState; Hint = $windsurfHint }
@{ Label = "OpenCode"; Value = "opencode"; State = $opencodeState; Hint = $opencodeHint }
@{ Label = "Kiro"; Value = "kiro"; State = $kiroState; Hint = $kiroHint }
)

$result = Select-Checkbox -Items $items
Expand Down Expand Up @@ -1189,6 +1193,13 @@ function Install-Skills {
$dirs += Join-Path $BaseDir ".opencode\skills"
}
}
"kiro" {
if ($script:Scope -eq "global") {
$dirs += Join-Path $env:USERPROFILE ".kiro\skills"
} else {
$dirs += Join-Path $BaseDir ".kiro\skills"
}
}
}
}
$dirs = $dirs | Select-Object -Unique
Expand Down Expand Up @@ -1689,6 +1700,16 @@ function Write-McpConfigs {
}
Write-Ok "OpenCode MCP config"
}
"kiro" {
if ($script:Scope -eq "global") {
$kiroSettings = Join-Path $env:USERPROFILE ".kiro\settings"
} else {
$kiroSettings = Join-Path $BaseDir ".kiro\settings"
}
if (-not (Test-Path $kiroSettings)) { New-Item -ItemType Directory -Path $kiroSettings -Force | Out-Null }
Write-McpJson (Join-Path $kiroSettings "mcp.json")
Write-Ok "Kiro MCP config"
}
}
}
}
Expand Down Expand Up @@ -1755,6 +1776,10 @@ function Show-Summary {
Write-Msg "$step. Launch OpenCode in your project: opencode"
$step++
}
if ($script:Tools -match 'kiro') {
Write-Msg "$step. Open your project in Kiro to use Databricks skills and MCP tools"
$step++
}
Write-Msg "$step. Open your project in your tool of choice"
$step++
Write-Msg "$step. Try: `"List my SQL warehouses`""
Expand Down
36 changes: 31 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Databricks AI Dev Kit - Unified Installer
#
# Installs skills, MCP server, and configuration for Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Gemini CLI, Antigravity, and Windsurf.
# Installs skills, MCP server, and configuration for Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Gemini CLI, Antigravity, Windsurf, OpenCode, and Kiro.
#
# Usage: bash <(curl -sL https://raw.githubusercontent.com/databricks-solutions/ai-dev-kit/main/install.sh) [OPTIONS]
#
Expand Down Expand Up @@ -151,7 +151,7 @@ while [ $# -gt 0 ]; do
echo " --mcp-only Skip skills installation"
echo " --mcp-path PATH Path to MCP server installation (default: ~/.ai-dev-kit)"
echo " --silent Silent mode (no output except errors)"
echo " --tools LIST Comma-separated: claude,cursor,copilot,codex,gemini,antigravity,windsurf,opencode"
echo " --tools LIST Comma-separated: claude,cursor,copilot,codex,gemini,antigravity,windsurf,opencode,kiro"
echo " --skills-profile LIST Comma-separated profiles: all,data-engineer,analyst,ai-ml-engineer,app-developer"
echo " --skills LIST Comma-separated skill names to install (overrides profile)"
echo " --list-skills List available skills and profiles, then exit"
Expand Down Expand Up @@ -519,6 +519,7 @@ detect_tools() {
local has_antigravity=false
local has_windsurf=false
local has_opencode=false
local has_kiro=false

command -v claude >/dev/null 2>&1 && has_claude=true
{ [ -d "/Applications/Cursor.app" ] || command -v cursor >/dev/null 2>&1; } && has_cursor=true
Expand All @@ -528,10 +529,11 @@ detect_tools() {
{ [ -d "/Applications/Antigravity.app" ] || command -v antigravity >/dev/null 2>&1; } && has_antigravity=true
{ [ -d "/Applications/Windsurf.app" ] || command -v windsurf >/dev/null 2>&1; } && has_windsurf=true
command -v opencode >/dev/null 2>&1 && has_opencode=true
{ [ -d "/Applications/Kiro.app" ] || command -v kiro >/dev/null 2>&1; } && has_kiro=true

# Build checkbox items: "Label|value|on_or_off|hint"
local claude_state="off" cursor_state="off" codex_state="off" copilot_state="off" gemini_state="off" antigravity_state="off" windsurf_state="off" opencode_state="off"
local claude_hint="not found" cursor_hint="not found" codex_hint="not found" copilot_hint="not found" gemini_hint="not found" antigravity_hint="not found" windsurf_hint="not found" opencode_hint="not found"
local claude_state="off" cursor_state="off" codex_state="off" copilot_state="off" gemini_state="off" antigravity_state="off" windsurf_state="off" opencode_state="off" kiro_state="off"
local claude_hint="not found" cursor_hint="not found" codex_hint="not found" copilot_hint="not found" gemini_hint="not found" antigravity_hint="not found" windsurf_hint="not found" opencode_hint="not found" kiro_hint="not found"
[ "$has_claude" = true ] && claude_state="on" && claude_hint="detected"
[ "$has_cursor" = true ] && cursor_state="on" && cursor_hint="detected"
[ "$has_codex" = true ] && codex_state="on" && codex_hint="detected"
Expand All @@ -540,9 +542,10 @@ detect_tools() {
[ "$has_antigravity" = true ] && antigravity_state="on" && antigravity_hint="detected"
[ "$has_windsurf" = true ] && windsurf_state="on" && windsurf_hint="detected"
[ "$has_opencode" = true ] && opencode_state="on" && opencode_hint="detected"
[ "$has_kiro" = true ] && kiro_state="on" && kiro_hint="detected"

# If nothing detected, pre-select claude as default
if [ "$has_claude" = false ] && [ "$has_cursor" = false ] && [ "$has_codex" = false ] && [ "$has_copilot" = false ] && [ "$has_gemini" = false ] && [ "$has_antigravity" = false ] && [ "$has_windsurf" = false ] && [ "$has_opencode" = false ]; then
if [ "$has_claude" = false ] && [ "$has_cursor" = false ] && [ "$has_codex" = false ] && [ "$has_copilot" = false ] && [ "$has_gemini" = false ] && [ "$has_antigravity" = false ] && [ "$has_windsurf" = false ] && [ "$has_opencode" = false ] && [ "$has_kiro" = false ]; then
claude_state="on"
claude_hint="default"
fi
Expand All @@ -561,6 +564,7 @@ detect_tools() {
"Antigravity|antigravity|${antigravity_state}|${antigravity_hint}" \
"Windsurf|windsurf|${windsurf_state}|${windsurf_hint}" \
"OpenCode|opencode|${opencode_state}|${opencode_hint}" \
"Kiro|kiro|${kiro_state}|${kiro_hint}" \
)
else
# Silent: use detected defaults
Expand All @@ -573,6 +577,7 @@ detect_tools() {
[ "$has_antigravity" = true ] && tools="${tools:+$tools }antigravity"
[ "$has_windsurf" = true ] && tools="${tools:+$tools }windsurf"
[ "$has_opencode" = true ] && tools="${tools:+$tools }opencode"
[ "$has_kiro" = true ] && tools="${tools:+$tools }kiro"
[ -z "$tools" ] && tools="claude"
TOOLS="$tools"
fi
Expand Down Expand Up @@ -1134,6 +1139,13 @@ install_skills() {
dirs+=("$base_dir/.opencode/skills")
fi
;;
kiro)
if [ "$SCOPE" = "global" ]; then
dirs+=("$HOME/.kiro/skills")
else
dirs+=("$base_dir/.kiro/skills")
fi
;;
esac
done

Expand Down Expand Up @@ -1588,6 +1600,16 @@ write_mcp_configs() {
fi
ok "OpenCode MCP config"
;;
kiro)
if [ "$SCOPE" = "global" ]; then
mkdir -p "$HOME/.kiro/settings"
write_mcp_json "$HOME/.kiro/settings/mcp.json"
else
mkdir -p "$base_dir/.kiro/settings"
write_mcp_json "$base_dir/.kiro/settings/mcp.json"
fi
ok "Kiro MCP config"
;;
esac
done
}
Expand Down Expand Up @@ -1644,6 +1666,10 @@ summary() {
msg "${step}. Launch OpenCode in your project: ${B}opencode${N}"
step=$((step + 1))
fi
if echo "$TOOLS" | grep -q kiro; then
msg "${step}. Open your project in Kiro to use Databricks skills and MCP tools"
step=$((step + 1))
fi
msg "${step}. Open your project in your tool of choice"
step=$((step + 1))
msg "${step}. Try: \"List my SQL warehouses\""
Expand Down