Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
BaseSqlCommand.cs1.1 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Diagnostics.CodeAnalysis; using AzureMcp.Core.Commands; using AzureMcp.Core.Commands.Subscription; using AzureMcp.Sql.Options; using Microsoft.Extensions.Logging; namespace AzureMcp.Sql.Commands; public abstract class BaseSqlCommand< [DynamicallyAccessedMembers(TrimAnnotations.CommandAnnotations)] TOptions>(ILogger<BaseSqlCommand<TOptions>> logger) : SubscriptionCommand<TOptions> where TOptions : BaseSqlOptions, new() { protected readonly Option<string> _serverOption = SqlOptionDefinitions.Server; protected readonly ILogger<BaseSqlCommand<TOptions>> _logger = logger; protected override void RegisterOptions(Command command) { base.RegisterOptions(command); RequireResourceGroup(); command.AddOption(_serverOption); } protected override TOptions BindOptions(ParseResult parseResult) { var options = base.BindOptions(parseResult); options.Server = parseResult.GetValueForOption(_serverOption); return options; } }

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