Azure 影响报告 MCP 服务器可助力大型语言模型(LLMs)向 Azure 资源报告影响。当客户遭遇 Azure 基础设施问题时,该工具能让 LLMs 自动解析用户请求、明确所需参数,并向 Azure 提交报告。
在使用 Azure 影响报告 MCP 服务器前,请确保满足以下先决条件,并按照设置说明进行操作。
mcp[cli] - 带有 CLI 支持的模型上下文协议包azure-identity - 用于 Azure 身份验证httpx - 用于向 Azure API 发送 HTTP 请求git clone https://github.com/yourusername/MCP-Server-Azure-Impact-Reporting.git
cd MCP-Server-Azure-Impact-Reporting
pip install -r requirements.txt
或手动安装:
pip install mcp[cli] azure-identity httpx
该工具使用 DefaultAzureCredential 进行身份验证。请确保通过以下方法之一登录到 Azure:
az login)Connect-AzAccount)在你的 MCP 客户端配置文件(例如 claude_desktop_config.json)中添加以下配置:
"impactreporter": {
"command": "uv",
"args": [
"--directory",
"ABSOLUTE_PATH_TO_ROOT_FOLDER",
"run",
"impact-reporter.py"
]
}
将 ABSOLUTE_PATH_TO_ROOT_FOLDER 替换为你克隆仓库的绝对路径。
例如:
"impactreporter": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\username\\source\\repos\\MCP-Server-Azure-Impact-Reporting",
"run",
"impact-reporter.py"
]
}
若你使用 Claude Desktop 或其他支持 MCP 的客户端,服务器将在需要时自动启动。
impact-reporter.py 脚本提供了一个 MCP 服务器,具备以下功能:
DefaultAzureCredential 自动向 Azure 进行身份验证。该工具支持以下影响类别:
Resource.Connectivity - 针对 Azure 资源连接性问题Resource.Performance - 针对性能降级问题Resource.Availability - 针对可用性或停机时间问题Resource.Unknown - 当具体问题类型未知时配置完成后,你的 LLM 可以通过自然语言请求报告影响,例如:
MCP 服务器将自动解析这些请求并在缺少参数时要求提供更多细节,然后提交报告到 Azure。
示例对话:
当需要更多细节时:
ReportImpact.png:显示影响报告生成过程。RequestDetails.png:显示请求额外细节的界面。