MP

microsoft/purview-dlm-mcp

安全测试

本页由 AI 翻译,技术细节请以原文为准。 查看原文

9 stars 7 forks 质量 84 趋势 37MIT

An MCP (Model Context Protocol) server for diagnosing Microsoft Purview Data Lifecycle Management issues via Exchange Online PowerShell.

概览

An MCP (Model Context Protocol) server for diagnosing Microsoft Purview Data Lifecycle Management issues via Exchange Online PowerShell. - — run_powershell for executing read-only Exchange Online commands, get_execution_log for retrieving a full audit trail, ask_learn for Microsoft Learn documentation lookup, create_issue for reporting issues with the MCP server to GitHub, and submit_feedback for collecting structured diagnostic session feedback - — step-by-step diagnostic workflows aligned to common DLM symptoms - — automated evaluation engine that parses PowerShell output and produces structured findings with remediation - — only pre-approved read-only cmdlets can be executed; mutating commands are blocked - Node.js 18+ - PowerShell 7 — 7.4.22, 7.5.13, 7.6.9 or later. PowerShell bundles its own .NET runtime, and earlier builds are exposed to CVE-2026-111497; updating the system .NET does not patch pwsh. - ExchangeOnlineManagement PowerShell module (v3.

README

以下为原文 README 节选,完整内容请查看原文。

Microsoft Purview DLM Diagnostics MCP

An MCP (Model Context Protocol) server for diagnosing Microsoft Purview Data Lifecycle Management issues via Exchange Online PowerShell.

Features

  • 5 MCP tools — run_powershell for executing read-only Exchange Online commands, get_execution_log for retrieving a full audit trail, ask_learn for Microsoft Learn documentation lookup, create_issue for reporting issues with the MCP server to GitHub, and submit_feedback for collecting structured diagnostic session feedback
  • 11 TSG reference guides — step-by-step diagnostic workflows aligned to common DLM symptoms
  • 72 diagnostic checks — automated evaluation engine that parses PowerShell output and produces structured findings with remediation
  • Cmdlet allowlist — only pre-approved read-only cmdlets can be executed; mutating commands are blocked

Prerequisites

在 GitHub 查看完整 README

安装

npx -y @microsoft/purview-dlm-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "dlm-diagnostics": { "command": "npx", "args": ["-y", "@microsoft/purview-dlm-mcp"], "env": { "DLM_UPN": "[email protected]", "DLM_ORGANIZATION": "yourtenant.onmicrosoft.com", "DLM_COMMAND_TIMEOUT_MS": "180000" } } } }