Skip to main content
MongoDBVFS exposes databases containing collections/ and views/ directories. Each collection or view contains schema.json and documents.jsonl. Setup steps for the connection URI live at MongoDB Credentials.

Node

Browser

The browser VFS sends HTTP requests to a backend route, which keeps the MongoDB connection URI on the server. This example expects /api/mongo on the same origin. The repository’s Vite middleware supports the database listing below for local development.
The development proxy does not yet support document streaming or schema reads.

Config

Fields marked secret are redacted in snapshots.

Mount mode

read. For the database/collection/document layout see the Python MongoDB docs.

VFS.md

The VFS.md an agent reads with MongoDB mounted at /<path>.

Virtual Filesystem

VFS Layout

/<path>
  • Read database.json first to discover entities, and schema.json before reading a large document stream.
  • head, tail, wc, grep, rg and jq understand documents.jsonl; grep and rg fetch only the documents that may match.
  • An unknown size displays as -; wc -c measures bytes and wc -l counts documents on demand. These counts may scan the collection.

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.

Integration

What MongoDB answers through its own API, so fewer files are read. Integration explains each command. The Python MongoDB docs list when each search answers and what it can miss.