You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow references from the table: in a collection's tab, a field that references another collection (an id, an array of ids, a DBRef, or a field like customerEmail pointing to a unique field) is underlined on hover. Ctrl/Cmd+click on it, or Open referenced document in its right-click menu, opens the referenced collection filtered on { _id: … }, or on { _id: { $in: [...] } } for an array. Find referencing documents ▸ in a row's menu lists the collections and fields that reference it and opens them filtered on that row's _id. The references are found in the background once per database and session (setting mongoster.references.detect), with the same analysis as the relationship diagram. On a reference cell Ctrl/Cmd+click now follows the link instead of selecting the row. The right-click menus can have submenus.
Saved queries in the project: when saving a query, choose For me (kept by Mongoster, as before) or In the project: one JSON file per query in .mongoster/queries of the workspace folder (setting mongoster.savedQueries.folder), to share the queries with the team and version them with git. The project's queries show in every connection with the same database and collection (or only on the connection named in the file), and update in the open tabs when the files change (a git pull, an edit by hand); invalid files are skipped with a warning. In History, saved queries are marked Me or Project, and ⋯ renames them, moves them between you and the project and opens the file. New command Mongoster: Save Query in the Project…; the MCP tool list_saved_queries lists the project's queries too.
Document history from the oplog: History… in a document's dialog, in the row's right-click menu and on an open document's editor tab shows each write to the document that the oplog still has: insert, update with the fields set and unset, replace, delete, also inside transactions, with the time and who wrote it (a transaction, a retryable write, a chunk migration, or Mongoster itself, from the undo history). Each version is rebuilt with a field-by-field diff against the one before; versions whose old values the oplog doesn't keep are marked partial instead of showing wrong data. Restore this version… puts a document back as it was (or inserts a deleted one again), after a confirmation, with undo and redis-oplog like any other edit. It needs a replica set; the tab says how far back the oplog goes, and Load older reads further back.
Compare Structure: right-click a database → Compare Structure With… (also in the Command Palette) compares the structure of two databases, also on different connections (e.g. development and production before a release): collections and views on one side only, collection options (validation rules, capped, time series, clustered, collation, pre- and post-images, the definition of views), indexes paired by keys and options as well as by name, Atlas Search and Vector Search indexes when both servers have search, and shard keys between two sharded clusters. The tab lists the differences by collection, with both definitions side by side; Copy Script and Open in Playground give a mongosh script that makes the right database like the left one, with the drops commented out, and Apply… makes the changes after a confirmation, for one difference, a collection or all of them. The playground now also runs createSearchIndex, updateSearchIndex, dropSearchIndex and getSearchIndexes.
Scheduled tasks: periodic backups and exports. Show Scheduled Tasks (Command Palette, the connections view's … menu, the app's Tools menu) lists them with the next run, the last result (duration, size, error) and a run log; Schedule… on a connection, a database or a collection opens a new task for it. A task backs up (archive or folder, as Back Up…) or exports a collection (JSON, JSON Lines or CSV, with a filter and a projection) every few hours, daily or on chosen days at a time, into a folder, with a file name pattern ({name}_{date}_{time}) and how many of its files or folders to keep. Run Now, Cancel, enable/disable, Edit. Runs once even with several VS Code windows open; a run missed while Mongoster was closed can run at startup; failures and skipped runs (connection unavailable) notify. In the desktop app, mongoster.scheduledTasks.keepRunningInTray keeps it running in the system tray when the window is closed.
More MCP tools for AI assistants, to debug an application, all read-only:
Writes as they happen and in the recent past: watch_changes follows a collection, a database or the whole deployment with a change stream for a few seconds and returns the changes with a resume token to go on without losing any; write_history reads the oplog, also for one document by _id, with transactions expanded; mongoster_writes and mongoster_write_details list the writes made from Mongoster and the documents as they were before.
Performance: explain_query, slow_queries (profiler or server log, grouped by query shape), current_operations, index_advice and collection_stats.
Deployment: server_status, database_stats, replica_set_status and sharding_status, which say which role is missing when they can't read everything.
Data model and Mongoster's state: count_documents, distinct_values, collection_options, describe_relations, list_saved_queries and redis_oplog_status.
Tabs: open_watch, open_monitor (on a chosen section), open_explain and open_history.
The tools that return documents or field values are offered only with mongoster.mcp.readDocuments on. None of them writes, kills an operation or changes the profiler.
The relationship diagram now calls an array of ids (productIds: [ObjectId(…), …]) a many-to-many relation; it was shown as many-to-one.
An invalid Redis URL is no longer repeated in the error message, where it could show its password.
A connection's color everywhere: the tabs of a colored connection show Mongoster's leaf in its color — collections, monitor, users, watch, global search, index advisor, diagram, GridFS, compare (the color both sides share, or the only one) and the playground result, which now has the colored stripe too. The tabs of its documents and definitions opened in the editor, and of the playgrounds running on it, take the color on their name. In the tree, the databases, collections, views and GridFS buckets below it have their icons in its color and the connection's name takes it too, while the other names keep the usual color. Changing the color applies right away.
In the desktop app the tabs of a colored connection also have a line of its color above them, and the icons in the tree follow the theme when it changes from dark to light.