cli-microsoft365-mcp-server

v0.1.22
io.github.pnp/cli-microsoft365-mcp-server Checked 3 hours ago Published 6 months ago

MCP server for CLI for Microsoft 365 to manage your tenant using natural language

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

m365_search_commands Search CLI for Microsoft 365 commands

Searches CLI for Microsoft 365 commands using fuzzy search based on a query string. Use this tool first to find relevant commands before getting full command documentation.

ParameterTypeDescription
query *stringSearch query to find relevant commands (e.g., "sharepoint list", "teams channel", "user add")
limitnumberMaximum number of results to return (default: 10, max: 50)

m365_get_command_docs Retrieve CLI for Microsoft 365 command docs

Gets documentation for a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to provide detailed information about the command along with examples, use cases, and option descriptions

ParameterTypeDescription
commandName *stringcommand name which for which documentation is requested
docs *stringfile path to command documentation

m365_run_command Execute CLI for Microsoft 365 command

Runs a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to execute the command and return the result and reason over the response

ParameterTypeDescription
command *stringcommand name which should be executed

m365_get_best_practices Retrieve CLI for Microsoft 365 best practices

Gets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuration