Skip to main content
Glama

Azure MCP Server

Official
ApiVersionSelectorTests.cs1.15 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.BicepSchema.Services.Support; using Xunit; namespace AzureMcp.BicepSchema.UnitTests; public class ApiVersionSelectorTests { [Theory] [InlineData("2021-01-02", new object[] { "2021-01-02", "2021-01-01" })] [InlineData("2021-01-01", new object[] { "2021-01-01" })] [InlineData("2021-11-01", new object[] { "2021-11-01", "2021-01-01" })] [InlineData("2021-01-01", new object[] { "2020-11-01", "2021-01-01" })] [InlineData("2024-01-01", new object[] { "2021-01-01", "2024-01-01", "2021-11-01" })] [InlineData("2021-01-02", new object[] { "2021-01-01", "2021-01-02", "2024-01-01-preview" })] [InlineData("2021-01-01", new object[] { "2021-01-01", "2021-01-01-beta", "2021-01-01-preview" })] [InlineData("2022-01-01-foo", new object[] { "2022-01-01-foo", "2021-01-01-beta", "2021-01-01-preview" })] public void SelectLatestStable(string expected, object[] apiVersions) { string selected = ApiVersionSelector.SelectLatestStable(apiVersions.Cast<string>()); Assert.Equal(expected, selected); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure/azure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server