Use the manage_workspace MCP tool for all workspace operations. Do NOT edit ~/.databrickscfg, use Bash, or use the Databricks CLI.
Steps
- Call
ToolSearchwith queryselect:mcp__databricks__manage_workspaceto load the tool. - Map user intent to action:
- status / which workspace / current → action="status" - list / available workspaces → action="list" - switch to X → call list first to find the profile name, then action="switch", profile="<name>" (or host="<url>" if a URL was given) - login / connect / authenticate → action="login", host="<url>"
- Call
mcp__databricks__manage_workspacewith the action and any parameters. - Present the result. For
status/switch/login: show host, profile, username. Forlist: formatted table with the active profile marked.
Note: The switch is session-scoped — it resets on MCP server restart. For permanent profile setup, usedatabricks auth login -p <profile>and update~/.databrickscfgwithcluster_idorserverless_compute_id = auto.