Summary
The foundry-mcp MCP server defined in the azure@azure-skills plugin fails to connect with ✗ Failed to connect in claude mcp list.
Root Cause
The .mcp.json in the plugin cache (~/.claude/plugins/cache/azure-skills/azure/1.0.0/.mcp.json) configures the foundry server as a plain HTTP endpoint with no authentication:
"foundry-mcp": {
"type": "http",
"url": "https://mcp.ai.azure.com"
}
The https://mcp.ai.azure.com endpoint returns 401 Unauthorized for all requests without a bearer token. Tested manually:
GET / → 405 (server is reachable)
POST / with az account get-access-token --resource https://management.azure.com → 401
POST / with az account get-access-token --resource https://ai.azure.com → 401
POST / with az account get-access-token --resource https://ml.azure.com → 401
The server config needs authentication headers (likely an Azure AD bearer token with the correct resource/audience).
Expected Behavior
The foundry-mcp server should authenticate automatically using the user's Azure CLI credentials (similar to how the azure server works via @azure/mcp).
Environment
- Claude Code (CLI)
- Plugin:
azure@azure-skills v1.0.0
- macOS,
az login active session
Summary
The
foundry-mcpMCP server defined in theazure@azure-skillsplugin fails to connect with✗ Failed to connectinclaude mcp list.Root Cause
The
.mcp.jsonin the plugin cache (~/.claude/plugins/cache/azure-skills/azure/1.0.0/.mcp.json) configures the foundry server as a plain HTTP endpoint with no authentication:The
https://mcp.ai.azure.comendpoint returns 401 Unauthorized for all requests without a bearer token. Tested manually:GET /→ 405 (server is reachable)POST /withaz account get-access-token --resource https://management.azure.com→ 401POST /withaz account get-access-token --resource https://ai.azure.com→ 401POST /withaz account get-access-token --resource https://ml.azure.com→ 401The server config needs authentication headers (likely an Azure AD bearer token with the correct resource/audience).
Expected Behavior
The
foundry-mcpserver should authenticate automatically using the user's Azure CLI credentials (similar to how theazureserver works via@azure/mcp).Environment
azure@azure-skillsv1.0.0az loginactive session