Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
BaseKeyValueCommand.cs1.33 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Diagnostics.CodeAnalysis; using AzureMcp.AppConfig.Options; using AzureMcp.AppConfig.Options.KeyValue; using AzureMcp.Core.Commands; namespace AzureMcp.AppConfig.Commands.KeyValue; public abstract class BaseKeyValueCommand< [DynamicallyAccessedMembers(TrimAnnotations.CommandAnnotations)] T> : BaseAppConfigCommand<T> where T : BaseKeyValueOptions, new() { protected readonly Option<string> _keyOption = AppConfigOptionDefinitions.Key; protected readonly Option<string> _labelOption = AppConfigOptionDefinitions.Label; protected readonly Option<string> _contentTypeOption = AppConfigOptionDefinitions.ContentType; protected override void RegisterOptions(Command command) { base.RegisterOptions(command); command.AddOption(_keyOption); command.AddOption(_labelOption); command.AddOption(_contentTypeOption); } protected override T BindOptions(ParseResult parseResult) { var options = base.BindOptions(parseResult); options.Key = parseResult.GetValueForOption(_keyOption); options.Label = parseResult.GetValueForOption(_labelOption); options.ContentType = parseResult.GetValueForOption(_contentTypeOption); 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