Agenophub
Azure政府的人工智能操作平台——一个多代理聊天工作区,DevOps团队在这里与专业的人工智能代理实时协作。
  
概述
AgentOpsHub是一个部署到 Azure政府它将AI代理、MCP(模型上下文协议)服务器和一个DateTimeServer前端整合到一个统一的指挥中心,用于基础设施运营、DevOps工作流和AI辅助开发。
多代理聊天工作区
旗舰功能是 多代理聊天工作区 --具有并排聊天面板的命令中心UI,每个聊天面板都连接到一个专门的AI代理(GitHub、Azure DevOps、Azure Ops、.NET Dev、AI/LLM、DevOps、Personal)。用户发送一条消息,同时接收来自多个代理的协调响应,并通过Contoso实时流式传输。
建筑
┌─────────────────────────────────────────────────────────┐
│ Blazor Server (Web) │
│ Side-by-side Agent Chat Panels │
└──────────────────────┬──────────────────────────────────┘
│ SignalR (AgentHub)
┌──────────────────────▼──────────────────────────────────┐
│ ASP.NET Core API │
│ Agent Orchestrator + Azure OpenAI │
└──────────────────────┬──────────────────────────────────┘
│ HTTP / MCP Protocol
┌──────────────────────▼──────────────────────────────────┐
│ MCP Gateway │
│ Routes requests to 7 MCP servers │
├─────────┬─────────┬────────┬────────┬────────┬──────────┤
│ GitHub │ Azure │ ADO │ .NET │ AI │ DevOps │
│ Server │ Server │ Server │ Server │ Server │ Server │
├─────────┴─────────┴────────┴────────┴────────┴──────────┤
│ Personal MCP Server │
└─────────────────────────────────────────────────────────┘
All deployed as Azure Container Apps技术栈
| 层 | 技术 |
|---|---|
| 运行时 | 。净值9 |
| 前端 | DateTimeServer(交互式SSR) |
| 后端API | ASP。NET核心最低API+信号R |
| AI | Azure OpenAI+Azure AI服务 |
| 数据库 | Azure SQL数据库(EF Core,托管身份) |
| 身份验证 | 微软Entra ID(PZT) |
| 托管 | Azure容器应用程序(Azure政府) |
| IaC | 二头肌 |
| MCP | 7个集装箱化MCP服务器+网关 |
| 测试 | xUnit, bUnit |
先决条件
- .NET 9 SDK (9.0.311+)
- (用于地方发展)
- Azure命令行界面 已配置Azure政府云
- 具有Azure OpenAI访问权限的Azure政府订阅
快速开始
选项1--启动脚本(推荐)
# Build and start both servers in separate windows
.\start-local.ps1
# Or skip the build if you already compiled
.\start-local.ps1 -NoBuild这将打开两个PowerShell窗口(API+Web)。关闭它们以停止服务器。
选项2——手动(两个终端)
终端1-API:
cd src\SmartOpsHub.Api
$env:ASPNETCORE_ENVIRONMENT="Development"
dotnet run --urls http://localhost:5100终端2——网络:
cd src\SmartOpsHub.Web
$env:ASPNETCORE_ENVIRONMENT="Development"
dotnet run --urls http://localhost:5050选项3-Docker编写
docker compose up --build本地URL
| 服务 | URL |
|---|---|
| Web(工作区) | http://localhost:5050 |
| 管理员 | http://localhost:5050/admin |
| APIhttp://localhost:5100 | |
| API运行状况 | http://localhost:5100/health |
运行测试
dotnet test有关详细的设置说明,请参阅 docs/getting-started.md.
项目结构
smart-ops-hub.sln
├── src/
│ ├── SmartOpsHub.Web/ # Blazor Server frontend
│ ├── SmartOpsHub.Api/ # ASP.NET Core Minimal API + SignalR
│ ├── SmartOpsHub.Core/ # Domain models, interfaces, services
│ ├── SmartOpsHub.Infrastructure/ # EF Core, external integrations
│ └── SmartOpsHub.Mcp/
│ ├── SmartOpsHub.Mcp.Gateway/ # MCP gateway router
│ ├── SmartOpsHub.Mcp.GitHub/ # GitHub operations
│ ├── SmartOpsHub.Mcp.Azure/ # Azure resource operations
│ ├── SmartOpsHub.Mcp.Ado/ # Azure DevOps operations
│ ├── SmartOpsHub.Mcp.DotNet/ # .NET tooling
│ ├── SmartOpsHub.Mcp.AI/ # AI/LLM utilities
│ ├── SmartOpsHub.Mcp.DevOps/ # CI/CD & pipeline tools
│ └── SmartOpsHub.Mcp.Personal/ # Per-user agent plugins
├── tests/
│ ├── SmartOpsHub.Web.Tests/ # bUnit component tests
│ ├── SmartOpsHub.Api.Tests/ # API integration tests
│ ├── SmartOpsHub.Core.Tests/ # Domain unit tests
│ ├── SmartOpsHub.Mcp.Tests/ # MCP server tests
│ └── SmartOpsHub.E2E.Tests/ # End-to-end tests
├── infra/ # Bicep IaC modules
├── docker-compose.yml
└── docs/ # Documentation文档
- 建筑 --系统设计、数据流、部署拓扑
- 入门指南 --先决条件、本地设置、运行测试
- MCP服务器 --模型上下文协议服务器详细信息
- 多代理工作区 --聊天工作空间设计
- Copilot CLI指南 --将GitHub Copilot CLI用于此项目
