Azure影响报告MCP(模型上下文协议)服务器让大型语言模型(LLMs)能够向Azure资源报告影响。此工具可使LLM自动解析用户请求、理解所需参数,并在客户遇到Azure基础设施问题时向Azure提交报告。
Azure影响报告MCP服务器是一款强大的工具,能助力大型语言模型向Azure资源报告影响。下面为您详细介绍使用步骤。
impact-reporter.py 脚本提供了一个Model Context Protocol服务器,具备以下功能:
DefaultAzureCredential 实现自动身份验证。该工具支持以下影响类别:
Resource.Connectivity - 处理Azure资源的连接性问题。Resource.Performance - 处理性能降级问题。Resource.Availability - 处理可用性或停机时间问题。Resource.Unknown - 当具体问题类型未知时使用。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的客户端,服务器会在需要时自动启动。
配置完成后,您的LLM可以通过自然语言请求报告影响,例如:
1. "Report connectivity issues with my VM named 'web-server' in resource group 'production-rg'"
2. "Let Azure know my SQL database 'customer-db' in 'data-rg' is experiencing performance issues"
3. "Report that my App Service 'api-service' is down"
MCP服务器将自动解析这些请求并在需要时要求提供更多细节,然后向Azure提交报告。
示例对话:
当需要更多信息时:
请求详细信息
推断详细信息并报告影响
该工具支持以下接口:
| 属性 | 详情 |
|---|---|
| 接口地址 | POST /api/report |
| 描述 | 提交影响报告 |
| 参数 | source, type, details |
[此处添加许可证信息]