Marketplace for the askcosmosemu Claude Code plugin
npx claudepluginhub sponsorrockit1/askcosmosemuRead-only skill for agents to verify and query a local Azure Cosmos DB emulator
A Claude Code plugin that gives AI agents a read-only tool to verify and query a local Azure Cosmos DB Emulator.
Use it to confirm databases, containers, and documents exist after agents write data — without risking any modifications.
/plugin install https://github.com/sponsorrockit1/askcosmosemu
dotnet --version should show 10.xSet one of the following in your project's .env or .env.local (gitignored):
Option A — Connection string:
COSMOS_CONNECTION_STRING=AccountEndpoint=https://<host>:8081/;AccountKey=<key>
Option B — Endpoint + key file:
COSMOS_ENDPOINT=https://<host>:8081/
COSMOS_KEY_FILE=C:\path\to\emulator.key
Option C — Endpoint + inline key:
COSMOS_ENDPOINT=https://<host>:8081/
COSMOS_KEY=<base64-encoded-key>
The script reads .env and .env.local from the current working directory automatically — no need to export env vars manually.
Ask your agent to run any of these:
/askcosmosemu verify
/askcosmosemu verify db=mydb
/askcosmosemu verify db=mydb cont=mycontainer
/askcosmosemu query db=mydb cont=mycontainer sql="SELECT * FROM c" limit=5
Or directly in bash:
SCRIPT=$(find "$USERPROFILE/.claude" -name "askcosmosemu.cs" | head -1)
dotnet run "$SCRIPT" verify
dotnet run "$SCRIPT" verify --db mydb
dotnet run "$SCRIPT" verify --db mydb --cont mycontainer
dotnet run "$SCRIPT" query --db mydb --cont mycontainer --sql "SELECT * FROM c" --limit 5
All output is JSON on stdout. Exit code 0 = success, non-zero = failure.
// verify success
{"status":"ok","endpoint":"https://localhost:8081/","latency_ms":42}
// verify db+container success
{"status":"ok","endpoint":"https://localhost:8081/","database":"mydb","container":"mycontainer","latency_ms":18}
// any failure
{"status":"error","message":"Database 'mydb' not found"}
// query results
[{"id":"1","name":"foo"},{"id":"2","name":"bar"}]
.env parser handles KEY=value, KEY="value", and KEY='value' but not multiline values or shell variable expansion.MIT