Skip to content

A scenario for a forward deployed engineer · Senior and up

The agent needs two outside systems

Vault · Security
Tuesday, 16:20

A customer wants its Databricks agent to open tickets and book repairs in two systems the customer hosts. Each has an MCP server. A developer has put both API tokens in the agent's code to get the demo working.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Register each MCP server in Unity Gateway with a connection, choose the tools to expose, and grant the agent access.

The credentials live in the connection, the agent sees only the tools you chose, and its use is on record.

Why

An external MCP server is registered in Unity Gateway as an MCP service in Unity Catalog, with an HTTP connection that holds its address and credentials. You choose which of its tools are exposed, access is a Unity Catalog permission, and a limit in requests per minute can be set on it.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Move the tokens to a secret scope and keep calling the two systems from the agent's code.
The tokens are out of the code. What the agent may do in each system is still whatever the code does.
A poor call. Leave the tokens in the code. The repo is private.
The next contractor with access to the repo can write to both systems.

The words in this scenario

Secret scope.
A named store for passwords and keys. Code asks for a secret by name, so the value never has to be written in a notebook or a repo. In the docs (opens in a new tab)

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.