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
15 changes: 13 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1523,8 +1523,19 @@ function Write-McpConfigs {
}
"cursor" {
if ($script:Scope -eq "global") {
Write-Warn "Cursor global: configure in Settings > MCP"
Write-Msg " Command: $($script:VenvPython) | Args: $($script:McpEntry)"
Write-Warn "Cursor global: manual MCP configuration required"
Write-Msg " 1. Open Cursor -> Settings -> Cursor Settings -> Tools & MCP"
Write-Msg " 2. Click New MCP Server"
Write-Msg " 3. Add the following JSON config:"
Write-Msg " {"
Write-Msg " `"mcpServers`": {"
Write-Msg " `"databricks`": {"
Write-Msg " `"command`": `"$($script:VenvPython)`","
Write-Msg " `"args`": [`"$($script:McpEntry)`"],"
Write-Msg " `"env`": {`"DATABRICKS_CONFIG_PROFILE`": `"$($script:Profile)`"}"
Write-Msg " }"
Write-Msg " }"
Write-Msg " }"
} else {
Write-McpJson (Join-Path $BaseDir ".cursor\mcp.json")
Write-Ok "Cursor MCP config"
Expand Down
15 changes: 13 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,19 @@ write_mcp_configs() {
;;
cursor)
if [ "$SCOPE" = "global" ]; then
warn "Cursor global: configure in Settings > MCP"
msg " Command: $VENV_PYTHON | Args: $MCP_ENTRY"
warn "Cursor global: manual MCP configuration required"
msg " 1. Open ${B}Cursor → Settings → Cursor Settings → Tools & MCP${N}"
msg " 2. Click ${B}New MCP Server${N}"
msg " 3. Add the following JSON config:"
msg " {"
msg " \"mcpServers\": {"
msg " \"databricks\": {"
msg " \"command\": \"$VENV_PYTHON\","
msg " \"args\": [\"$MCP_ENTRY\"],"
msg " \"env\": {\"DATABRICKS_CONFIG_PROFILE\": \"$PROFILE\"}"
msg " }"
msg " }"
msg " }"
else
write_mcp_json "$base_dir/.cursor/mcp.json"
ok "Cursor MCP config"
Expand Down