Agent skill

mongodb

Manage MongoDB databases via the mongosh tool.

Stars 118
Forks 34

Install this agent skill to your Project

npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/mongodb

Metadata

Additional technical details for this skill

auth
{
    "type": "none"
}
icon
database
config
[
    {
        "name": "MONGODB_URI",
        "type": "string",
        "label": "Connection URI",
        "required": false,
        "placeholder": "mongodb://localhost:27017"
    }
]
version
1.0.0
category
databases
displayName
MongoDB
dependencies
{
    "cli": "mongosh",
    "install": {
        "linux": {
            "apt": "mongodb-mongosh",
            "script": "wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add - && sudo apt install mongodb-mongosh"
        },
        "darwin": {
            "brew": "mongosh"
        },
        "windows": {
            "choco": "mongodb-shell",
            "scoop": "mongosh",
            "winget": "MongoDB.Shell"
        }
    },
    "checkCommand": "mongosh --version"
}

SKILL.md

mongosh

Use mongosh to interact with MongoDB databases.

Common Commands

Connection

  • Connect: mongosh "mongodb://user:password@host:port/dbname"

Operations

  • Show databases: show dbs
  • Use database: use <dbname>
  • Show collections: show collections
  • Find documents: db.collection.find().limit(5)
  • Insert document: db.collection.insertOne({ key: "value" })
  • Quit: exit

Notes

  • Requires mongosh to be installed in the environment.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results