You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package manager installation offers several advantages over IDE-specific setup, including centralized dependency management, CI/CD integration, support for headless/server environments, version control, and project portability.
100
107
101
108
Install Azure MCP Server via a package manager:
102
109
@@ -118,40 +125,50 @@ npm install -g @azure/mcp
118
125
119
126
### Docker
120
127
121
-
Microsoft publishes an official Azure MCP Server Docker container on the [Microsoft Artifact Registry](https://mcr.microsoft.com/artifact/mar/azure-sdk/azure-mcp).
128
+
Pull the Docker image: [mcr.microsoft.com/azure-sdk/azure-mcp](https://mcr.microsoft.com/artifact/mar/azure-sdk/azure-mcp).
129
+
130
+
```bash
131
+
docker pull mcr.microsoft.com/azure-sdk/azure-mcp
132
+
```
122
133
123
134
<details>
124
-
<summary>Docker setup instructions</summary>
135
+
<summary>Docker instructions</summary>
136
+
137
+
#### Create an env file with Azure credentials
125
138
126
139
1. Create a `.env` file with Azure credentials ([see EnvironmentCredential options](https://learn.microsoft.com/dotnet/api/azure.identity.environmentcredential)):
127
140
128
141
```bash
129
-
AZURE_TENANT_ID={YOUR_AZURE_TENANT_ID}
130
-
AZURE_CLIENT_ID={YOUR_AZURE_CLIENT_ID}
131
-
AZURE_CLIENT_SECRET={YOUR_AZURE_CLIENT_SECRET}
142
+
AZURE_TENANT_ID={YOUR_AZURE_TENANT_ID}
143
+
AZURE_CLIENT_ID={YOUR_AZURE_CLIENT_ID}
144
+
AZURE_CLIENT_SECRET={YOUR_AZURE_CLIENT_SECRET}
132
145
```
133
146
134
-
2. Configure your MCP client with the Docker command:
147
+
#### Configure your MCP client to use Docker:
148
+
149
+
2. Add or update existing `mcp.json`.
150
+
- Replace `/full/path/to/your.env` with the actual `.env` file path.
151
+
- Optionally, use `--env` or `--volume` to pass authentication values.
152
+
-**Note:** When manually configuring Visual Studio and Visual Studio Code, use `servers` instead of `mcpServers` as the root object.
135
153
136
154
```json
137
155
{
138
-
"servers": {
156
+
"mcpServers": {
139
157
"Azure MCP Server": {
140
158
"command": "docker",
141
159
"args": [
142
160
"run",
143
161
"-i",
144
162
"--rm",
145
163
"--env-file",
146
-
"/full/path/to/.env",
164
+
"/full/path/to/your.env",
147
165
"mcr.microsoft.com/azure-sdk/azure-mcp:latest"
148
166
]
149
167
}
150
168
}
151
169
}
152
170
```
153
-
154
-
Replace `/full/path/to/.env` with your actual .env file path. Alternatively, use individual `--env` flags or `--volume` mounts for credentials.
0 commit comments