Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
CosmosDbFixture.cs1.08 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.Core.Services.Azure.Authentication; using AzureMcp.Tests.Client.Helpers; using Microsoft.Azure.Cosmos; using Xunit; namespace AzureMcp.Cosmos.LiveTests; public class CosmosDbFixture : IAsyncLifetime { private CosmosClient? _client; public async ValueTask InitializeAsync() { var settingsFixture = new LiveTestSettingsFixture(); await settingsFixture.InitializeAsync(); _client = new CosmosClient( accountEndpoint: $"https://{settingsFixture.Settings.ResourceBaseName}.documents.azure.com:443/", tokenCredential: new CustomChainedCredential() ); Container container = _client.GetContainer("ToDoList", "Items"); var item = new { id = Guid.NewGuid().ToString(), title = "Test Task", completed = false }; await container.UpsertItemAsync(item, new PartitionKey(item.id)); } public ValueTask DisposeAsync() { _client?.Dispose(); return ValueTask.CompletedTask; } }

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