Skip to content

Commit 017cd26

Browse files
authored
fix: improve Cursor global MCP setup instructions (#315)
Replace vague "configure in Settings > MCP" message with step-by-step instructions including formatted JSON config that users can copy-paste into Cursor's MCP settings. Closes #288 Co-authored-by: Isaac
1 parent b17b26d commit 017cd26

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

install.ps1

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,8 +1534,19 @@ function Write-McpConfigs {
15341534
}
15351535
"cursor" {
15361536
if ($script:Scope -eq "global") {
1537-
Write-Warn "Cursor global: configure in Settings > MCP"
1538-
Write-Msg " Command: $($script:VenvPython) | Args: $($script:McpEntry)"
1537+
Write-Warn "Cursor global: manual MCP configuration required"
1538+
Write-Msg " 1. Open Cursor -> Settings -> Cursor Settings -> Tools & MCP"
1539+
Write-Msg " 2. Click New MCP Server"
1540+
Write-Msg " 3. Add the following JSON config:"
1541+
Write-Msg " {"
1542+
Write-Msg " `"mcpServers`": {"
1543+
Write-Msg " `"databricks`": {"
1544+
Write-Msg " `"command`": `"$($script:VenvPython)`","
1545+
Write-Msg " `"args`": [`"$($script:McpEntry)`"],"
1546+
Write-Msg " `"env`": {`"DATABRICKS_CONFIG_PROFILE`": `"$($script:Profile)`"}"
1547+
Write-Msg " }"
1548+
Write-Msg " }"
1549+
Write-Msg " }"
15391550
} else {
15401551
Write-McpJson (Join-Path $BaseDir ".cursor\mcp.json")
15411552
Write-Ok "Cursor MCP config"

install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,8 +1435,19 @@ write_mcp_configs() {
14351435
;;
14361436
cursor)
14371437
if [ "$SCOPE" = "global" ]; then
1438-
warn "Cursor global: configure in Settings > MCP"
1439-
msg " Command: $VENV_PYTHON | Args: $MCP_ENTRY"
1438+
warn "Cursor global: manual MCP configuration required"
1439+
msg " 1. Open ${B}Cursor → Settings → Cursor Settings → Tools & MCP${N}"
1440+
msg " 2. Click ${B}New MCP Server${N}"
1441+
msg " 3. Add the following JSON config:"
1442+
msg " {"
1443+
msg " \"mcpServers\": {"
1444+
msg " \"databricks\": {"
1445+
msg " \"command\": \"$VENV_PYTHON\","
1446+
msg " \"args\": [\"$MCP_ENTRY\"],"
1447+
msg " \"env\": {\"DATABRICKS_CONFIG_PROFILE\": \"$PROFILE\"}"
1448+
msg " }"
1449+
msg " }"
1450+
msg " }"
14401451
else
14411452
write_mcp_json "$base_dir/.cursor/mcp.json"
14421453
ok "Cursor MCP config"

0 commit comments

Comments
 (0)