Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
SqlSetup.cs2.31 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.Core.Areas; using AzureMcp.Core.Commands; using AzureMcp.Sql.Commands.Database; using AzureMcp.Sql.Commands.ElasticPool; using AzureMcp.Sql.Commands.EntraAdmin; using AzureMcp.Sql.Commands.FirewallRule; using AzureMcp.Sql.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace AzureMcp.Sql; public class SqlSetup : IAreaSetup { public string Name => "sql"; public void ConfigureServices(IServiceCollection services) { services.AddSingleton<ISqlService, SqlService>(); } public void RegisterCommands(CommandGroup rootGroup, ILoggerFactory loggerFactory) { var sql = new CommandGroup(Name, "Azure SQL operations - Commands for managing Azure SQL databases, servers, and elastic pools. Includes operations for listing databases, configuring server settings, managing firewall rules, Entra ID administrators, and elastic pool resources."); rootGroup.AddSubGroup(sql); var database = new CommandGroup("db", "SQL database operations"); sql.AddSubGroup(database); database.AddCommand("show", new DatabaseShowCommand(loggerFactory.CreateLogger<DatabaseShowCommand>())); database.AddCommand("list", new DatabaseListCommand(loggerFactory.CreateLogger<DatabaseListCommand>())); var server = new CommandGroup("server", "SQL server operations"); sql.AddSubGroup(server); var elasticPool = new CommandGroup("elastic-pool", "SQL elastic pool operations"); sql.AddSubGroup(elasticPool); elasticPool.AddCommand("list", new ElasticPoolListCommand(loggerFactory.CreateLogger<ElasticPoolListCommand>())); var entraAdmin = new CommandGroup("entra-admin", "SQL server Microsoft Entra ID administrator operations"); server.AddSubGroup(entraAdmin); entraAdmin.AddCommand("list", new EntraAdminListCommand(loggerFactory.CreateLogger<EntraAdminListCommand>())); var firewallRule = new CommandGroup("firewall-rule", "SQL server firewall rule operations"); server.AddSubGroup(firewallRule); firewallRule.AddCommand("list", new FirewallRuleListCommand(loggerFactory.CreateLogger<FirewallRuleListCommand>())); } }

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