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
BaseClusterCommand.cs•964 B
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Diagnostics.CodeAnalysis;
using AzureMcp.Core.Commands;
using AzureMcp.Core.Commands.Subscription;
using AzureMcp.Redis.Options.ManagedRedis;
namespace AzureMcp.Redis.Commands.ManagedRedis;
public abstract class BaseClusterCommand<
[DynamicallyAccessedMembers(TrimAnnotations.CommandAnnotations)] T>
: SubscriptionCommand<T> where T : BaseClusterOptions, new()
{
protected readonly Option<string> _clusterOption = RedisOptionDefinitions.Cluster;
protected override void RegisterOptions(Command command)
{
base.RegisterOptions(command);
command.AddOption(_clusterOption);
RequireResourceGroup();
}
protected override T BindOptions(ParseResult parseResult)
{
var options = base.BindOptions(parseResult);
options.Cluster = parseResult.GetValueForOption(_clusterOption);
return options;
}
}