## Features

- Find documents
- Run aggregations
- Browse schema

## For AI agents (MCP)

Connect Claude or another MCP client to Levirge DevOps and the agent can work with this plugin directly.

- `find_connection` finds the right connection by name or type.
- `mongo_list_collections` lists collections with field names sampled from their documents.
- `run_mongo_query` runs a find or an aggregation. Reads work for every role; writes need a role that allows them.
- Changes an agent makes are recorded in the audit log as assistant actions.

## Capabilities

- Plain find and aggregate are reads, open to every role.
- Aggregations that write (`$out`, `$merge`) need a write role. In the web UI they also ask for an authenticator code.
- Connects to MongoDB instances devops-client can reach.

## Limits

- Refused aggregation stages: `$collStats`, `$indexStats`, `$currentOp`, `$search` and unknown stages.
- `system.*` collections and the `local` and `config` databases are refused.
- `$where`, `$function` and `$accumulator` are treated as writes, so read-only callers can't use them.
- The web panel doesn't show query results yet.
