﻿---
title: "Databricks ug mcp add"
filename: "terminal"
canonical: /templates/ug-mcp-add-codex/
---

# Databricks ug mcp add

安装 unity-gateway 后运行 ug mcp add --agents codex。连接使用 ug mcp-proxy stdio 桥，通过 ug codex 启动。

```
uv tool install git+https://github.com/databricks/unity-gateway
databricks auth login
ug mcp add --agents codex --services CATALOG.SCHEMA.SERVICE
ug codex

# 只加不删。configure mcp 会整表替换：
# ug mcp add --services uc-functions:main.tools
# ug mcp add --services system.ai.slack

# 不要：
# ucode 当已经改名后的唯一命令（它只是别名）
# npx mcp-remote https://WORKSPACE/api/2.0/mcp/functions/...
# codex mcp login
# 把 PAT 写进 http_headers
# ug configure mcp 当「再加一台」

```
