@azure/mcp 0.0.9 โ†’ 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/package.json +6 -6
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright 2025 (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,226 @@
1
+ # ๐ŸŒŸ Azure MCP Server
2
+
3
+
4
+ [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_Azure_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D) [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Azure_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D&quality=insiders)
5
+
6
+ The Azure MCP Server implements the [MCP specification](https://modelcontextprotocol.io) to create a seamless connection between AI agents and key Azure services like Azure Storage, Cosmos DB, and more.
7
+
8
+ > Please note that this project is in Public Preview and implementation may significantly change prior to our General Availability.
9
+
10
+ ## ๐ŸŽฏ Overview
11
+
12
+ ### โœจ What can you do with the Azure MCP Server?
13
+
14
+ The Azure MCP Server supercharges your agents with Azure context. Here are some cool prompts you can try:
15
+
16
+ ### ๐Ÿ” Explore Your Azure Resources
17
+
18
+ - "List my Azure storage accounts"
19
+ - "Show me all my Cosmos DB databases"
20
+ - "List my resource groups"
21
+ - "Show me the tables in my Storage account"
22
+ - "List containers in my Cosmos DB database"
23
+ - "Get details about my Storage container"
24
+
25
+ ### ๐Ÿ“Š Query & Analyze
26
+ - "Query my Log Analytics workspace"
27
+
28
+ ### โš™๏ธ Manage Configuration
29
+
30
+ - "List my App Configuration stores"
31
+ - "Show my key-value pairs in App Config"
32
+
33
+ ### ๐Ÿ”ง Advanced Azure Operations
34
+
35
+ - "List my Azure CDN endpoints"
36
+ - "Help me build an Azure application using Node.js"
37
+
38
+ ### ๐Ÿ” How It Works
39
+
40
+ The Azure MCP Server creates a seamless integration between AI agents and Azure services through:
41
+
42
+ - ๐Ÿ”„ Smart JSON communication that AI agents understand
43
+ - ๐Ÿ—๏ธ Natural language commands that get translated to Azure operations
44
+ - ๐Ÿ’ก Intelligent parameter suggestions and auto-completion
45
+ - โšก Consistent error handling that makes sense
46
+
47
+ ## ๐Ÿ› ๏ธ Currently Supported Tools
48
+
49
+ The Azure MCP Server provides tools for interacting with the following Azure services:
50
+
51
+ ### ๐Ÿ“Š Azure Cosmos DB (NoSQL Databases)
52
+ - List Cosmos DB accounts
53
+ - List and query databases
54
+ - Manage containers and items
55
+ - Execute SQL queries against containers
56
+
57
+ ### ๐Ÿ’พ Azure Storage
58
+ - List Storage accounts
59
+ - Manage blob containers and blobs
60
+ - List and query Storage tables
61
+ - Get container properties and metadata
62
+
63
+ ### ๐Ÿ“ˆ Azure Monitor (Log Analytics)
64
+ - List Log Analytics workspaces
65
+ - Query logs using KQL
66
+ - List available tables
67
+ - Configure monitoring options
68
+
69
+ ### โš™๏ธ Azure App Configuration
70
+ - List App Configuration stores
71
+ - Manage key-value pairs
72
+ - Handle labeled configurations
73
+ - Lock/unlock configuration settings
74
+
75
+ ### ๐Ÿ“ฆ Azure Resource Groups
76
+ - List resource groups
77
+ - Resource group management operations
78
+
79
+ ### ๐Ÿ”ง Azure CLI Extension
80
+ - Execute Azure CLI commands directly
81
+ - Support for all Azure CLI functionality
82
+ - JSON output formatting
83
+ - Cross-platform compatibility
84
+
85
+ ### ๐Ÿš€ Azure Developer CLI (azd) Extension
86
+ - Execute Azure Developer CLI commands directly
87
+ - Support for template discovery, template initialization, provisioning and deployment
88
+ - Cross-platform compatibility
89
+
90
+ For detailed command documentation and examples, see [Azure MCP Commands](docs/azmcp-commands.md).
91
+
92
+ ## ๐Ÿ”Œ Getting Started
93
+
94
+ The Azure MCP Server requires Node.js to install and run the server. If you don't have it installed, follow the instructions [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
95
+
96
+ ### VS Code + GitHub Copilot
97
+
98
+ The Azure MCP Server provides Azure data plane tools. It can be used alone or with the [GitHub Copilot for Azure extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azure-github-copilot) in VS Code. If you're interested in broad developer support across a variety of Azure development scenarios not included in the Azure MCP Server, such as searching documentation on Microsoft Learn, we recommend this extension as well.
99
+
100
+ ### Prerequisites
101
+ 1. Install either the stable or Insiders release of VS Code:
102
+ * [๐Ÿ’ซ Stable release](https://code.visualstudio.com/download)
103
+ * [๐Ÿ”ฎ Insiders release](https://code.visualstudio.com/insiders)
104
+ 2. Install the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) and [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extensions
105
+ 3. Open VS Code in an empty folder
106
+
107
+ ### Installation
108
+
109
+ #### โœจ One-Click Install
110
+
111
+ Click one of these buttons to install the Azure MCP Server for VS Code or VS Code Insiders.
112
+
113
+ [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_Azure_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D) [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Azure_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D&quality=insiders)
114
+
115
+ Once you've installed the Azure MCP Server, make sure you select GitHub Copilot Agent Mode and refresh the tools list. To learn more about Agent Mode, visit the [VS Code Documentation](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode).
116
+
117
+ #### ๐Ÿ”ง Manual Install
118
+
119
+ For a step-by-step installation, follow these instructions:
120
+
121
+ 1. Add `.vscode/mcp.json`:
122
+ ```json
123
+ {
124
+ "servers": {
125
+ "Azure MCP Server": {
126
+ "command": "npx",
127
+ "args": [
128
+ "-y",
129
+ "@azure/mcp@latest",
130
+ "server",
131
+ "start"
132
+ ]
133
+ }
134
+ }
135
+ }
136
+ ```
137
+
138
+ ## ๐Ÿงช Test the Azure MCP Server
139
+
140
+ 1. Open GitHub Copilot in VS Code and [switch to Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode)
141
+ 2. You should see the Azure MCP Server in the list of tools
142
+ 3. Try a prompt that tells the agent to use the Azure MCP Server, such as "List my Azure Storage containers"
143
+ 4. The agent should be able to use the Azure MCP Server tools to complete your query
144
+
145
+ ## ๐Ÿค– Custom MCP Clients
146
+
147
+ You can easily configure your MCP client to use the Azure MCP Server. Have your client run the following command and access it via standard IO or SSE.
148
+
149
+ ### Using standard IO
150
+
151
+ Configure the MCP client to execute: `npx -y @azure/mcp@latest server start`. For instructions on using VS Code, follow instructions in [One-Click Install](#-one-click-install) or [Manual Install](#-manual-install).
152
+
153
+ ### Using SSE
154
+
155
+ 1. Open a terminal window and execute: `npx -y @azure/mcp@latest server start --transport sse`
156
+ 2. The server starts up and is hosted at: http://localhost:5008. To use another port, append `--port {YOUR-PORT-NUMBER}`.
157
+ 3. Open your MCP client and add the SSE configuration value. This may differ between MCP clients. In VS Code, it will look like:
158
+ ```json
159
+ {
160
+ "servers": {
161
+ "Azure MCP Server": {
162
+ "type": "sse",
163
+ "url": "http://localhost:5008/sse"
164
+ }
165
+ }
166
+ }
167
+ ```
168
+
169
+
170
+ More end-to-end MCP client/agent guides are coming soon!
171
+
172
+ ## ๐Ÿ“ Troubleshooting
173
+
174
+ See [Troubleshooting guide](/TROUBLESHOOTING.md) for help with common issues and logging.
175
+
176
+ ## ๐Ÿ”‘ Authentication
177
+
178
+ The Azure MCP Server seamlessly integrates with your host operating system's authentication mechanisms, making it super easy to get started! We use Azure Identity under the hood via [`DefaultAzureCredential`](https://learn.microsoft.com/dotnet/azure/sdk/authentication/credential-chains?tabs=dac), which tries these credentials in order:
179
+
180
+ 1. **Environment Variables** (`EnvironmentCredential`) - Perfect for CI/CD pipelines
181
+ 2. **Shared Token Cache** (`SharedTokenCacheCredential`) - Uses cached tokens from other tools
182
+ 3. **Visual Studio** (`VisualStudioCredential`) - Uses your Visual Studio credentials
183
+ 4. **Azure CLI** (`AzureCliCredential`) - Uses your existing Azure CLI login
184
+ 5. **Azure PowerShell** (`AzurePowerShellCredential`) - Uses your Az PowerShell login
185
+ 6. **Azure Developer CLI** (`AzureDeveloperCliCredential`) - Uses your azd login
186
+ 7. **Interactive Browser** (`InteractiveBrowserCredential`) - Falls back to browser-based login if needed
187
+
188
+ If you're already logged in through any of these methods, the Azure MCP Server will automatically use those credentials.
189
+
190
+ If you're running into any issues with authentication, visit our [troubleshooting guide](/TROUBLESHOOTING.md).
191
+
192
+ ### Production Credentials
193
+
194
+ By default, the Azure MCP Server excludes production credentials like Managed Identity and Workload Identity. To enable these credentials, set the environment variable:
195
+
196
+ ```
197
+ AZURE_MCP_INCLUDE_PRODUCTION_CREDENTIALS=true
198
+ ```
199
+
200
+ This is useful when running on Azure services where you want to use managed identities.
201
+
202
+ ## ๐Ÿ›ก๏ธ Security Note
203
+
204
+ Your credentials are always handled securely through the official [Azure Identity SDK](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) - **we never store or manage tokens directly**.
205
+
206
+ MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Azure MCP Server, but any MCP client/agent that you choose to implement down to the model provider.
207
+
208
+ ## ๐Ÿ‘ฅ Contributing
209
+
210
+ We welcome contributions to the Azure MCP Server! Whether you're fixing bugs, adding new features, or improving documentation, your contributions are welcome.
211
+
212
+ Please read our [Contributing Guide](/CONTRIBUTING.md) for guidelines on:
213
+
214
+ - ๐Ÿ› ๏ธ Setting up your development environment
215
+ - โœจ Adding new commands
216
+ - ๐Ÿ“ Code style and testing requirements
217
+ - ๐Ÿ”„ Making pull requests
218
+
219
+ ## ๐Ÿค Code of Conduct
220
+
221
+ This project has adopted the
222
+ [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
223
+ For more information, see the
224
+ [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
225
+ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
226
+ with any additional questions or comments.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/mcp",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Azure MCP Server - Model Context Protocol implementation for Azure",
5
5
  "author": "Microsoft Corporation",
6
6
  "homepage": "https://github.com/Azure/azure-mcp#readme",
@@ -33,10 +33,10 @@
33
33
  "arm64"
34
34
  ],
35
35
  "optionalDependencies": {
36
- "@azure/mcp-darwin-x64": "0.0.9",
37
- "@azure/mcp-darwin-arm64": "0.0.9",
38
- "@azure/mcp-win32-x64": "0.0.9",
39
- "@azure/mcp-linux-x64": "0.0.9",
40
- "@azure/mcp-win32-arm64": "0.0.9"
36
+ "@azure/mcp-darwin-x64": "0.0.10",
37
+ "@azure/mcp-darwin-arm64": "0.0.10",
38
+ "@azure/mcp-win32-x64": "0.0.10",
39
+ "@azure/mcp-linux-x64": "0.0.10",
40
+ "@azure/mcp-win32-arm64": "0.0.10"
41
41
  }
42
42
  }