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
/api/mongo on the same origin.
The repository’s Vite middleware
supports the database listing below for local development.
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>.
- Rendered
- Raw
Virtual Filesystem
VFS Layout
/<path>
- Read
database.jsonfirst to discover entities, andschema.jsonbefore reading a large document stream. head,tail,wc,grep,rgandjqunderstanddocuments.jsonl;grepandrgfetch only the documents that may match.- An unknown size displays as
-;wc -cmeasures bytes andwc -lcounts 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.