Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
KeyVaultSetup.cs2.6 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.Core.Areas; using AzureMcp.Core.Commands; using AzureMcp.KeyVault.Commands.Certificate; using AzureMcp.KeyVault.Commands.Key; using AzureMcp.KeyVault.Commands.Secret; using AzureMcp.KeyVault.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace AzureMcp.KeyVault; public class KeyVaultSetup : IAreaSetup { public string Name => "keyvault"; public void ConfigureServices(IServiceCollection services) { services.AddSingleton<IKeyVaultService, KeyVaultService>(); } public void RegisterCommands(CommandGroup rootGroup, ILoggerFactory loggerFactory) { var keyVault = new CommandGroup(Name, "Key Vault operations - Commands for managing and accessing Azure Key Vault resources."); rootGroup.AddSubGroup(keyVault); var keys = new CommandGroup("key", "Key Vault key operations - Commands for managing and accessing keys in Azure Key Vault."); keyVault.AddSubGroup(keys); var secret = new CommandGroup("secret", "Key Vault secret operations - Commands for managing and accessing secrets in Azure Key Vault."); keyVault.AddSubGroup(secret); var certificate = new CommandGroup("certificate", "Key Vault certificate operations - Commands for managing and accessing certificates in Azure Key Vault."); keyVault.AddSubGroup(certificate); keys.AddCommand("list", new KeyListCommand(loggerFactory.CreateLogger<KeyListCommand>())); //keys.AddCommand("get", new KeyGetCommand(loggerFactory.CreateLogger<KeyGetCommand>())); keys.AddCommand("create", new KeyCreateCommand(loggerFactory.CreateLogger<KeyCreateCommand>())); secret.AddCommand("list", new SecretListCommand(loggerFactory.CreateLogger<SecretListCommand>())); secret.AddCommand("create", new SecretCreateCommand(loggerFactory.CreateLogger<SecretCreateCommand>())); //secret.AddCommand("get", new SecretGetCommand(loggerFactory.CreateLogger<SecretGetCommand>())); certificate.AddCommand("list", new CertificateListCommand(loggerFactory.CreateLogger<CertificateListCommand>())); certificate.AddCommand("get", new CertificateGetCommand(loggerFactory.CreateLogger<CertificateGetCommand>())); certificate.AddCommand("create", new CertificateCreateCommand(loggerFactory.CreateLogger<CertificateCreateCommand>())); certificate.AddCommand("import", new CertificateImportCommand(loggerFactory.CreateLogger<CertificateImportCommand>())); } }

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