Blue Bridge

Blue Bridge

site icon
2025.04.23 3
Azure 资源管理数据分析数据可视化开发效率数据库
Blue Bridge 是一个基于 Model Context Protocol (MCP) 的服务器,用于查询和管理 Azure 资源,支持零密钥认证。它开箱即用地支持 Azure Managed Grafana、Azure Data Explorer (Kusto)、Azure Resource Graph 和 Azure Resource Manager。通过 Azure CLI 登录账户或托管身份进行认证,无需存储密码或密钥。
View on GitHub

Overview

基本能力

产品定位

Blue Bridge 是一个专为 Azure 资源管理和查询设计的 MCP 服务器,旨在通过零密钥认证简化 Azure 资源的管理流程。

核心功能

  • Azure Managed Grafana 支持:集成 Grafana 进行数据可视化。
  • Azure Data Explorer (Kusto) 支持:支持 Kusto 查询语言进行数据分析。
  • Azure Resource Graph 支持:提供资源查询功能。
  • Azure Resource Manager 支持:管理 Azure 资源。
  • 零密钥认证:通过 Azure CLI 或托管身份进行认证,无需存储密码或密钥。

适用场景

  • Azure 资源管理和监控。
  • 数据分析和可视化。
  • 资源优化和成本节约。

工具列表

  • Azure CLI:用于认证和资源管理。
  • Docker:用于容器化部署。
  • Azure Managed Grafana:用于数据可视化。
  • Azure Data Explorer (Kusto):用于数据分析。

常见问题解答

  • 认证问题:确保 Azure CLI 已登录或托管身份配置正确。
  • 环境变量配置:根据需求设置相应的环境变量。

使用教程

使用依赖

  • Docker:确保已安装 Docker。

安装教程

  1. 克隆仓库: bash git clone https://github.com/Azure/blue-bridge.git cd blue-bridge
  2. 运行容器(根据需要设置环境变量): bash docker run --name bluebridge -p 6688:6688 \ -e AzureManagedGrafanaEndpoint=https://<my‑grafana>.wcus.grafana.azure.com \ -e KustoUri=https://<my‑kusto>.westus2.kusto.windows.net \ bluebridge.azurecr.io/bluebridge:latest

调试方式

  1. 启动容器后,按照提示进行认证: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ABCD‑EFGH to authenticate.
  2. 认证完成后,服务器将在 http://localhost:6688 准备就绪。
  3. 添加到 MCP 主机配置: json { "mcpServers": { "blue-bridge": { "url": "http://localhost:6688/sse", "transportType": "sse", "timeout": 60, "disabled": false, "autoApprove": [] } } }
  4. 运行测试: Given 'manual-for-ai.md', show me 5 VMs that I can turn off machines to save money.

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。