What changed

Microsoft released Azure Cosmos DB Shell in public preview as an open-source, bash-like CLI for database operations with integrated MCP server support and native agentic workflows.

Why it matters

Agents can inspect and manage a database through a consistent command surface instead of ad hoc portal automation, but a database shell is a high-authority tool and MCP exposure expands the credential and prompt-injection boundary.

What to do

Run the shell against a disposable Cosmos DB account with a least-privilege identity, allowlist read-only commands for an MCP client, test a denied write and verify logs, cleanup and credential revocation.

Caveat

This was a public preview, and Microsoft later changed the product on its path to general availability. Command behavior, authentication and MCP support must be checked against the currently installed version.