Skip to content

Commit dafa885

Browse files
committed
Fix Azure MCP server configuration and resolve schema validation errors
This commit addresses multiple critical issues in the Azure MCP server setup example that were preventing successful configuration: * Change environment name from "Copilot" to "copilot" for consistency with lowercase naming convention used throughout the documentation * Update azure/login action to v2.3.0 (a457da9ea143d694b1b9c7c869ebb04ebe844ef5) which is the latest stable version and has been verified to work correctly * Add proper {% raw %} Liquid tags around GitHub Actions secret references to prevent Liquid template processing of the workflow syntax * Fix server name from "Azure MCP Server" to "Azure" to resolve schema validation error "Schema validation failed: /mcpServers must NOT have additional properties" * Add required "tools" configuration with ["*"] to prevent schema validation error "Schema validation failed: /mcpServers must NOT have additional properties" These corrections address specific schema validation failures that were blocking MCP server configuration and ensure the Azure example provides working, copy-paste ready configuration that passes validation
1 parent fe42f8c commit dafa885

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

content/copilot/using-github-copilot/coding-agent/extending-copilot-coding-agent-with-mcp.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ To use the Azure MCP with {% data variables.copilot.copilot_coding_agent %}, you
170170
permissions:
171171
id-token: write
172172
contents: read
173-
environment: Copilot
173+
environment: copilot
174174
steps:
175175
- name: Azure login
176-
uses: azure/login@a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0
176+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5
177177
with:
178-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
179-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
180-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
178+
client-id: {% raw %}${{ secrets.AZURE_CLIENT_ID }}{% endraw %}
179+
tenant-id: {% raw %}${{ secrets.AZURE_TENANT_ID }}{% endraw %}
180+
subscription-id: {% raw %}${{ secrets.AZURE_SUBSCRIPTION_ID }}{% endraw %}
181181
```
182182
183183
This configuration ensures the `azure/login` action is executed when {% data variables.copilot.copilot_coding_agent %} runs.
@@ -188,14 +188,15 @@ To use the Azure MCP with {% data variables.copilot.copilot_coding_agent %}, you
188188
```json copy
189189
{
190190
"mcpServers": {
191-
"Azure MCP Server": {
191+
"Azure": {
192192
"command": "npx",
193193
"args": [
194194
"-y",
195195
"@azure/mcp@latest",
196196
"server",
197197
"start"
198-
]
198+
],
199+
"tools": ["*"]
199200
}
200201
}
201202
}

0 commit comments

Comments
 (0)