Skip to content

docs: add CLI mode documentation to Azure MCP Server READMEs#2058

Open
diberry wants to merge 6 commits intomicrosoft:mainfrom
diberry:diberry/cli-mode-readme-updates
Open

docs: add CLI mode documentation to Azure MCP Server READMEs#2058
diberry wants to merge 6 commits intomicrosoft:mainfrom
diberry:diberry/cli-mode-readme-updates

Conversation

@diberry
Copy link
Contributor

@diberry diberry commented Mar 16, 2026

Summary

Adds CLI mode documentation across Azure MCP Server READMEs to highlight that every MCP tool is also available as a direct CLI command via \�zmcp.

Changes

\servers/Azure.Mcp.Server/README.md\

  • Added CLI Mode section under Usage with:
    • Comparison table (MCP server vs CLI mode by scenario)
    • CLI command examples for common Azure services
    • Package manager commands (npx, dnx, uvx)
    • Authentication note
  • Updated Table of Contents with CLI Mode link

\README.md\ (root)

  • Updated Azure MCP description to mention CLI capability for shell-based agents, scripts, and CI/CD

\llms-install.md\

  • Added CLI Mode (Direct Commands) section with:
    • Package manager CLI examples (npx, dnx, uvx)
    • Common CLI commands
    • Authentication note

Positioning

  • MCP server remains the primary recommended mode for IDE-based agents
  • CLI mode is positioned as available for shell-based agents, automation, and CI/CD
  • Consistent with Azure MCP docs on learn.microsoft.com

Add CLI mode section to Azure MCP Server README with usage examples,
comparison table, and package manager commands. Update root README
description to mention CLI capability. Add CLI examples to llms-install.md
for AI agent consumption.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates repository documentation to highlight that Azure MCP Server tools can be invoked directly as CLI commands (without running the MCP server), aimed at shell-based agents and automation/CI usage.

Changes:

  • Added a “CLI Mode” section to the Azure MCP Server README with scenario guidance and command/package-manager examples.
  • Added a “CLI Mode (Direct Commands)” section to llms-install.md with install/run examples.
  • Updated the root README Azure MCP description to mention direct CLI usage via azmcp.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
servers/Azure.Mcp.Server/README.md Adds CLI Mode docs and examples for running commands directly / via package managers.
llms-install.md Adds CLI Mode section with quick-start command examples for npx/dnx/uvx.
README.md Updates the Azure MCP entry to mention direct CLI command capability.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +849 to +852
azmcp storage account list --subscription <subscription-id>

# List Cosmos DB accounts
azmcp cosmos account list --subscription <subscription-id>
azmcp cosmos account list --subscription <subscription-id>

# List Key Vault secrets
azmcp keyvault secret list --subscription <subscription-id> --vault-name <vault-name>
azmcp keyvault secret list --subscription <subscription-id> --vault-name <vault-name>

# List virtual machines
azmcp compute vm list --subscription <subscription-id>
Comment on lines +871 to +877
npx -y @azure/mcp@latest storage account list --subscription <subscription-id>

# .NET (dnx)
dnx Azure.Mcp -- azmcp storage account list --subscription <subscription-id>

# Python (uvx)
uvx --from msmcp-azure azmcp storage account list --subscription <subscription-id>
llms-install.md Outdated
Comment on lines +72 to +80
```bash
# Via npx (Node.js)
npx -y @azure/mcp@latest storage account list --subscription <subscription-id>

# Via dnx (.NET)
dnx Azure.Mcp -- azmcp storage account list --subscription <subscription-id>

# Via uvx (Python)
uvx --from msmcp-azure azmcp storage account list --subscription <subscription-id>
llms-install.md Outdated
Comment on lines +88 to +89
azmcp keyvault secret list --subscription <sub-id> --vault-name <name>
azmcp compute vm list --subscription <sub-id>
diberry and others added 2 commits March 16, 2026 10:35
Squad review caught that npx examples were missing the azmcp command
after the package name. dnx and uvx examples were already correct.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Addresses all 6 Copilot review comments on PR microsoft#2058:
- storage account list → storage account get (lists when --account omitted)
- cosmos account list → cosmos list
- keyvault secret list --vault-name → keyvault secret get --vault
- compute vm list → compute vm get (lists when --vm-name omitted)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry
Copy link
Contributor Author

diberry commented Mar 16, 2026

All CI checks passing (15/15). The Azure MCP Documentation Squad has reviewed this PR — command examples verified against azmcp-commands.md, npx invocations fixed, and positioning aligned with team guidance (CLI-available, not CLI-first).

@jongallant — squad signed off. Ready for your review.

diberry and others added 3 commits March 16, 2026 14:57
- IDE-embedded agents: MCP → Either (shell access via integrated terminal)
- Split framework rows by MCP SDK availability
- Add multi-tenant SaaS, Custom GPT, batch processing rows
- Add Claude Code to terminal agents
- Add azmcp --help for CLI discovery
- Remove vague 'quick one-off queries' row
- Add framing note: same binary, same command tree, same auth

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace 10-row agent pattern table with concise bullets:
CLI (shell access, token-efficient), MCP (SDK, discovery, no shell),
Either (IDE agents).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Existing repo patterns use dnx Azure.Mcp server start without --.
Align CLI examples to match.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@anuchandy
Copy link
Member

Hi @diberry - I heard Jon Gallant is working with you on documenting the CLI. I've tagged @jongio for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

4 participants