source ~/bin/ai-keys
echo $DATABRICKS_PAT
databricks configure --token --host https://dbc-f1002050-7c6a.cloud.databricks.com在VS代码中配置:
{
"servers": {
"databricks-unity-catalog": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"/Users/ceposta/python/databricks-mcp",
"run",
"unitycatalog-mcp",
"-s",
"samples.bakehouse",
"-g",
"01f0c67c0cda1eb5b34096d638d3be44"
]
}
}
}确保获取精灵ID:
01f0c67c0cda1eb5b34096d638d3be44副驾驶提示:
Can you list available Genies?Using the Genie tools, start a conversation about the bakehouse sales dataUsing your tools from databricks-unity-catalog show me the first 10 rows from the sales_customers table in samples.bakehouse从MCP检查器连接:
客户ID=bc212229-5f19-40c4-ac05-e02a3dbfe3a2
