| 1 | using AgentForge.Abstractions; |
| 2 | using AgentForge.Plugin.Organization.UserManagement.Endpoints; |
| 3 | using Microsoft.AspNetCore.Builder; |
| 4 | using Microsoft.Extensions.Configuration; |
| 5 | using Microsoft.Extensions.DependencyInjection; |
| 6 | |
| 7 | namespace AgentForge.Plugin.Organization.UserManagement; |
| 8 | |
| 9 | public sealed class OrgUserManagementForgePlugin : IForgePlugin |
| 10 | { |
| 11 | public string Id => "org-user-management"; |
| 12 | |
| 13 | public string DisplayName => "Organization user management (members, roles)"; |
| 14 | |
| 15 | public string Tier => "core"; |
| 16 | |
| 17 | public void ConfigureServices(IServiceCollection services, IConfiguration configuration) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | public void MapEndpoints(WebApplication app) |
| 22 | { |
| 23 | var api = app.MapGroup("/api/v1"); |
| 24 | api.MapOrgMemberEndpoints(); |
| 25 | } |
| 26 | |
| 27 | public void RegisterFeatures(ForgeFeatureRegistry registry) => registry.Add("org_user_management"); |
| 28 | |
| 29 | public void RegisterMcpTools(ForgeMcpToolRegistry registry) => |
| 30 | ForgeOrgMemberMcpTools.Register(registry); |
| 31 | } |
| 32 | |
View only · write via MCP/CIDE