{
  "markdown": "# AMG skills\n\nAgent plugin for [Azure Managed Grafana](https://learn.microsoft.com/en-us/azure/managed-grafana/) — health checks, cost analysis, and diagnostics for Azure resources via the built-in AMG-MCP server. Ships in two formats from one repo: **Claude Code** and **GitHub Copilot** (VS Code + CLI).\n\n## Prerequisites\n\n- An **Azure Managed Grafana** instance with the [MCP server enabled](https://learn.microsoft.com/en-us/azure/managed-grafana/grafana-mcp-server)\n- One of the supported clients below (Claude Code, VS Code with GitHub Copilot, or GitHub Copilot CLI)\n\nYour Grafana MCP endpoint: `https://<your-grafana-endpoint>/api/azure-mcp`\n\n## Available Skills\n\n| Skill | Command | Description |\n|---|---|---|\n| PostgreSQL Flex | `/amg-check-pg-flex 7d` | Fleet-wide health check for Azure PostgreSQL Flexible Servers |\n| Cosmos DB MongoDB | `/amg-check-cosmosdb-mongo-ru 7d` | Health check for Cosmos DB for MongoDB (RU) accounts |\n| Storage Account | `/amg-check-storage-account 7d` | Health check for Azure Storage Accounts |\n| Key Vault | `/amg-check-key-vault 7d` | Health check for Azure Key Vaults |\n| Azure Spend | `/amg-check-azure-spend` | Monthly cost analysis for Azure subscriptions |\n\n---\n\n## Claude Code\n\nBearer-token auth. Requires a [Grafana service account token](https://learn.microsoft.com/en-us/azure/managed-grafana/how-to-service-accounts) or Entra ID token.\n\n### Install\n\nSet the env vars first:\n\n```bash\nexport AMG_MCP_URL=\"https://<your-grafana-endpoint>/api/azure-mcp\"\nexport AMG_MCP_TOKEN=\"<your-service-account-token>\"\n```\n\nThen add the marketplace and install the plugin:\n\n```\n/plugin marketplace add Azure/amg-skills\n/plugin install amg-toolkit@amg-skills\n```\n\n### Update\n\n```\n/plugin marketplace update amg-skills\n/plugin install amg-toolkit@amg-skills\n```\n\nUpdates are manual — Claude Code detects them by comparing the `version` field in `marketplace.json` against the installed version. Verify the installed version with:\n\n```\n/plugin list\n```\n\n### Uninstall\n\n```\n/plugin uninstall amg-toolkit@amg-skills\n```\n\nAdd `--keep-data` to preserve saved configuration and reports.\n\n---\n\n## GitHub Copilot CLI\n\nOAuth auto-login. No token required — `copilot` opens a browser for you to sign in to the AMG-MCP server once on first use.\n\n### Install\n\nSet the endpoint (URL only — no token):\n\n```bash\nexport AMG_MCP_URL=\"https://<your-grafana-endpoint>/api/azure-mcp\"\n```\n\nThen:\n\n```\ncopilot plugin marketplace add Azure/amg-skills\ncopilot plugin install amg-toolkit@amg-skills\n```\n\n> **Known issue**: [github/copilot-cli#2709](https://github.com/github/copilot-cli/issues/2709) can prevent the plugin's `.mcp.json` from being auto-merged into `~/.copilot/mcp-config.json`. If `/mcp show amg` returns nothing after install, register the server manually using one of these two fallbacks.\n>\n> **Fallback A — interactive `/mcp add`** (inside a `copilot` session):\n>\n> ```\n> /mcp add\n> ```\n>\n> Fill in the prompts:\n>\n> | Prompt | Value |\n> |---|---|\n> | Server Name | `amg` |\n> | Server Type | `HTTP` |\n> | URL | `https://<your-grafana-endpoint>/api/azure-mcp` |\n> | HTTP Headers | *(leave empty — OAuth handles auth)* |\n> | Tools | `*` *(or press Enter for all)* |\n>\n> Press `Ctrl+S` to save.\n>\n> **Fallback B — edit `~/.copilot/mcp-config.json` directly**:\n>\n> ```json\n> {\n>   \"mcpServers\": {\n>     \"amg\": {\n>       \"type\": \"http\",\n>       \"url\": \"https://<your-grafana-endpoint>/api/azure-mcp\",\n>       \"headers\": {},\n>       \"tools\": [\"*\"]\n>     }\n>   }\n> }\n> ```\n>\n> Verify with `/mcp show amg` afterward.\n\n### Update\n\n```\ncopilot plugin marketplace update amg-skills\ncopilot plugin install amg-toolkit@amg-skills\n```\n\nUpdates are manual — Copilot detects them by comparing the `version` field in `marketplace.json` against the installed version. Verify the installed version with:\n\n```\ncopilot plugin list\n```\n\n### Uninstall\n\n```\ncopilot plugin uninstall amg-toolkit@amg-skills\n```\n\n---\n\n## GitHub Copilot in VS Code\n\nOAuth auto-login. No token required — VS Code opens a browser for you to sign in to the AMG-MCP server once on first use; the session is cached thereafter.\n\n### Install\n\nSet the endpoint (URL only — no token):\n\n```bash\nexport AMG_MCP_URL=\"https://<your-grafana-endpoint>/api/azure-mcp\"\n```\n\nThen open VS Code, launch the **Chat Customizations** editor, go to **Marketplace**, search for `amg-toolkit`, and click **Install**. VS Code will prompt you to sign in to AMG-MCP on first skill invocation.\n\nAlternatively, run the Copilot CLI commands (see above) from the VS Code integrated terminal.\n\n### Update\n\nIn the Chat Customizations editor, open the installed plugins list and click **Update** next to `amg-toolkit`. Or use the Copilot CLI `update` commands from a terminal.\n\n### Uninstall\n\nIn the Chat Customizations editor, open the installed plugins list and click **Uninstall**. Or use the Copilot CLI `uninstall` command from a terminal.\n\n---\n\n## How It Works\n\nEach skill queries Azure resources through the AMG-MCP (Model Context Protocol) server built into Azure Managed Grafana. Skills follow a phased workflow:\n\n1. **Validate datasource** — confirm Azure Monitor datasource\n2. **Discover resources** — inventory via Azure Resource Graph\n3. **Tier 1 scan** — key metrics across the entire fleet\n4. **Tier 2 deep dive** — detailed investigation of abnormal resources\n5. **Report** — findings with known issue cross-reference\n\nOn first run, each skill auto-discovers the Azure Monitor datasource UID and prompts for the subscription ID(s) to scan. Configuration is saved to `memory/<skill-name>/config.md`.\n\n## License\n\nSee [LICENSE](LICENSE).\n",
  "bytes": 5603,
  "sha": "5575bacc4585530c66f8f57ba4c34d08939db4c0a65802d9c163bdad2580fb00",
  "repo_slug": "azure/amg-skills",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_azure_amg_skills_amg_toolkit_62795023/readme"
}