DatabricksVolumeVFS exposes files from a Unity Catalog volume through
MIRAGE’s standard filesystem interface. Agents can list, stat, read, stream,
glob, and write files under the configured volume root.
MIRAGE ships it in @struktoai/mirage-node only. The TypeScript client calls
the Databricks Files REST API directly with fetch; the Databricks API does
not allow cross-origin browser requests, so there is no browser runtime.
For auth and environment setup, see Databricks Volume Setup.
Node
Fields marked secret are redacted in snapshots.
Pass
host and token explicitly. Mirage does not discover environment
variables, SDK profiles, or default credentials. An application can read its
environment as shown above or use its own credential broker.
For rotating credentials, pass a callback that returns a token or a promise
of one. Mirage resolves it once for each outbound request, including listing
pages and metadata probes. A stream resolves it when iteration starts. The
provider owns token caching, refresh, and concurrent refresh coordination.
Authentication failures propagate without a fallback or automatic replay.
VFS.md
The VFS.md an agent reads with Databricks Volume mounted at/<path>.
- Rendered
- Raw
root_path: '/reports/2026' and mount prefix /dbx/, the volume path
root_path is normalized before use, and MIRAGE rejects any virtual path that
would escape above that configured subtree.
Supported operations
Reads:readdir, stat, exists, read (streamed whole or a byte range),
and glob resolution. Writes: write, create, mkdir, rmdir, unlink,
recursive rm, cp, and mv.
Standard shell commands like ls, cat, head, tail, grep, rg,
find, tree, touch, mkdir, rm, cp, and mv work through those
primitives. mv/cp are non-atomic download + upload — the Files API has no
server-side rename. A directory mv removes only what it copied: a file or directory written into the source after the copy listed its directory stays there, and mv fails with Directory not empty.
Snapshot behavior
token is redacted in VFS state. A callback is never called or serialized
during a snapshot. Loading the snapshot requires a live VFS override with
fresh credentials.
Example
Seeexamples/typescript/vfs/databricks_volume/databricks_volume.ts, which
mirrors examples/python/vfs/databricks_volume/databricks_volume.py.