Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
RedisSetup.cs2.43 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.Core.Areas; using AzureMcp.Core.Commands; using AzureMcp.Redis.Commands.CacheForRedis; using AzureMcp.Redis.Commands.ManagedRedis; using AzureMcp.Redis.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace AzureMcp.Redis; public class RedisSetup : IAreaSetup { public string Name => "redis"; public void ConfigureServices(IServiceCollection services) { services.AddSingleton<IRedisService, RedisService>(); } public void RegisterCommands(CommandGroup rootGroup, ILoggerFactory loggerFactory) { var redis = new CommandGroup(Name, "Redis Cache operations - Commands for managing Azure Redis Cache and Azure Managed Redis resources. Includes operations for listing cache instances, managing clusters and databases, configuring access policies, and working with both traditional Redis Cache and Managed Redis services."); rootGroup.AddSubGroup(redis); // Azure Cache for Redis var cache = new CommandGroup("cache", "Redis Cache resource operations - Commands for listing and managing Redis Cache resources in your Azure subscription."); redis.AddSubGroup(cache); cache.AddCommand("list", new CacheListCommand(loggerFactory.CreateLogger<CacheListCommand>())); var accessPolicy = new CommandGroup("accesspolicy", "Redis Cluster database operations - Commands for listing and managing Redis Cluster databases in your Azure subscription."); cache.AddSubGroup(accessPolicy); accessPolicy.AddCommand("list", new AccessPolicyListCommand(loggerFactory.CreateLogger<AccessPolicyListCommand>())); // Azure Managed Redis var cluster = new CommandGroup("cluster", "Redis Cluster resource operations - Commands for listing and managing Redis Cluster resources in your Azure subscription."); redis.AddSubGroup(cluster); cluster.AddCommand("list", new ClusterListCommand(loggerFactory.CreateLogger<ClusterListCommand>())); var database = new CommandGroup("database", "Redis Cluster database operations - Commands for listing and managing Redis Cluster Databases in your Azure subscription."); cluster.AddSubGroup(database); database.AddCommand("list", new DatabaseListCommand(loggerFactory.CreateLogger<DatabaseListCommand>())); } }

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