Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
AuthorizationSetup.cs1.55 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using AzureMcp.Authorization.Commands; using AzureMcp.Authorization.Services; using AzureMcp.Core.Areas; using AzureMcp.Core.Commands; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace AzureMcp.Authorization; public sealed class AuthorizationSetup : IAreaSetup { public string Name => "role"; public void ConfigureServices(IServiceCollection services) { services.AddSingleton<IAuthorizationService, AuthorizationService>(); } public void RegisterCommands(CommandGroup rootGroup, ILoggerFactory loggerFactory) { // Create Authorization RBAC role command group var authorization = new CommandGroup(Name, "Authorization operations - Commands for managing Azure Role-Based Access Control (RBAC) resources. Includes operations for listing role assignments, managing permissions, and working with Azure security and access management at various scopes."); rootGroup.AddSubGroup(authorization); // Create Role Assignment subgroup var roleAssignment = new CommandGroup("assignment", "Role assignment operations - Commands for listing and managing Azure RBAC role assignments for a given scope."); authorization.AddSubGroup(roleAssignment); // Register role assignment commands roleAssignment.AddCommand("list", new RoleAssignmentListCommand(loggerFactory.CreateLogger<RoleAssignmentListCommand>())); } }

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